Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Sendmail is using 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.

share|improve this question

AFAIK there is no such sendmail's command line option.

You may use sendmail wrapper script/program to fix your problem. Does your code accepts custom sendmail's path?

You may use FEATURE(use_ct_file) in to stop sendmail from generating X-Authentication-Warning: for users listed in /etc/mail/trusted-users file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.