procmail
[Top] [All Lists]

Re: Qmail and SpamAssassin with Forwarding

2004-01-06 12:05:06





Ok, I understand that I might be dropping mail to /dev/null. I guess it was
suppose to be in there to prevent local devliery to maildir or mailbox.
What I really need to find is how to forward messages or have qmail forward
the filtered (spamassassin message).Even if I take out the /dev/null part,
the filtered message is still not delivered.
So a message comes in, goes to the local user directory, reads the .qmail,
runs procmail, and THEN I want the filtered message to go to the Lotus
Domino server. For some reason, it's not doing that. Some programs can be
run in a .qmail file and will follow the next line in it so that it
forwards.

I would like procmail to run, then go back to forward which is what I
thought the -m -p did.
|preline procmail -m -p rc
|forward $USER(_at_)adomain(_dot_)com

Either that or a blank message goes or an unfiltered message. I can't
remember which method produced what, I tried a couple different variations.

Thanks

To: "[procmail]"
From: "Ruud H.G. van Tol"
Sent by: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Date: 01/06/2004 01:32AM
Subject: Re: Qmail and SpamAssassin with Forwarding

dplohry:
/etc/procmailrc:

DROPPRIVS=yes
:0
* < 256000
{
:0fw
| spamc -f
:0
/dev/null
EXITCODE=$?
}
:0
/dev/null
EXITCODE=$?

In general, you are dropping all mail in /dev/null
and you use EXITCODE after delivery.


Test a simpler version first:

DROPPRIVS = yes
LOG = "$HOME/procmail.log"

:0 # for user "spamtest" only
* LOGNAME ?? ^^spamtest^^
{ VERBOSE = yes }

:0fw
* < 256000
| /usr/bin/spamc


See also
http://www.osdigest.com/issue2/spamassassin.html

--
Affijn, Ruud


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>