Re: [Exim] %1@domain.com forwarding

Top Page
Delete this message
Reply to this message
Author: David S. Madole
Date:  
To: exim-users
Subject: Re: [Exim] %1@domain.com forwarding
> "Customer Support" <support@???> wrote:
>
> ie mail to bob@domain would be passed on to bob@someotherdomain
> tom to tom etc.
>
> Can't see how to recreate this in exim, any pointers?


See section 22.4 in the docs for a tiny snippet of an example using the
redirect router.

http://www.exim.org/exim-html-4.30/doc/html/spec_22.html#SECT22.4

Basically, at the simplest, you could do something like this:

begin routers

  rewrite_domain:
    driver = redirect
    domains = olddomain.example
    data = ${quote:$local_part}@???


To get more complex (and handle multiple domains easily), you could pull the
data from a file or a database on-the-fly.

David