My Sendmail is using
email@example.com as the envelope sender on messages my server generates using
/usr/bin/sendmail. I want it to get the address from the
From: header in the message and use that instead.
I'm not currently using the
-f option to
sendmail, and I'd rather not have to change the code to do that. It uses a few different from addresses, so I can't just set it to a constant value. Also, using
-f adds a
X-Authentication-Warning: header that I don't want.
Is there some way to configure Sendmail to use the From address as the envelope sender? This server can only be accessed by trusted users, so I'm not worried about bogus addresses.