procmail
[Top] [All Lists]

Re: Issue forwarding emails with procmail

2010-11-02 19:55:50
Hi Michael,

Thank you very much for your wise and precise advice.
You were right: procmail must be aided.

In case anyone'd need it (or if anyone could improved it), my recipe was:

RETURN_PATH=`formail -zxFrom: | sed -e 's/.*<\([^<]*\)>/\1/'`
SENDMAILFLAGS="$SENDMAILFLAGS -f $RETURN_PATH"

:0 fhw
| formail -i "Resent-From: $ADDRESS"

:0
! `cat $FORWARD_FILE`

This way, Return-path is set to $RETURN_PATH value by sendmail, based on
sender address (-f)...
And procmail perfectly replicates sendmail's ".forward" behavior.

thanx again!

It's not the HEADER you need to worry about.
You're confuzzing RFC 821 with RFC 822.
You need to change what Sendmail (or Postfix) uses as the MAIL FROM value.

It's not a header.
____________________________________________________________
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>