Re: [exim] route_data + manualroute fails?

Góra strony
Delete this message
Reply to this message
Autor: Serhan Türkmenler
Data:  
Dla: exim-users
Temat: Re: [exim] route_data + manualroute fails?
Thanx
That did it..

----- Original Message -----
From: Peter Bowyer
To: Exim Users Mailing List
Sent: Tuesday, February 15, 2005 10:02 AM
Subject: Re: [exim] route_data + manualroute fails?


On Tue, 15 Feb 2005 09:51:49 +0200, Serhan Türkmenler
<serhant@???> wrote:
> Hello
>
> I am setting up a frontend test server which will have the lowest mx records and pass them to the relevant server behind it with hightr MX's
>
  >                         |----------->first server with mx1
  > spamserver----->
  > (exim+sa-exim)   |----------->second server with mx1
  >    mx0

>
> I need to define a router that will let exim know which backend to send mail to.
>
> It has worked with route _list:
>
  > internal_relay:                       (WORKING)-->dnslookup router enabled???
  > driver = manualroute
  > domains = ovidirect2.com
  > transport = remote_smtp
  > route_list = ovidirect2.com mail.ovidirect2.com

>
> BUT route_data gives me error.
>
  > internal_relay:        (NOT WORKING)
  >  driver = manualroute
  >  domains = ovidirect2.com
  >  local_parts = lsearch;/etc/exim/deneme
  >  route_data = $local_part_data
  >  transport = remote_smtp
  >  no_more

>
> /etc/exim/deneme is:
> ovidirect2.com: mail.ovidirect2.com
>
> This gives me the "Lowest MX is Me" error. If I disable dnslookup router it still fails


You are doing a 'local_parts' search when your data file contains
domain names (not local parts). This is unlikely to produce useful
results.

...
domains = lsearch;/etc/exim/deneme
route_data = $domain_data
...

should do it.

Peter
--
Peter Bowyer
Email: peter@???
Tel: +44 1296 768003
VoIP: sip:peter@???

--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##