Sendmail + Cyrus + Procmail(?) + SpamAssassin

Miguel Mendez flynn at energyhq.homeip.net
Mon Mar 31 22:30:03 PST 2003


On Tue, 01 Apr 2003 00:17:40 -0600
Kirk Strauser <kirk at strauser.com> wrote:

Howdy,
 
> It's now well past my bed time, my brain is all muzzy, and I'm "this
> close" to giving up on the whole project.  Before I do, I have to ask:
> has *anyone* made Sendmail+Cyrus+Procmail+SpamAssassin work?  In order
> of most undesirable to least:

Almost, my setup is a bit different, but perhaps I can give you some
ideas. My mailserver goes like this:

postfix -> spamassassin -> deliver -> sieve

Now, how does one accomplish this? postfix pipes mail through a shell
script instead of feeding it directly to Cyrus' deliver. This shell
script pipes mail through spamassassin, and then finally to deliver,
which uses my .sieve to automagically bounce all Spam to trustic's
database and move messages to the appropriate folders. What you could do
is something like have sendmail pipe you email to a shell script that
would pipe it to procmail, and finally to Cyrus' deliver. Note that you
can't have procmail deliver the mail becuase Cyrus uses its own storage
method (a Maildir lookalike combined with some BerkeleyDB stuff)

If you want to have a look at the shell script I'm using, I got it from
here: http://www.tml.hut.fi/~pnr/spam.html

2 remarks: Newer versions of SA don't support the -F0 and -P options,
and , you'll have to modify it, since it was made for postfix, but I
hope it will help as a starter.

Also, if you have time, I'd recommend playing with sieve, it's quite
powerful and yet easy to use tool to do server side mail
filtering/sorting.

HTH,
-- 
        Miguel Mendez - flynn at energyhq.homeip.net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
	Tired of Spam? -> http://www.trustic.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030401/3b1a1adc/attachment.bin


More information about the freebsd-questions mailing list