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

My ISP requires my sender envelope header, and from: header to be a specific address. How do I configure exim to force all email to have this address when relaying?

share|improve this question

Assuming you have fairly standard routers/transports. Simply modify the transport that is used for outbound mail to perform address rewriting:

  driver = smtp
  headers_rewrite = *@+local_domains fsr
  return_path =

The first rule will handle From/Sender/Reply-To and the second Return-Path.

You can replace +local_domains with a wildcard if you really wish.

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.