[EXIM] aliases and local delivery problems

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Bernard Stern
Date:  
À: exim-users
Sujet: [EXIM] aliases and local delivery problems
(Sorry if you get this twice, I already sent this message yesterday
but I did not see it on the list).

Hello,

Newbie question (I looked through the manual and the draft-chapters of
the to-be book posted here).
Basically, I want local_users, list_users, majordomo_users, ... in
separate aliases tables. They will be called

/usr/exim/cfg/local-aliases
/usr/exim/cfg/list-aliases
/usr/exim/cfg/majordomo-aliases
etc

For instance, in local_aliases file, I have entries like these (just as tests):

exim: exim@???
ex.im: exim
exim.exim: exim
exim.mail-manager: exim

The file local-domains contains (for the moment) just one entry:

exim.switch.ch


In the configure file, I have defined:

local_delivery:
driver = appendfile
file = /var/spool/exim/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add
group = staff
user = ${local_part}
mode = 0600


local_user:
driver = aliasfile
file = /usr/exim/cfg/local-aliases
search_type = lsearch
rewrite = true
transport = local_delivery


(although rewrite = true is superfluous). I'm expecting, when sending
a mail to, for instance, ex.im@???, the address to be
aliased to exim@??? and to be deliverd locally to the exim
mailbox on /var/spool/exim/mail/exim. However, despite matching the ex.im
key in the local-aliases file, the mail is nonetheless delivered to
ex.im@???. Probably I'm missing something elementary, but
I can't find it. And yes, for the moment we are running pp...
Thank you for any help !! Below is the output (debug level 10) of an
example.

exim@arthur /usr/exim> exim -d10 -bv ex.im@???
Exim version 2.02 debug level 10 uid=666 gid=666
probably ndbm
Actual local interface address is 127.0.0.1
Actual local interface address is 130.59.4.20
Verifying: uid=0 gid=666 euid=666 egid=666
Verifying ex.im@???
search_open: lsearch "/usr/exim/cfg/local-domains"
search_find: file="/usr/exim/cfg/local-domains"
type=lsearch key="exim.switch.ch" partial=2
internal_search_find: file="/usr/exim/cfg/local-domains"
type=lsearch key="exim.switch.ch"
file lookup required for exim.switch.ch
in /usr/exim/cfg/local-domains
lookup yielded:
address ex.im@???
local_part=ex.im domain=exim.switch.ch
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>

directing ex.im@???
calling local_user director
local_user director: lsearch key=ex.im
file="/usr/exim/cfg/local-aliases"
search_open: lsearch "/usr/exim/cfg/local-aliases"
search_find: file="/usr/exim/cfg/local-aliases"
type=lsearch key="ex.im" partial=-1
internal_search_find: file="/usr/exim/cfg/local-aliases"
type=lsearch key="ex.im"
file lookup required for ex.im
in /usr/exim/cfg/local-aliases
lookup yielded: exim
queued for local_delivery transport uid=unset gid=unset
local_user director succeeded for ex.im
transport: local_delivery
ex.im@???
deliver to ex.im in domain exim.switch.ch
director = local_user, transport = local_delivery
search_tidyup called


Regards,

Bernard Stern, postmaster@???

_____SWITCH Swiss Academic and Research Network_______________________________
Mail: SWITCH Head Office / Tel:+41 1 268 1520 | Fax: +41 1 268 1568
      Limmatquai 138    / Internet: postmaster@???
   CH-8001 Zurich      / X.400: /S=postmaster/O=switch/P=SWITCH/A=400net/C=ch/
______________________________________________________________________________


--
*** Exim information can be found at http://www.exim.org/ ***