| From | Sent On | Attachments |
|---|---|---|
| Bryan Ragon | Mar 28, 2003 1:34 pm | |
| Sam Varshavchik | Mar 28, 2003 2:33 pm | |
| Bryan Ragon | Mar 31, 2003 6:05 am | |
| Bi...@triligon.org | Mar 31, 2003 9:52 am | |
| James A Baker | Mar 31, 2003 10:42 am | |
| Sam Varshavchik | Mar 31, 2003 11:02 am | |
| Rodrigo Severo | Apr 1, 2003 7:01 am | |
| Bi...@triligon.org | Apr 1, 2003 7:54 am | |
| Bryan Ragon | Apr 1, 2003 8:58 am | |
| Rodrigo Severo | Apr 1, 2003 9:57 am | |
| Rodrigo Severo | Apr 1, 2003 1:58 pm | |
| Gerardo Gregory | Apr 1, 2003 2:50 pm | |
| Gerardo Gregory | Apr 1, 2003 3:48 pm | |
| Bruce Broecker | Apr 1, 2003 6:46 pm | |
| Bi...@triligon.org | Apr 1, 2003 8:47 pm | |
| Jerry Amundson | Apr 2, 2003 8:39 am | |
| Rodrigo Severo | Apr 3, 2003 4:39 am | |
| Rodrigo Severo | Apr 3, 2003 5:12 am | |
| Rodrigo Severo | Apr 3, 2003 7:45 am | |
| Rodrigo Severo | Apr 3, 2003 10:14 am |
| Subject: | [courier-users] Re: Courier and Amavis | |
|---|---|---|
| From: | Gerardo Gregory (ggre...@affinitas.net) | |
| Date: | Apr 1, 2003 2:50:55 pm | |
| List: | net.sourceforge.lists.courier-users | |
The Amavis version I use is the one that Jim Gifford provided to the list as it had workarounds for Courier.
I call everything from maildrop. In the Amavis dist. I refer to above there is a README.courier file that will detail everything you need to know.
Maildrop calls Amavis (and Clam AV) first, Then SpamAssasin, and then Anomy.
The setup looks for specific headers after each process, and delivers the mail if it was successful in detecting Viruses, Spam, or Attachments.
For example:
Amavis is called
# Import Variables # import HOME import SENDER import RECIPIENT
# Virus Scan
if ($SENDER ne "") { FROM=$SENDER } else { FROM="unknown" }
xfilter "/usr/sbin/amavis $FROM $RECIPIENT"
if (/^Subject:.*VIRUS IN*/) { exception { to "Maildir/.Virus" } }
If a virus was detected the mail goes to Maildir/.Virus and no further checking is done for that piece of mail.
If no viruses are found then Spam Assasin is called next;
# Spam Assassin
xfilter "/usr/local/bin/spamassassin -x"
if (/^X-Spam-Flag: YES/) { to "Maildir/.Spam" }
If Spam is detected no further checks are done and mail is delivered to Maildir/.Spam
if no Spam is detected than Anomy is called,
# Anomy Sanitizer
ANOMY=/usr/local/anomy/ xfilter "/usr/local/bin/sanitizer.pl /var/xxxxxxx/xxxxx/xxxxx/sanitizer2.cfg"
And mail is then delivered to Maildir (if it made it this far).
Hope this helps, I bet there are many different ways of doing this, and mine might not be the most efficient.
Gerardo
P.S. If you use Clam AV dont forget to setup freshclam for automatic updates to the virus.db (as far as I can tell they normally update twice daily)
Rodrigo Severo writes:
Gerardo Gregory wrote:
Jim Gifford has been kind in providing the links to the Amavis version that supports Courier (I believe Jim is [or helped] in the development). Search the archives (from the last few months) and you will find this link. If I have some time I will try to find it and send it to you.
I will look for it.
I have found that Amavis, and Spam Assasin work well with Courier.
What brand of Amavis are you using? As far as I understand, there are 3 or more different Amavis: amavis, amavisd, amavisd-new, amavis-ng...
I believe that the best option for a email server solution is amavisd-new as it promises to be lighter on resource comsuption but I can be wrong. I already have before ;)
Being the overly paranoid person that I am I added also Anomy Sanitizer to strip unwanted attachments (like executables) from the e-mail and renaming these to a quarantine folder.
I don't think I will need this.
If you are interested in seeing how I implemented these, drop me an e-mail and I will be more than happy to share any info as to the specifics. An basic overview of my set up is Virus Scanning (if message is infected it gets quarantined) [Clam AV engine being called by Amavis], Spam Filtering [Spam Assassin], Anomy Sanitizer looks for unwanted attachments and strips them from the e-mail (and renaming them in the quarantine folder), message delivered to Maildir.
Could you tell me who calls who in your setup? I am planning on having Amavis (amavisd-new) being called by Courier. Possible through maildrop, is there a better option? Amavis would call ClamAV and SpamAssassin. What do you think about it?
Thanks for your attention,
Rodrigo Severo
------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________ courier-users mailing list cour...@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users





