Am 2004-08-01 16:09:18, schrieb Obantec Support:
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
:0 c
* To:(_dot_)*enquiries(_at_)domain(_dot_)co(_dot_)uk
! user2(_at_)domain1(_dot_)com
If it is always in the To-Header. If not, you can use
:0 c
* TO(_dot_)*enquiries(_at_)domain(_dot_)co(_dot_)uk
! user2(_at_)domain1(_dot_)com
which fits To: Bcc: Cc:
#do i need a rule here to continue delivery to local user?
! <localuser>
#procmailrc ends.
hopefully only spam free (rule1) and web/post/enq emails get here and are
delivered to local mailbox.
Mark
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature
____________________________________________________________
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