procmail
[Top] [All Lists]

Question on restricting incoming mail from Mail Lists

2003-07-04 21:03:40
I have set up one email address per email list and want to use procmail
to filter out any item that comes in to my email address that does NOT
come from the email list address.  Like this list.

Basically I want to do a match on the To: line and a reverse match on
the From: header line.

I've seen plenty of examples of how to match something but none on how
to match everything EXCEPT something.  Seems like I should be able to
just put a '!' in front of the condition.  Will that do it?

:0:
   # this recipe works on only mail addressed to this email address
   * for.<sendmail(_at_)netgods(_dot_)us>
   # match if not sent by the email list 
   * !Sender:(_dot_)procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE      
   possible.spam

Thanks


Dana Bourgeois


-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE 
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of 
Jack L. Stone
Sent: Friday, July 04, 2003 11:16 AM
To: James Tsay; procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Trapping SPAM on Mail Lists


TopPost:
James: Are you running spamd as daemon as I am here?

At 01:28 AM 7.5.2003 +0800, James Tsay wrote:
At  Friday, July 04, 2003 10:10 PM, "Jack L. Stone" wrote:
Here is a snippet of my global procmailrc:

<part of variables>
SPAM=/usr/samba/mail/spams

I installed Sendmail-8.9.3, SpamAssassin 2.55, and Procmail V3.21

I use spamd, I didn't experience any problem. here is my 
/etc/procmailrc:

----------------------
SHELL=/bin/sh 
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
MAILDIR=/var/spool/mail
VERBOSE=no
LOGFILE=/var/tmp/procmail.log

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

:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-spam

:0:
* ^X-Spam-Status: Yes
proble-spam
-------------------------

Cheers,
James Tsay
Mintac.com Division,
CVA-Tech America, Inc.



Best regards,
Jack L. Stone,
Administrator

Sage American
http://www.sage-american.com
jacks(_at_)sage-american(_dot_)com

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



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