Re: [exim] exim with virtual domain question

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: 宇翔
CC: exim-users
Subject: Re: [exim] exim with virtual domain question
On Thu, 4 Oct 2007, 宇翔 wrote:

> sorry , i have miss add below
>
> domainlist relay_to_domains = virtualdomainA : virtualdomainB
>
> it is can work now ...


For tidyness, I'd suggest adding a new domainlist

    domainlist virtual_domains = dsearch;/etc/mail/Vdomains


then define relay_to_domains in terms of the new list, so that (if
necessary) it's easy to add new kinds of domain in the future

    domainlist relay_to_domains = +virtual_domains


Then each kind of domain will have a router or two (and possibly a
transport, if necessary) and the routers' domain conditions use the
corresponding domainlist:

    virtual_domains:
      driver = accept
      domains = +virtual_domains
      ...


For a longer example with several kinds of domains, see
http://www-uxsup.csx.cam.ac.uk/~fanf2/hermes/conf/exim/etc/etc.ppsw/configure

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}