procmail
[Top] [All Lists]

Procmail, sendmail and external forwarding from /etc/aliases

2005-06-28 07:45:12
Hi,

I am using Spamassassin with Sendmail and procmail; 
The /etc/procmailrc is:

--------------------------------------------
DROPPRIVS=yes

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

:0
* ^X-Spam-Status: Yes
$HOME/spam
--------------------------------------------

Mail delivery to system local mailboxes is placed in $HOME/spam if marked with 
'[SPAM]' in the header, which is fine. 

The problem!:- I have a number of external accounts in /etc/aliases and all 
spam mail is forwarded to them without the [SPAM] in the header. 

I believe this is because sendmail relays to external accounts without actually 
passing mail through procmail and spamassassin for some reason... 

What I am trying to achieve is that all [SPAM] mail is delivered locally to 
$HOME/spam and not forwarded to any external accounts (from /etc/aliases). 
...and only non-spam mail is delivered to internal and external accounts.


Your help is muchly appreciated. 

Cheers, 
Evgeni 
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>