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?

link|improve this question
feedback

1 Answer

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

remote_smtp:
  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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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