October 23, 2009 | Posted by
admin | Category: Plesk Management
Error Message:
Remote host said: 553 sorry, that domain isn’t in my list of allowed rcpthosts
You may see the above error message in the mail logs of Qmail. Follow the below steps:
1. Make sure the domain name is present in the file “/var/qmail/control/rcpthosts”, if it doesn’t, turn off mail for that domain and then turn it back on.
You can turn Off/On mails for a domain from Plesk >> Domains >> domainname.tld >> “Web Hosting Settings” >> Enable/Disable button at the top.
2. If it doesn’t, then run,
/usr/local/psa/admin/bin/mchk -a
It will look like it finishes quickly, but it will actually run in the background. It rebuilds direcories, files, permissions on all mail accounts based on the information in the plesk db.
Comments Off on Remote host said: 553 sorry, that domain isn’t in my list of allowed rcpthosts
October 23, 2009 | Posted by
admin | Category: Plesk Management
Qmhandle is a 3rd party application to manage mail queue of Qmail. Though Qmail has it’s own commands but it’s worth using Qmhandle.
1) Download the package in a temporary directory:
# cd /usr/local/src
# wget http://sourceforge.net/projects/qmhandle/files/qmhandle-1.3/qmhandle-\
1.3.0/qmhandle-1.3.0.tar.gz/download
2) Unpack it and goto the directory
# tar -zxf qmhandle-1.3.0.tar.gz
# cd qmhandle-1.3.0
You will notice a “qmHandle” file inside the directory using which you can manage the Qmail mail queue.
1. To check the number of emails in the queue
# ./qmHandle -s
2. Force Qmail to process the mail queue
# ./qmHandle -a
3. List emails with all the details like, Subject, From and To address
# ./qmHandle -l
4. List emails sorted by Subject, From address etc
# ./qmHandle -l | grep Subject | sort
# ./qmHandle -l | grep From | sort
5. Delete all emails having a specific subject, for example ‘test’
# ./qmHandle -Stest
6. Delete all messages
# ./qmHandle -D
Note: The 1.3 version of Qmhandle have problems deleting emails, in such a case download an older version i.e. qmhandle-1.2.3 to delete the emails.
Comments Off on Howto manage Mail queue in qmail using Qmhandle?
October 21, 2009 | Posted by
admin | Category: Plesk Management
How to install ImageMagick on Linux/Plesk server? Follow the below steps to install ImageMagick on a Plesk server. Login to your server as root and execute the following commands:
1. Install “ImageMagick” package via YUM.
yum install ImageMagick
2. Now install “ImageMagick-devel”
yum install ImageMagick-devel
3. Install “php-pear” required for “pecl”. It will install and compile ImageMagick with PHP for you.
yum install php-pear
4. Now, you need to install ImageMagick using pecl
pecl install imagick
A imagick.so file will be created under /usr/lib/php/modules/ directory. Now, edit the php configuration file /etc/php.ini and add the following line after the “extension_dir” directive
extension = “imagick.so”
Save the file and restart the httpd service. That is it. You can verify using the command:
php -i | grep imagick
Comments Off on Howto: Install ImageMagick on Plesk
October 13, 2009 | Posted by
admin | Category: Plesk Management
How to upgrade PHP on a Plesk server? You will have to download a script from ww.atomicorp.com and have to install it which will then allow you to upgrade PHP using yum.
1) Download the script:
wget -q -O – http://www.atomicorp.com/installers/atomic.sh
2) Install the script:
sh atomic.sh
3) Now upgrade PHP using yum:
yum upgrade php
Once it is installed, restart the httpd service.
Comments Off on How to upgrade PHP on a Plesk server?
October 10, 2009 | Posted by
admin | Category: Plesk Management
How to turn of safe_mode in Plesk? There are 2 ways to turn off safe_mode for a domain in Plesk.
1) From the Plesk control panel. Login to Plesk >> click “Domains” >> click “domainname.tld” >> click “WebSite Settings” >> make sure PHP support is checked, but “safe_mode” is unchecked >> click Save.
2) The second way is to turn off sqfe_mode using vhost.conf file. Create a vhost.conf file under “/var/www/vhosts/domainname.tld/conf/” directory and place the following lines:
<Directory /home/httpd/vhosts/<domain.com>/httpdocs>
php_admin_flag safe_mode off
</Directory>
Now, in order for Plesk to read these changes, execute
/usr/local/psa/admin/bin/websrvmng -a
service httpd restart
You can enable “register_globals” for a domain the same way mentioned in the 2nd step but make sure to execute the 2 commands for the changes to take effect.
Comments Off on howto: turn off safe_mode in Plesk?