Re: [Exim] special transport for special domains

Góra strony
Delete this message
Reply to this message
Autor: Thomas Baumann
Data:  
Dla: exim-users@exim.org
Temat: Re: [Exim] special transport for special domains
Thank you for your reply.
With following modification it is working fine for me:

  route_list = \
        internal-north.tiri.li north.dyndns.org byname;\
        internal-south.tiri.li south.dyndns.org byname


Thanks again --

thomas

PS. What is the definition for
    byname
    byname_a
    ... ?



Zitat von Nico Erfurth <masta@???>:

> 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
>
>
>



--
Thomas Baumann // tirili+list.exim@???