Showing posts from April, 2013

Tailwatchd failed error on cPanel

Sometimes you get following email regarding Tailwatch service failed from cPanel.  tailwatchd failed @ Wed Apr 10 16:35:03 2013. A restart was attempted automatically.  Service Check Method: [check command] tailwatchd is not running If you check Tailwatch logs, you will see the following logs: Cpanel::TailWatch::Eximstats appears to have unprocessed SQL in /var/cpanel/sql/eximstats.sql. Fix: When mysql is unable to execute a query they are logged for processing later. Eventually these SQL files may be handled automatically and this message will not appear.  In order to fix the issue in the meantime, you can execute the following queries as root with something like this: # mv /var/cpanel/sql/eximstats.sql /var/cpanel/sql/eximstats.sql.tmp_working_copy # /scripts/restartsrv_tailwatchd # mysql eximstats < /var/cpanel/sql/eximstats.sql.tmp_working_copy Once you are sure all is well, you can remove /var/cpanel/sql/eximstats.sql.tmp_working_copy. Thank you.

Increase /tmp partition size in cPanel

Sometimes /tmp partition can get overfilled, so no new information can be recorded. In such scenario, you need to increase the /tmp partition size. You can increase the /tmp size using the following steps: 1. Stop cPanel, Apache (litespeed) and MySQL services using following commands: # /etc/init.d/cpanel stop # /etc/init.d/httpd stop # /etc/init.d/lsws stop # /etc/init.d/mysql stop 2. Umount /tmp and /var/tmp: # umount -l /tmp # umount -l /var/tmp 3. Move /usr/tmpDSK file to another location: # mv /usr/tmpDSK /usr/tmpDSK_bak 4. Modify /scripts/securetmp to set tmpdsksize to desired size: # vi /scripts/securetmp   $tmpdsksize = 2048000 5. Run: # /scripts/securetmp 6. Start cPanel, Apache (litespeed), MySQL services: # /etc/init.d/cpanel start # /etc/init.d/httpd start # /etc/init.d/lsws start # /etc/init.d/mysql start Thats it. Your /tmp partition saze has increased. :)

PostFix Mail issue

Bounce back message : This is the mail system at host I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. <>: User unknown in virtual alias table Final-Recipient: rfc822; Original-Recipient: rfc822; Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; User unknown in virtual alias table ======== FIX ======== The issue occurred due to the server hostname, if you are hosting the domain in plesk the same name should not be included as the hostname. # cat /etc/hostname # vi /etc/postfix/ ********************* Incorrect line #mydestination =,, localhost, localhost.loca