On 2022-06-30 23:41, Bob Proulx wrote:
Wietse Venema wrote:
White, Daniel E. (GSFC-770.0)[AEGIS]:
> I found out how to do it from command line:
>
> echo -e "Testing Mail\nThank you" | mailx -v -s "Testing Mail" -S 
"reply-to=yom...@example.com"  m...@example.com<mailto:m...@example.com>

This smells like a common webserver problem, where the webserver
submits email messages that appear to come from rhe web server's
UNIX account (www-ser...@example.com). Adding a Reply-To: header
is the WRONG solution for that. Instead, specify the correct
envelope sender address:

    /usr/bin/sendmail -f yom...@example.com recipient....

WDYT about using a canonical table to map www-d...@example.com to
desi...@example.com?  Then no Reply-To would be needed since the From:
address would be correct.

Of course this would only work in cases where only a single envelope
sender address is used.  In the case of a webmail client with multiple
users, it won't scale.  The better choice is to consult documentation
for that webmail and configure it to use sender addresses of logged-in
users.

For the OP:

    http://www.postfix.org/ADDRESS_REWRITING_README.html#canonical
--
  http://rob0.nodns4.us/

Reply via email to