Archive for Linux Admin

Cleaning SpamDyke Log Table in plesk

by: WanderingTechy June 9, 2011

The spamdyke_log_table gets very large very quickly.  This slows down viewing from within the plesk panel.  To clean up records older than 7 days use the following command delete from spamdyke_log_table where `time` < DATE_ADD(CURDATE(),interval  -7 day);

qmail spammer clean up. senderbase problems, relaying and more

by: WanderingTechy March 10, 2011

One of the clients on a server I manage used a very weak password on two mail accounts and both of these had been exploited by spammers. Now putting aside the new systems that will have to be implemented to prevent this in future we had the job of cleaning up.  After clearing the mail [...]

php mail command doesn’t work. Plesk 9

by: WanderingTechy March 2, 2011

If you have swapped the MTA from postfix back to qmail then the mail() command in php may not work. This is because the symbolic link to the /usr/sbin/sendmail compatibility program is broken. Execute these commands as root.

Adding www. to subdomain in plesk

by: WanderingTechy March 1, 2011

Add the following line to /var/www/vhosts/subdomains/your-subdomain/conf/vhost.conf The add an A record of www.subdomain with the IP address of the server. Then execute this command as root.

Switching back to qmail from postfix in plesk 9

by: WanderingTechy January 17, 2011

I prefer PostFix but over the years have become used to qmail on plesk and have spamdyke working for greylisting which is better than the plesk version of greylisting.  To switch back to qmail use this command. Found at http://kb.parallels.com/5801

Disabling SSO in Plesk (Single Sign On)

by: WanderingTechy January 17, 2011

Nice simple command /usr/local/psa/bin/sso –disable You can now access plesk using http://main-domain.com:8880

IMAP too many connection error

by: WanderingTechy December 13, 2010

This is an easy one to fix.  Edit this file. Edit the line that says And restart courier-imapd.

Centos 5.5 NTP update

by: WanderingTechy December 12, 2010

run these three commands.  You can create a cronjob to do this regularly.

Setting Time on System Centos 5.5

by: WanderingTechy December 12, 2010

Newly installed server and the time was ahead by two hours.  No matter what I did it didn’t fix it.  NTP stuffed and I don’t have time just now to fix. This fixed it.  I haven’t had to do that since I stopped using Virtuozzo which used to overwrite it every update.

Special characters being replaced with black diamond with a question mark in it

by: WanderingTechy December 7, 2010

I have just done a bunch of server upgrades and some clients are complaining about characters being replaced with a black diamond with a question mark in it. After researching character encoding I discovered that one of the upgrades had modified my httpd.conf file and added this line. Commenting this line out returned the situation [...]