procmail
[Top] [All Lists]

Re: Rewriting From:

2003-03-05 09:38:33
At 01:07 2003-03-05 -0700, Ashley M. Kirchner wrote:
:0 h c
   * ^TO_websmith(_at_)pcraft(_dot_)com
   * !^FROM_DAEMON
   * !^X-Loop: websmith(_at_)pcraft(_dot_)com
   | (formail -r -I"Precedence: junk" \
        -I"From: websmith(_at_)pcraft(_dot_)com" \
      -A"X-Loop: websmith(_at_)pcraft(_dot_)com" ; \
     cat /etc/webmaster.msg) | $SENDMAIL -t

To change the _envelope_sender_, you should tack on an -fwebsmith(_at_)pcraft(_dot_)com on the end of the $SENDMAIL invocation (that doesn't change the From: line itself, but affects the envelope sender of the message). If you're not a trusted user on the system, the message will have an X-Authentication-Warning header stuffed into it (unless the authentication warnings are disabled in your sendmail).

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