From: John BOSSERT [mailto:[EMAIL PROTECTED]
> 
> Having got Courier moving mail, I want to add in anti-virus and spam
> scanning.  I've read the docs/homepages for Amavis and SpamAssassin
> (and Clam) - but would like some recommendations.  What
> version/variant of Amavis (-ng, -new, etc.) seems to play best with
> Courier?  Is a Courier/Amavis/Clamd/SpamAssassin combo a reasonable
> way to go or are there better alternatives?  Hidden gotchas?

I was able to get Amavis-ng/Clamd running with only a couple of
problems.

I had to increase the timeout for Clamd.  I found that once it timed out
scanning a message, it would lock up and refuse to scan anything else.
This caused Amavis to divert all further messages to it's "problems"
directory.  Once I increased the timeout to the value suggested in the
sample configuration (but not set as default for some reason), it seems
to be working fine.

I also had to make a simple modification to Amavis.  When it saves
messages to the "quarantine" or "problems" directories, it prepends
"X-Quarantined-To" and "X-Quarantined-From" headers so that you can tell
where the messages were supposed to go.  I found that when calling
Amavis from maildrop, it didn't pick up on the real recipient and just
mirrored the contents of the "To" header.  Since Amavis-ng is written
entirely in Perl, it was fairly simple to find where this header gets
written and change it to grab the contents of the RECIPIENT environment
variable.  (Keep in mind that you have to import this variable in your
maildroprc if you want to use it.)  This modification to Amavis-ng was
needed primarily to allow redelivery of messages that were diverted due
to the Clamd problem referenced above.

I am currently using spamc/spamd directly as an xfilter from maildrop,
so I don't have any experience integrating it with Amavis.  For spam
scanning, SpamAssassin is definitely the way to go.  You can call it
through Amavis, or you can use it directly from Maildrop (preferably as
spamc/spamd if you have a fair amount of traffic).  SpamAssassin works
so well that I set up a Courier server at home just so I could use
SpamAssassin on my personal email accounts.

Also, I am still testing this setup.  It is running for me and a couple
of other users, but is not in production for the whole mail server yet.
There may be other issues that will come up once it is under full load.  

Bowie


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to