[CentOS] Re: Anti Virus and Anti Spam

Sat Aug 30 03:15:25 UTC 2008
Michael Ekstrand <michael at elehack.net>

"horas simalango" <horasima at gmail.com>
writes:
> New be in linux!
> Currently I have Install DNS, Email and Web server using centos 4.3.
> All functions are running properly!
> What anti virus and anti spam recomended for me to install to my
> server? 

I have had very good success with SpamAssassin.  I do not presently use
any anti-virus software in my email path, so I can't speak to that.

> What I have to configure after installing anti virus and anti spam?
> Would some one help me please.! Now many spam mail come to user
> mailbox!

You will need to inject it somehow into your mail delivery path.  I do
this by using procmail.  I have a pipe/filter rule which runs the e-mail
through SpamAssassin (using the `spamc' program to connect to a
long-running daemon) and then filters based on the headers returned.  My
file looks like this:

DEFAULT=$HOME/Maildir/
LOGFILE=$HOME/.maillog
EXTENSION=$1
MAILDIR=$HOME/Maildir

:0
* EXTENSION ?? ^^spam^^|^^ham^^
|spamc -L $EXTENSION

:0 f
|spamc

:0
* ^X-Spam-Flag:.*YES
{
        # This rule puts everything with a score of at least 10 in /dev/null
	:0
	*^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
	/dev/null
}

I then combine this with a Gnus scoring rule (client-side filter applied
to POP mail downloads) to put everything with a spam score of at least 5
(the default to get a positive in SpamAssassin) in a junk mailbox.

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files?  I cryptographically sign my messages.
For more information see <http://www.elehack.net/resources/gpg>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080829/9958c742/attachment-0005.sig>