Yeah ... this is what I did (keep in mind I had to implement the procmail 
systemwide since the mail has to go to procmail PRIOR to deliver ...

So if I makr [EMAIL PROTECTED] as pure spam then all cyrus users will never
get those messages (if you cat to /dev/null) ... here is how I did it...

(you could change this to make it NOT system wide btw)

in your .qmail-domain-default ....

| /usr/bin/preline /usr/bin/procmail -a $EXT2

Keep in mind that my .qmail-domain-default is OWNED by cyrus (ie. user cyrus
controls .qmail-domain) - $EXT2 is a env variable set by qmail - see 
http://www.lifewithqmail.org for more info on qmail env vars.

Then in your .procmailrc ...

TRASH='Spam'
DELIVER=/usr/cyrus/bin/deliver
CYUSER=$1
AMAVIS=/usr/cyrus/bin/amavis-stdin

:0w:$CYUSER.lock
| tail +2 | $AMAVIS $CYUSER | $DELIVER -e -a $CYUSER -m user.$CYUSER

Alternatively this will send spam to the spam folder ... (using razor - which
kicks ass ...)

:0 Wc
| razor-check
:0 Waf
| tail +2 | $AMAVIS $CYUSER | $DELIVER -e -a $CYUSER -m user.$CYUSER.$TRASH


You may notice amavis takes stdin (which is not the norm) I've hacked it 
extensively to work with procmail/qmail. If you are interested in this version
of it (which should be a simple drop in) email me offlist - it requires you
us the mcaffee virus scanner ...

This is how I set up qmail+cyrus+procmail+amavis+razor :)

--Joe


On Thu, Jan 24, 2002 at 05:34:32PM -0800, Erik Myllymaki wrote:
> You have any luck with this combo?
> 
> I am at the stage too where I am so close but yet sooooo far away ;-)
> 
> TIA,
> 
> 
> --
> 
> Erik Myllymaki
> [EMAIL PROTECTED]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"UNIX was not designed to stop you from doing stupid things, because 
 that would also stop you from doing clever things."

Attachment: msg05668/pgp00000.pgp
Description: PGP signature

Reply via email to