OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Amavis, ClamAV & SpamAssassin

From: mouss (mlist.onlyfree.fr)
Date: Thu Dec 06 2007 - 15:36:27 CST


Damien Hull wrote:
> I can't seem to find any good documentation for Postifx and Amavis. I
> follow the instructions only to find out it doesn't work. I have tried
> the following.
>
> * https://help.ubuntu.com/community/Postfix
> * http://flurdy.com/docs/postfix/
> o Used some of the documentation
> o Mostly the Amavis info
>

I noticed that in many posts, people talk about howtos and other links,
and forget about the sites of the software they are trying to use.
        http://www.postfix.org/
        http://www.ijs.si/software/amavisd/amavisd-new-docs.html

> Here's what I have
>
> * Ubuntu Gutsy Gibbon
> * I can receive email
> * I can send email
> * Postfix talks to Amavis
> * Amavis runs the email through ClamAV
> * I don't think it works with SpamAssassin
>
> When I look at the header of my test email I only see ClamAV. I don't
> see anything about SpamAssassin. I'll be searching for better
> documentation on this. I'm assuming someone out there has this working.
>

one faq of amavisd-new is that you don't get mail tagged unless it is
destined to one of the local domains defined in the amavisd config file.

> NOTE
> I need to reinject the mail back into postfix after it's been scanned
> using Amavis etc... I don't know if the above instructions do this.

All the necessary details are in amavisd-new README.postfix. delete all
the config items (backup your config of course) that you did to
integrate amavisd-new, and follow the README.postfix. This will save you
from trying to reinvent the wheel and from getting things wrong and not
understanding why.