Re: [exim] Smart routing problem

Etusivu
Poista viesti
Vastaa
Lähettäjä: Peter Bowyer
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Smart routing problem
Wayne Swart <fixx@???> wrote:
> Helo Fellow Exim Users
>
> I have a mailserver that handles mail for only one domain.
>
> But not all of the users of the domain is on the local server.
>
> I want to create a router that tells the server to query a file. If it
> matches a recipient for the local domain in that file, it needs to use
> the remote_smtp transporter for it.
>
> This is what I have in my exim configuration:
> unknown:
>  driver = manualroute
>  transport = remote_smtp
>  route_data =     lsearch;/usr/local/etc/exim/alias.remote
>  no_verify

>
> No looking at some examples, I think that that is the right way of
> setting up the router, but I am not sure what my lsearch'd file should
> look like inside?


Try this instead:

unknown:
driver = manualroute
transport = remote_smtp
local_parts = lsearch;/usr/local/etc/exim/alias.remote
route_data = $local_part_data

Then the file should look like

fred: freds.server.com
bert: berts.server.net

where mail for fred@mydomain is to be forwarded to freds.server.com. The
router will pass for localparts which are not found in the alias file.

Peter