Pol Hallen wrote:
> Hi folks :-)
> 
> Using spamassassin 3.2.5-2 (debian stable) and courier (only with pop3
> support - courier 0.61.0) I can't understand how I can integrate
> spamassassin in courier to check emails.
> 
> Google doesn't report me nothing about resolution of problem
> 
> in syslog I see:
> 
> ar 31 23:30:24 fuckaround spamd[5877]: logger: removing stderr method
> Mar 31 23:30:24 fuckaround spamd[5879]: spamd: server started on port
> 783/tcp (running version 3.2.5)
> Mar 31 23:30:24 fuckaround spamd[5879]: spamd: server pid: 5879
> Mar 31 23:30:24 fuckaround spamd[5879]: spamd: server successfully
> spawned child process, pid 5880
> Mar 31 23:30:24 fuckaround spamd[5879]: spamd: server successfully
> spawned child process, pid 5881
> Mar 31 23:30:24 fuckaround spamd[5879]: prefork: child states: II
> 
> how I can resolve the problem?
> thanks

There are two common ways to integrate Courier and SpamAssassin.

1) Use amavisd-new as a filter.  This has the advantage of being able to
reject high-scoring emails during the SMTP transaction.  Amavis also has
its own filtering abilities based on attachment types and lots of other
stuff. You can also use Amavis to do virus checking.  The disadvantages
are that there are no per-user settings and you cannot insert headers
into the messages, you can only accept or reject.  (The header thing may
have been resolved by now.  I know something was fixed, but I don't know
the details since I don't use amavis for SpamAssassin)

2) Call SpamAssassin from maildrop or whatever mail delivery agent you
use.  This has the advantage of being able to use per-user settings and
rules.  The disadvantage is that since you have already accepted the
message at this point, you cannot reject the spam.  You have to either
mark the spam and deliver it (possibly into a separate spam folder), or
silently drop the spam.

I call SA from maildrop.  I drop the highest scoring spam (above 10-15
points depending on the user) and mark the rest.  The higher scoring
messages that remain (above 5-7 points) are delivered to a junkmail
folder.  The rest are either delivered to the inbox for pickup via pop3
or forwarded to another destination email.

-- 
Bowie

Reply via email to