procmail
[Top] [All Lists]

does this recipe make sense

2004-08-01 08:21:59
Hi

Using spamassassian with Sendmail on RH8.0

I want to dump all spam to /dev/null for any email marked as spam.
So first rule in local .procmailrc looks ok.
Second rule should test for 1 of the email addresses and forward a copy of
the email to a second user not on this server but also copy to the local
user.
Any other legit addresses such as webmaster or postmaster will also hit this
.procmailrc and should pass thru if not spam to the users mailbox.

#dump any mail marked as spam (in headers)
:0 :
* ^X-Spam-Status: Yes
/dev/null

#test for a specific address an forward to a second user (not on this
server)
:0 c
* enquiries(_at_)domain(_dot_)co(_dot_)uk
! user2(_at_)domain1(_dot_)com

#do i need a rule here to continue delivery to local user?

#procmailrc ends.

hopefully only spam free (rule1) and web/post/enq emails get here and are
delivered to local mailbox.

Mark



____________________________________________________________
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>