procmail
[Top] [All Lists]

Re: mailbounce tool

2001-12-12 22:17:22
Andrew answered Bill,

| This is something that usually has a better tool in the MTA.  ...

| This, to my mind, is much more "correct" than the kludge defining an alias
for
| an address, that points to another non-deliverable address.

Andrew, your suggestion is available only to sysadmins.  Bill's -- which, as
I recall, mentioned forwarding mail to a nonexistent address but never
specified defining an alias -- is accessible to the unwashed hoi polloi of
mere users.  For example,

 :0 condition-related flags, maybe c
 * conditions
 * ^^From +\/[^     ]+
 ! -f "$MATCH" $LOGNAME=$HOST(_at_)example(_dot_)com

That, in turn, depends on whether $SENDMAIL is something that will allow a
remote address as an argument to the -f option.  If the system has rmail,
though, rmail will generally pass mail onward with the old envelope sender
address:

 :0 condition-related flags, maybe c
 * conditions
 | rmail $LOGNAME=$HOST(_at_)example(_dot_)com

Again, normally when one forwards mail, one should change the envelope
sender to point to the forwarder, not to the originator.  This use is an
exception.


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