[Exim] system_aliases

Top Page
Delete this message
Reply to this message
Author: Nic LAWRENCE
Date:  
To: exim-users
Subject: [Exim] system_aliases
Hi,

Sorry if I'm asking a no-brainer, but I've completely failed to understand
what to do from reading the documentation. My question is this:

I'm replacing sendmail on a Cobalt RaQ. In doing so I've written a perl
script which translates the sendmail /etc/mail/aliases and
/etc/mail/virtusertable files in to /etc/exim/virtmap.db for use as the exim
system_aliases db. (The Cobalt RaQ web GUI interface writes out ikky
sendmail db files which I still want to read config changes from you see).

I have an email address majordomo@??? as an example which is not
translating as I would expect. I was expecting the following translation
route:

1. majordomo@??? -> majordomo_site45
as per virtmap.db> majordomo@???: majordomo_site45

2. majordomo_site45 -> "|/usr/local/majordomo/wrapper -v site45 -f
www.tfb.net majordomo"
as per virtmap.db> majordomo_site45:
"|/usr/local/majordomo/wrapper -v site45 -f www.tfb.net majordomo"

... but instead it's failing to lookup on the local alias "majordomo_site45"
on it's own ... (see below)

Any ideas? I'm obvjously doing something very wrong but I have no idea what!
:(



[root@/root]$ exim -d9 -bt majordomo@???
Exim version 3.22 debug level 9 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
search_open: dbm "/usr/exim/local_domains.db"
search_find: file="/usr/exim/local_domains.db"
key="mail.tfb.net" partial=-1
LRU list:
1/usr/exim/local_domains.db
End
internal_search_find: file="/usr/exim/local_domains.db"
type=dbm key="mail.tfb.net"
file lookup required for mail.tfb.net
in /usr/exim/local_domains.db
lookup failed
mail.tfb.net in local_domains? no (end of list)
adding primary host name mail.tfb.net to local_domains
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=Root
sender address = root@???
Address testing: uid=0 gid=0 euid=0 egid=0
>>>>>>>>>>>>>>>>>>>>>>>>

Testing majordomo@???
majordomo@??? in *@reallifecams.net? no (end of list)
majordomo@??? in *@reallifecams.org? no (end of list)
majordomo@??? in *@rickharris.co.uk? no (end of list)
search_open: dbm "/usr/exim/local_domains.db"
cached open
search_find: file="/usr/exim/local_domains.db"
key="tfb.net" partial=-1
LRU list:
1/usr/exim/local_domains.db
End
internal_search_find: file="/usr/exim/local_domains.db"
type=dbm key="tfb.net"
file lookup required for tfb.net
in /usr/exim/local_domains.db
lookup yielded:
tfb.net in local_domains? yes (matched dbm;/usr/exim/local_domains.db)
tfb.net in percent_hack_domains? no (matched !*)
address majordomo@???
local_part=majordomo domain=tfb.net
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>

directing majordomo@???
calling system_aliases director
df_lookup entered: search type = dbm
system_aliases director: dbm* key=majordomo@???
file="/usr/exim/virtmap.db"
search_open: dbm "/usr/exim/virtmap.db"
search_find: file="/usr/exim/virtmap.db"
key="majordomo@???" partial=3071
LRU list:
1/usr/exim/virtmap.db
1/usr/exim/local_domains.db
End
internal_search_find: file="/usr/exim/virtmap.db"
type=dbm key="majordomo@???"
file lookup required for majordomo@???
in /usr/exim/virtmap.db
lookup yielded: majordomo_site45
parse_extract_addresses: majordomo_site45
extract item: majordomo_site45
majordomo_site45@??? in *@reallifecams.net? no (end of list)
majordomo_site45@??? in *@reallifecams.org? no (end of list)
majordomo_site45@??? in *@rickharris.co.uk? no (end of list)
system_aliases director generated majordomo_site45@???
errors_to=NULL transport=NULL
uid=unset gid=unset home=NULL
system_aliases director succeeded for majordomo
search_open: dbm "/usr/exim/local_domains.db"
cached open
search_find: file="/usr/exim/local_domains.db"
key="tfb.net" partial=-1
LRU list:
1/usr/exim/local_domains.db
1/usr/exim/virtmap.db
End
internal_search_find: file="/usr/exim/local_domains.db"
type=dbm key="tfb.net"
cached data used for lookup of tfb.net
in /usr/exim/local_domains.db
lookup yielded:
tfb.net in local_domains? yes (matched dbm;/usr/exim/local_domains.db)
tfb.net in percent_hack_domains? no (matched !*)
address majordomo_site45@???
local_part=majordomo_site45 domain=tfb.net
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>

directing majordomo_site45@???
calling system_aliases director
df_lookup entered: search type = dbm
system_aliases director: dbm* key=majordomo_site45@???
file="/usr/exim/virtmap.db"
search_open: dbm "/usr/exim/virtmap.db"
cached open
search_find: file="/usr/exim/virtmap.db"
key="majordomo_site45@???" partial=3071
LRU list:
1/usr/exim/virtmap.db
1/usr/exim/local_domains.db
End
internal_search_find: file="/usr/exim/virtmap.db"
type=dbm key="majordomo_site45@???"
file lookup required for majordomo_site45@???
in /usr/exim/virtmap.db
lookup failed
trying default match *@tfb.net
internal_search_find: file="/usr/exim/virtmap.db"
type=dbm key="*@tfb.net"
file lookup required for *@tfb.net
in /usr/exim/virtmap.db
lookup failed
trying to match *
internal_search_find: file="/usr/exim/virtmap.db"
type=dbm key="*"
file lookup required for *
in /usr/exim/virtmap.db
lookup failed
system_aliases director declined for majordomo_site45:
calling userforward director
userforward director declined for majordomo_site45 (not a user)
calling localuser director
localuser director declined for majordomo_site45: no such user
majordomo_site45@??? is undeliverable:
unknown local-part "majordomo_site45" in domain "tfb.net"
search_tidyup called
[root@/root]$