Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

My Sendmail is using daemon-user@internal.hostname.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.

share|improve this question

1 Answer 1

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 submit.mc to stop sendmail from generating X-Authentication-Warning: for users listed in /etc/mail/trusted-users file.

share|improve this answer

Your Answer

 
discard

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.