[NBLUG/talk] Server-side spam filtering?

Mark Street mark at oswizards.com
Sat Jul 22 15:42:36 PDT 2006


Personally I use postfix, amavisd-new along with spamassassin and clamav, 
along with the web interface Maia Mailguard to do black and white lists, spam 
and ham, SA rule trigger %'s, etc.

All my public mail comes through this particular server.
Well into the 6 figures of processed mail:
Efficiency: 97.93%   False Positive: 0.33%   False Negative: 1.74%
With some SA configuration tweaks over the years.

You might try something like:
fetchmail -> postfix -> amavisd-new -> maia -> local spool

you might even be able to inject right into amavisd-new from fetchmail.  
Google it.  You could also cut out maia if you want.

-----------

I also run a kolab2 groupware server with the same spam/av tools as stated 
above (except maia) with shared IMAP spam and ham folders.  For that one I 
create a filter in K-mail to route tagged SPAM into those folders.  Another 
script runs from a cron job, parses the mail in the spam and ham folders and 
learns from the mail placed into those folders.  Everyone can train SA by 
placing mail into these folders.

On Saturday July 22 2006 2:59 pm, Lincoln Peters wrote:
> I've set up my computer to download e-mail from my SBC account to a maildir
> folder (using getmail--a program that's similar to fetchmail but supports
> maildir).  I can then access my e-mail using IMAP (running Dovecot), either
> on the local system or on my laptop.  It seems to work fine except for spam
> filtering--the mail applications on both computers offer spam-filtering,
> but I don't think I'll get consistent results unless I can do
> spam-filtering on the server side.
>
> Thus far, I've been able to configure getmail to pipe incoming mail through
> SpamAssassin, so that incoming messages get the appropriate "Spam" headers
> (and in the case of actual spam, the summary).  What I haven't figured out
> is how to make it deliver spam to my "junk" folder instead of my inbox
> (right now I've set up KMail to run the "Spam handling" filter on the inbox
> but not the SpamAssassin check--at least for now it's keeping my inbox
> clean!).
>
> Any suggestions?  Here's the code to my getmailrc file (edited where
> necessary for security reasons):
>
> [retriever]
> type = SimplePOP3Retriever
> server = pop.sbcglobal.yahoo.com
> username = sampln at sbcglobal.net
> password = [CENSORED]
> timeout = 60
>
> [destination]
> type = Maildir
> path = ~/Maildir/
>
> [filter-spam]
> type = Filter_external
> path = /usr/bin/spamassassin
>
> [options]
> verbose = 0
> delete = true
>
>
> P.S.  I don't think that I have any problems on this part, but in case
> anyone's interested, I use a home-brewed shell script to run getmail, and
> the script is called by cron every minute.  Why use a shell script as a
> wrapper for getmail?  Because I need to ensure that getmail does not get
> started when it's already running (that seems to lead to duplicate messages
> appearing in my inbox).
>
> The shell script is:
>
> #!/bin/sh
> if [ -e /tmp/checkmail.lock ]
> then
>         exit
> fi
>
> touch /tmp/checkmail.lock
> getmail
> rm /tmp/checkmail.lock

-- 
Mark Street, D.C., RHCE
CTO Alliance Medical Center
http://www.oswizards.com
http://www.alliancemed.org
--
"First they ignore you, then they ridicule you, then they fight you, then you 
win" - Gandhi
"If you want truly to understand something, try to change it" - Kurt Lewin
--
Key fingerprint = 3949 39E4 6317 7C3C 023E  2B1F 6FB3 06E7 D109 56C0
GPG key http://www.oswizards.com/pubkey.asc



More information about the talk mailing list