>How do you specify the test message envelope sender addresses?
I just use:
date | mail -s "$(date)" -r 'whatever[at]ghi.com' someone[at]somedomain.com
mail program links to mailx. mailx man page says:
-r address
Sets the From address. Overrides any from variable specified
in environment or startup files. Tilde escapes are disabled. The -r
address options are passed to the mail transfer agent unless SMTP is used.
This option
exists for compatibility only; it is recommended to set the
from variable directly instead.
I guess I misunderstood envelope sender address canonical mapping. I
thought any email with a from header would have its envelope sender (it's
the return-path I'm targeting) changed to an arbitrary value.
How can I accomplish that?
Return-Path: whatever or nothing
From: whatever[at]ghi.com
Changed to:
Return-Path: address_2[at]whereto.com
From: whatever[at]ghi.com
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]