Archive for the tag 'SpamAssassin'

SBDavid

SpamAssassin Rules Updates

SpamAssassin Rules Updates

This feature defines how you would like to update SpamAssassin rules.

Automatic — Automatically update SpamAssassin rules whenever /usr/local/cpanel/scripts/upcp runs.

Manual Updates Only — Requires you to manually run /usr/local/cpanel/scripts/upcp to update SpamAssassin rules.

NEVER Update — SpamAssassin rules do not update when /usr/local/cpanel/scripts/upcp runs.

Changing Spamassassin to check emails larger than 250KB

Spamassassin by default will not check emails larger than 250 KB. This is limited to prevent spamassassin from generating a large load on the server.

If you would like to change this setting to a higher value you can edit the following file:

vi /usr/local/psa/bin/psa-spamc

and change this line to a higher value:

MAX_SIZE=256000 # max letter size to filter

Spamassassin will use the new value immediately with no need to restart any services.

Reference: http://parallels.com

Script to enable SpamAssassin for new accounts

By default (if enabled), DA gives the User the option to enable spamassassin, but it is not turned on by default.

The above script can be used to also enable spamassassin for all existing accounts. You can create another simple script to do it called (for example) spam.sh with the following code:

#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
username=$i spam=ON /usr/local/directadmin/scripts/custom/user_create_post.sh
};
done;
exit 0;

Save this new spam.sh script, chmod it to 755, and run it once.

Enable SpamAssassin on your DirectAdmin server

To enable Spamassassin on your server, you need to first need to install it. Once installed a few minor changes are needed in your /etc/exim.conf file.

1) Install spamd and spamc:

cd /usr/local/directadmin/scripts
./spam.sh

2) Start the spamd

/usr/bin/spamd -d -c -m 15

Source : http://directadmin.com