procmail
[Top] [All Lists]

Re: Question on restricting incoming mail from Mail Lists

2003-07-04 23:29:01
At 20:53 2003-07-04 -0700, Noarmun E. Mailer wrote:
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.

Let me guess - you're using a virtuserable entry like:

@netgods.us     myrealaccount

Keep in mind that this is a SUREFIRE way to increase your exposure to spam, since spammers needn't have a valid address to send mail to your domain.

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

That's because, just like on the Procmail list, your address appears in the To: header? Or for that matter, you can guarantee that the list address will (it's annoying, but not entirely uncommon for someone to Cc: the list, and reply To: the previous message author)?

Why do this anyway? Shouldn't the fact that it's coming _from_ the list be sufficient (as in your example, you're matching on the Sender). Do you understand how low infintessimally small the likelyhood is that a mailing list is going to arbitrarily start emailing you at some OTHER address?

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?

Time to whip out your copy of 'man procmailrc' and spend some time cuddled up with it in front of a crackling fire.

  * for.<sendmail(_at_)netgods(_dot_)us>

Better would be to associate that with a specific header:

* ^Received:.*for\<+sendmail(_at_)netgods\(_dot_)us

[snip]
And you included some OTHER list post just for good measure?

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


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