FAQ / Configuration cookbook / Q9805



Q9805

Question

How can I configure Exim so that all mails addressed to something@username.domain.net get delivered to /var/spool/mail/username?

Answer

Assuming that you have set up username as a normal user, with conventional routing for username@domain.net 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.



FAQ / Configuration cookbook / Q9805


CategoryFrequentlyAskedQuestions

EximWiki: FAQ/Configuration_cookbook/Q9805 (last edited 2008-09-25 11:39:34 by localhost)