procmail
[Top] [All Lists]

Re: Using $SENDMAIL $SENDMAILFLAGS

2010-03-04 19:51:05
Charles Gregory <cgregory(_at_)hwcn(_dot_)org> writes:

On Wed, 3 Mar 2010, Harry Putnam wrote:
:0
 * ^To: user(_at_)host(_dot_)some(_dot_)com
   |$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com

You can either use 'formail' to change your 'To:' header
(via a 'filter' in procmailrc), or you can adjust the receiving filter
so that it whitelists mail from the mail server doing the forwarding
(by filtering for the appropriate 'Received' header).

Thanks... 

[...]

Harry wrote:
But I assumed the

  |$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com

Rewrote the To: line so it would be reader(_at_)newsguy(_dot_)com

Sean replied:
No, the address specified on the commandline is treated as a BCC.

Theres' what I was after...

If you want to rewrite the to, pipe it through formail to do so, THEN
forward it (but be wary of using arguments to sendmail to "parse the
message for recipients" because you'll then resend to CC recipients,
which isn't nice).

  |$SENDMAIL $SENDMAILFLAGS reader(_at_)newsguy(_dot_)com

actually does... what rewriting if any takes place?

None.

Thanks to you both... and Sean for the details of how it works .


____________________________________________________________
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

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