Re: [exim] Routing mail to different internal server

Top Pagina
Delete this message
Reply to this message
Auteur: Conrad Lawes
Datum:  
Aan: John Burnham
CC: exim-users@exim.org
Onderwerp: Re: [exim] Routing mail to different internal server
One more question:

Where do I place the manualroute in the exim config file so that Exim will
route mail to Sendmail server by default if a user is not found in the
(Zimbra) lookup table?


On Fri, Mar 27, 2009 at 11:24 AM, John Burnham <jpb15@???>wrote:

> >
> > My understanding of how to create an exim routing rule is
> > very basic. An
> > example would be most helpful.
> >
>
> There are some examples in the docs:
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch20.html#SECID123
>
> Halfway down you get something like
>
> through_firewall:
> driver = manualroute
> transport = remote_smtp
> route_data = ${lookup {$domain} cdb {/internal/host/routes}}
>
>
> You could alter that so that you lookup $local_part instead of the domain
> and use a straightforward text file using lsearch. That would give you
> something like (untested)
>
> some_random_name:
> driver = manualroute
> transport = remote_smtp
> route_data = ${lookup {$local_part} lsearch
> {/a/file/with/localparts/and/ip/addresses/to/send/them/to}}
>
> and then have a file with lines like
>
> user1: 10.0.0.1
> user2: 10.0.0.2
>
> etc
>
> Does that help ? Please ask if you don't understand anything.
>
> John
>




--
Regards,
Conrad Lawes