[Exim] Need help with a router lookup - Still

Pàgina inicial
Delete this message
Reply to this message
Autor: Kevin M. Barrett
Data:  
A: exim-users
Assumpte: [Exim] Need help with a router lookup - Still
All,

         I'm still having trouble with nis lookups and I'm hoping that
someone here can give me a pointer as to what I'm doing wrong.


I have the following router:

# Remote Site Router:
user_remote:
driver = manualroute
condition = "${if match {$local_part} {${tr
{${lookup{test}nis{mail.aliases}}} {,}{|}}} {yes} {no}}"
# if local_part is in alias test then they are remote users set to toronto
#
no_expn
transport = remote_smtp
route_list = * toronto-mail.domain.com
user = ${local_part}
no_verify

###### "End Router #####
When I test this config I get this from this router

foo is in that router kbarrett is not.

local_part=foo domain=domain.com
checking "condition"
search_open: nis "mail.aliases"
search_find: file="mail.aliases"
key="test" partial=-1 affix=NULL starflags=0
LRU list:
9/etc/aliases.blackberry
9/etc/aliases
End
internal_search_find: file="mail.aliases"
type=nis key="test"
file lookup required for test
in mail.aliases
lookup failed <<<<<<<<<<<<<<<<<< This is the problem .. any clue why this
would fail?
calling user_remote router
user_remote router called for foo@???
domain = domain.com
route_item = * toronto-mail.chantrynetworks.com
domain.com in "*"? yes (matched "*")
original hostlist=toronto-mail.domain.com options=
expanded hostlist="toronto-mail.domain.com" options=
set transport remote_smtp
finding IP address for toronto-mail.domain.com
doing DNS lookup
DNS lookup of toronto-mail.domain.com (A) succeeded
fully qualified name = toronto-mail.domain.com
toronto-mail.domain.com 192.168.2.10 mx=-1 sort=-73
queued for remote_smtp transport: local_part = foo
domain = domain.com
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by user_remote router
envelope to: foo@???
transport: remote_smtp
host toronto-mail.domain.com [192.168.2.10]
foo@???
router = user_remote, transport = remote_smtp
host toronto-mail.domain.com [192.168.2.10]
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=5772 terminating with rc=0 >>>>>>>>>>>>>>>>



even though the nis lookup fails the router continues.... what am I doing
wrong? first with the look up and also why is the router triggering even
though the condition failed due to lookup.

Other info :

Nis map for 'test"

> ypcat -k aliases | grep test

test kmb foo bar



Thanks for any help you can provide.

Kevin Barrett