Archive for January, 2010

Spamassassin 2010 bug

A bit of an oversight – old versions of Spamassassin have an inbuilt rule to block emails with a future date.  Not a bad idea really, but the rule starts blocking things from 2010!  The rule should be fixed in newer versions, however Plesk for example uses a fairly old version. You can edit the […]

qmail adds number to recipient header

qmail sometimes adds a number to the recipient header when delivering mail locally, so for example, user@domain.com may become 3-user@domain.com.  This isn’t such a problem when mail is just being used locally, but if your using a POP connector to download mail to an Exchange server for example it will cause issues with it getting […]

Plesk 9 – Horde webmail configuration disappears

Strangely all of the webmail conf files for horde disappeared in my Plesk 9 setup. This regenerated them: for domain in `mysql -uadmin -p$(cat /etc/psa/.psa.shadow ) -Dpsa -e’select name from domains d, dom_param dp where d.id=dp.dom_id and dp.param=”webmail” and dp.val=”horde”;’`; do /usr/local/psa/admin/bin/webmailmng –set-default –vhost-name=$domain –name=horde ; done Update: seems to be a result of hotfix […]

Plesk 9 – Migration Manager set source directory

For some bizarre reason The Plesk 9 migration manager has taken away the functionality to specify the partition used on the source server.  Not very handy if you have partitions running low on disk space.  I’ve found two solutions that seem to work: On the target server edit /usr/local/psa/admin/share/migration-handler/migration_handler.py Modify the following line and update […]

List Perl modules installed

Handy command to list all Perl modules installed. perl -MFile::Find=find -MFile::Spec::Functions -lwe ‘find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC’