procmail
[Top] [All Lists]

Re: Bang address and TO matching

1997-02-21 21:40:06
On Fri, 21 Feb 1997, Das Devaraj wrote:

Right in the beginning of .procmailrc, I have
:0 w
* !^TOuser1(_at_)mydomain(_dot_)com
* !^TO ... etc  <--- these are other ids like mailing lists
  { EXITCODE=67
    :0
    mail/bounce  #<--- taking out an insurance!
  }

This works great most of the time (an added advantage is that
this bounces bcc spams).  But when I get an address of the form
sending-gateway!mydomain(_dot_)com!user1(_at_)sender-domain(_dot_)com
this also is bounced.  Any suggestions as to how this can be fixed?
Running v3.10, if that matters.

You could reduce the condition to match your username only, since it's
the same in both address forms:

        * !^TOuser1

David Hunt <dnhunt(_at_)rain(_dot_)org>


<Prev in Thread] Current Thread [Next in Thread>