Skip to content
Nigel Metheringham edited this page Nov 25, 2012 · 3 revisions

FAQ_ / Configuration cookbook / Q9805


`Navigation(siblings)`_


Q9805

Question

How can I configure Exim so that all mails addressed to [[email protected]](mailto:[email protected]) get delivered to /var/spool/mail/username?

Answer

Assuming that you have set up username as a normal user, with conventional routing for [[email protected]](mailto:[email protected]) to that mailbox, all you need to do is set up a redirection, using a router like this:

user_in_domain:
  driver = redirect
  data = ${if match{$domain}{\N^(.*)\.domain\.net$\N}\
         {$1}fail}@domain.net

If you set envelope_to in the appendfile transport, the original envelope address is preserved in the message in an Envelope-to: header line.


`Navigation(siblings)`_


FAQ_ / Configuration cookbook / Q9805


CategoryFrequentlyAskedQuestions_

Clone this wiki locally