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 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

1 Answer 1

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 newaddress@example.com fsr
  return_path = newaddress@example.com

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.