Skip to content
Nigel Metheringham edited this page Nov 29, 2012 · 2 revisions

Q0420


`Navigation(siblings)`_


Q0420

Question

How can I arrange that mail addressed to [anything@something.mydomain.com](mailto:anything@something.mydomain.com) gets delivered to [something@mydomain.com](mailto:something@mydomain.com)?

Answer

Set up a router like this:

user_from_domain:
  driver = redirect
  data = ${if match{$domain}{\N^(.+)\.mydomain\.com$\N}\
    {$1@mydomain.com}}

Clone this wiki locally