[Exim] NIS lookups

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Elena Blanco
Dátum:  
Címzett: exim-users
Tárgy: [Exim] NIS lookups
Hi

I'm having trouble getting Exim to perform lookups using a NIS map. I'm
using two NIS maps for lookups, I have a system_aliases director that
queries the mail.aliases map and a rewrite rule that queries the
mail.byaddr map, and both types of lookup fail for a key that I know
matches as far as NIS is concerned.

For example I have this director:

system_aliases:
           driver = aliasfile
           file = mail.aliases
           search_type = nis


And my local_domain is defined as oup.co.uk so I see where Exim thinks
my email address should go:

# /usr/exim/bin/exim -d9 -bt eblanco@???
Exim version 3.36 debug level 9 uid=0 gid=1
probably ndbm
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=1 login=root name=Super-User
sender address = root@???
Address testing: uid=0 gid=1 euid=97 egid=97
>>>>>>>>>>>>>>>>>>>>>>>>

Testing eblanco@???
oup.co.uk in local_domains? yes (matched oup.co.uk)
oup.co.uk in percent_hack_domains? no (end of list)
address eblanco@???
local_part=eblanco domain=oup.co.uk
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>

directing eblanco@???
calling system_aliases director
df_lookup entered: search type = nis
system_aliases director: nis key=eblanco
file="mail.aliases"
search_open: nis "mail.aliases"
search_find: file="mail.aliases"
key="eblanco" partial=-1
LRU list:
internal_search_find: file="mail.aliases"
type=nis key="eblanco"
file lookup required for eblanco
in mail.aliases
lookup failed

OK, so the NIS lookup in mail.aliases using the key eblanco fails.
Let's see what NIS thinks:

# ypmatch eblanco mail.aliases
ebv@cheviots

So querying NIS directly gets a value back for the same key that Exim is
using.

Exactly the same thing happens using the mail.byaddr map with the
follwing rewrite rule:

*@cheviots ${lookup{$0}nis{mail.byaddr}{$value}fail}@??? fFrs

Let's test this:

# /usr/exim/bin/exim -d9 -brw ebv@cheviots
Exim version 3.36 debug level 9 uid=0 gid=1
probably ndbm
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=1 login=root name=Super-User
ebv@cheviots in *@*.oup.co.uk? no (end of list)
ebv@cheviots in *@cheviots? yes (*@cheviots)
search_open: nis "mail.byaddr"
search_find: file="mail.byaddr"
key="ebv@cheviots" partial=-1
LRU list:
internal_search_find: file="mail.byaddr"
type=nis key="ebv@cheviots"
file lookup required for ebv@cheviots
in mail.byaddr
lookup failed

So the Exim lookup fails but NIS says:

# ypmatch ebv@cheviots mail.byaddr
eblanco

Am I missing something obvious?

Elena

--
Elena Blanco
Systems Administrator, New DNB
Oxford University Press