Wietse:
> By design (RFC 5321/5322), envelope.from and header.from can contain
> diffferent addresses.
>
> For example, this email message has different addresses in envelope.from
> (postfix-users-boun...@postfix.org) and header.from
> (postfix-users@postfix.org).
>
> If you want to to change both the envelope.from and header.from,
> then you need to change both the envelope.from and header.from.
>
> But I am not sure that listing the VERP sender address in the header
> is a good idea.

Rafael Azevedo:
> I'm trying to change de envelope.from when resubmitting message to
> postfix queue using milter.
>
> For some reason this is not working as expected:
> 
> SENDMAIL="/usr/sbin/sendmail -i -f ${VERP_ADDRESS}"
> $SENDMAIL "$@" <<EOF
> $SIGNED_CONTENT
> EOF

You are changing the envelope.from address. Look in the Postfix logging:

    myhostname postfix/pickup[aaa]: bbb: uid=ccc from=<ddd>

The <ddd> is the envelope.from address.

If you want to also change the header.from, then you need to do
that separately. For example, replace the header before feeding it
into Postfix sendmail, or change later with a Milter.

But I am not sure that listing the VERP sender address in the header
is a good idea.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to