procmail
[Top] [All Lists]

Re: {Blocked Content} Re: Filtering with Procmail before it goes to spamassassin.

2004-07-23 21:36:34
Ah, this is a very good point! Any BCC messages would cause a problem.

How about this logic: Anything addressed to @domain.com where the user@ is not me@ or webmaster@ it gets auto-responded to and not passed through to be processed by Spamassassin?

David Roth
rothmail at comcast.net
On Friday, July 23, 2004, at 11:36  PM, Justin Gombos wrote:

* Stephen Kuhn <stephen(_dot_)kuhn(_at_)gmx(_dot_)net> [2004-07-23 17:34]:

So in essence, I could create a rule at the end of my
/etc/procmailrc and do the same for each address I have (including
mailing lists) and effectively kill off anything that isn't truly
addressed to me, ya?

Sure, but if you have a friend who sends you and couple of his other
friends a message, and he doesn't want everyone to see each others
address, he might BCC you, in which case you would trash the message.
You should still capture the messages addressed to you on the envelope
but not addressed to you in the body header.

Kinda like:

########################################

:0
* TO(_dot_)skuhn(_at_)telpacific(_dot_)com(_dot_)au
 stephen/

:0
* TO(_dot_)stephen(_dot_)kuhn(_at_)gmx(_dot_)net
 stephen/

:0
* TO(_dot_)procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
 stephen/

:0
 /dev/null

########################################


That would do it.  Or you could do it this way:

  VALID_RECIPIENTS=(\
  skuhn(_at_)telpacific(_dot_)com(_dot_)au|\
  stephen(_dot_)kuhn(_at_)gmx(_dot_)net|\
  procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE)

  :0
  *$ ^TO_$VALID_RECIPIENTS
  stephen/

  :0
  questionable_messages/

____________________________________________________________
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



____________________________________________________________
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