Re: [Exim] special transport for special domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: Thomas Baumann
CC: exim-users@exim.org
Tárgy: Re: [Exim] special transport for special domains
Thomas Baumann wrote:
> Hello list,
>
> i´m using exim 3.36 and have the following problem:


I'm using 4.11, but I hope I can remember enough from 3.x ;)

> mail to outside directions goes out via transport
> remote_smtp:
> driver = smtp
>
> This is working fine.
>
> But now I need a special transport for the domain
> *@internal-north.tiri.li (which is not in any dns)


Add these to your relay_domains.

> with
> internal-north:
> driver = smtp
> hosts = 192.168.10.25
> port = 25
>
> internal-south:
> driver = smtp
> hosts = 192.168.20.25
> port = 25
>


You don't need special transports, IIRC.

> How can exim be configured that mails
> sent to external are sent over remote_smtp,
> mails to *@internal-north.* sent over 192.168.10.25:25,
> and mails to *@internal-south.* sent over 192.168.20.25:25 ?


You need to setup special routers for these both domains, like this:

relay_router:
   driver = domainlist
   transport = remote_smtp
   route_list = \
      internal-north.tiri.li: 192.168.10.25 byname_a;\
      internal-south.tiri.li: 192.168.20.25 byname_a


The router must be above your usual dnslookup-router.

ciao