[exim] Message delivery when home directory does not exist

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Chris Hills
Dátum:  
Címzett: exim-users
Tárgy: [exim] Message delivery when home directory does not exist
Hi

The server is running CentOS 5 with exim-4.63-3.el5 and
dovecot-1.0-1.2.rc15.el5.

The relevant configuration is as follows:-

[routers]
localuser:
driver = accept
check_local_user
local_part_suffix = +*
local_part_suffix_optional
# transport = local_delivery
transport = dovecot_delivery
cannot_route_message = Unknown user

[transports]
dovecot_delivery:
driver = pipe
command = /usr/libexec/dovecot/deliver -d $local_part
message_prefix =
message_suffix =
log_output
delivery_date_add
envelope_to_add
return_path_add

When I attempt a test message, the output is as follows:-

# exim -v -odf s12345
This is a test message.
.
LOG: MAIN
<= root@??? U=root P=local S=385
delivering 1IIi1J-0000Oj-7x
LOG: MAIN
== s12345@??? R=localuser T=dovecot_delivery
defer (2): No such file or directory: failed to chdir to /home/NEWCOL/s12345

However, the following does work:-
# stat /home/NEWCOL/s12345
stat: cannot stat `/home/NEWCOL/s12345': No such file or directory
[root@VM-00002 ~]# /usr/libexec/dovecot/deliver -d s12345
This is a test message.
[root@VM-00002 ~]# stat /home/NEWCOL/s12345
   File: `/home/NEWCOL/s12345'
   Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd02h/64770d    Inode: 1272962     Links: 5
Access: (0700/drwx------)  Uid: (16777219/ s12345)   Gid: 
(16777218/Domain Users)
Access: 2007-08-08 10:59:54.000000000 +0100
Modify: 2007-08-08 11:00:06.000000000 +0100
Change: 2007-08-08 11:00:06.000000000 +0100


From /var/log/maillog:-
Aug 8 10:45:14 VM-00002 deliver(s12345): msgid=: saved mail to INBOX

The delivery agent automatically creates the home directory if it does
not exist by instantiating a PAM session, which in turn calls pam_mkhomedir.

How can Exim be forced to attempt the delivery without the home area
check, or alternatively instantiate a PAM session?

Regards

--
Chris Hills
I.T. Services
North East Worcestershire College