Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I use Exim on a Centos distribution and have some problems with the mail sending. In order to make all the email pass the spam filters the "Return-path" and "Sender" headers have to be attached to each email.

What should I do in order to have "Return-path" and "Sender" headers added by Exim to be exactly the same as the "From" header created by my mail client ?


share|improve this question
up vote 1 down vote accepted

Set local_from_check to false in the main section of your config. That will keep Exim from adding a Sender: header. If you want to be able to specify your own Sender: headers, then set local_sender_retain to true.

If you set untrusted_set_sender then your mail-client can specify the envelope sender (which on delivery is often placed into a new Return-Path: header) too.

If your client is not specifying a sender and you want Exim to fake it up for you, then you probably want to have the Router which sends outbound mail set the errors_to option which will rewrite the SMTP envelope sender for you. That's trickier to get right, so see if the others, and client config, are enough for you.

You don't mention which mail-client you're using.

share|improve this answer
i wanted to add it regarding of the email client used by the user, but the errors_to was exacly what i needed – Gabriel Solomon Mar 8 '10 at 11:34

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.