February 17, 2011

 Upgrading to SpamAssassin 3.3.x

The newer version of SpamAssassin contains many upgrades - up to, and including DKIM checks, an improved SQL settings implementation. You may want to upgrade to this version.

Upgrading is easy; just go through the following steps:

1.) Download SpamAssassin from: http://spamassassin.apache.org/downloads.cgi

% wget "http://apache.mirror.aussiehq.net.au//spamassassin/source/Mail-SpamAssassin-3.3.1.tar.gz"

2.) Unpack:

% tar xvfz Mail-SpamAssassin-3.3.1.tar.gz -C /usr/local/atmail/server_source/
% cd /usr/local/atmail/server_source/Mail-SpamAssassin-3.3.1


3.) Rename your previous SpamAssassin directory:

% mv /usr/local/atmail/spamassassin /usr/local/atmail/spamassassin.3.2

4.) Install the NetAddr::IP module:

% perl -MCPAN -e 'install NetAddr::IP'

5.) Install:

% perl Makefile.PL  PREFIX=/usr/local/atmail/spamassassin/  && make && make install

6.) Move the local.cf and sqlsettings.cf files:

% cp /usr/local/atmail/spamassassin.3.2/etc/sqlsettings.cf /usr/local/atmail/spamassassin.3.2/etc/local.cf /usr/local/atmail/spamassassin/etc/mail/spamassassin/

7.) Restart services:

% /etc/init.d/atmailserver restart

Congratulations. Now you have SpamAssassin 3.3.x. Credits to the Apache Software Foundation (http://www.apache.org/) for making a tremendously amazing piece of software.


Filed under: Uncategorized, Anti-Spam — John Contad @ 8:32 pm

 

February 16, 2011

 Running IMAP on Another Port

To run Dovecot on another port, just do the following:

Open up /usr/local/atmail/mailserver/etc/dovecot.conf. Find:

protocol imap {
#
mail_plugins = quota imap_quota
#
#  mail_executable = /usr/local/atmail/mailserver/etc/create-imap.sh
#

}

Change to:

protocol imap {
#
mail_plugins = quota imap_quota
#
#  mail_executable = /usr/local/atmail/mailserver/etc/create-imap.sh
#

listen = *:143 *:144

}

Where 144 is your additional port. Restart Atmail afterward.


Filed under: Uncategorized — John Contad @ 4:14 pm