FAQ / Configuration cookbook / Q9805
| /Q9801 /Q9802 /Q9803 /Q9804 /Q9805 /Q9806 /Q9807 /Q9808 /Q9809 /Q9810 /Q9811 /Q9812 |
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.netIf you set envelope_to in the appendfile transport, the original envelope address is preserved in the message in an Envelope-to: header line.
| /Q9801 /Q9802 /Q9803 /Q9804 /Q9805 /Q9806 /Q9807 /Q9808 /Q9809 /Q9810 /Q9811 /Q9812 |
FAQ / Configuration cookbook / Q9805
