[Exim] [Fwd: Bug#184027: exim: wrong mailbox file uid with e…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Mark Baker
Fecha:  
A: exim-users
Asunto: [Exim] [Fwd: Bug#184027: exim: wrong mailbox file uid with errors_to set]
This is a multi-part message in MIME format.
--

--
Subject: Bug#184027: exim: wrong mailbox file uid with errors_to set
Reply-To: Michael Stuermer <stuermml@???>,
    184027@???
Resent-From: Michael Stuermer <stuermml@???>
Resent-To: debian-bugs-dist@???
Resent-CC: Mark Baker <mbaker@???>, exim@???
Resent-Date: Sun, 09 Mar 2003 01:18:05 GMT
Resent-Message-ID: <handler.184027.B.104717218414566@???>
From: Michael Stuermer <stuermml@???>
To: submit@???
Date: Sun, 09 Mar 2003 02:09:33 +0100
Delivered-To: submit@???
Resent-Sender: Debian BTS <debbugs@???>


Package: exim
Version: 3.35-1
Severity: normal

I was trying to send a mail to a local user 'joe', which resulted in
delivering the mail to the right file '/var/mail/joe', but with the
wrong uid 'stuermml'.

If the option errors_to is set for a localuser director, the mailbox file
is written under the uid of the user that gets the mail given with errors_to:

in exim.conf:
-----------------------------------------
localuser:
driver = localuser
transport = local_delivery
errors_to = postmaster
-----------------------------------------

ov0:~# exim -d2 -N -t < testmail
Exim version 3.35 debug level 2 uid=0 gid=0
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
Caller is an admin user
Caller is a trusted user
set_process_info: 27622 accepting a local non-SMTP message from <root@???>
root@??? in *@OV0.de? no (end of list)
lala@??? in *@OV0.de? no (end of list)
Size of headers = 276
LOG: 0 MAIN
<= root@??? U=root P=local S=282
ov0:~# Exim version 3.35 debug level 2 uid=8 gid=8
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
Caller is an admin user
Caller is a trusted user
set_process_info: 27623 delivering specified messages
delivering message 18roqX-0007BW-00
set_process_info: 27623 delivering 18roqX-0007BW-00
system_aliases director: lsearch key=joe
file="/etc/aliases"
system_aliases director declined for joe:
userforward director: file = .forward
set uid=0 gid=8 euid=1002 egid=1002
successful stat of /home/joe/.
/home/joe/.forward not found
restored uid=0 gid=8 euid=8 egid=8
------ Verifying errors address postmaster ------
system_aliases director: lsearch key=postmaster
file="/etc/aliases"
system_aliases director generated root@???
errors_to=postmaster transport=NULL
uid=unset gid=unset home=NULL
system_aliases director succeeded for postmaster
system_aliases director: lsearch key=root
file="/etc/aliases"
system_aliases director generated stuermml@???
errors_to=postmaster transport=NULL
uid=unset gid=unset home=NULL
system_aliases director succeeded for root
system_aliases director: lsearch key=stuermml
file="/etc/aliases"
system_aliases director declined for stuermml:
queued for local_delivery transport: local_part=stuermml domain=ov0.de
errors_to=postmaster
domain_data=NULL local_part_data=NULL
localuser director succeeded for stuermml
------ End verifying errors address postmaster ------
queued for local_delivery transport: local_part=joe domain=ov0.de
errors_to=postmaster@???
domain_data=NULL local_part_data=NULL
localuser director succeeded for joe
>>>>>> Local deliveries >>>>>>

delivering joe@??? as joe using local_delivery:
uid=1000 gid=8 home=/home/stuermml current=/home/stuermml
auxiliary group list: <none>
set_process_info: 27624 delivering 18roqX-0007BW-00 to joe using local_delivery
*** delivery by local_delivery transport bypassed by -N option
LOG: 0 MAIN
*> joe <joe@???> D=localuser T=local_delivery
set_process_info: 27623 tidying up after delivering 18roqX-0007BW-00
LOG: 0 MAIN
Completed
end delivery of 18roqX-0007BW-00


ov0:/var/mail# ls -l
total 1
-rw-rw----    1 stuermml mail          528 Mar  9 00:57 joe



If errors_to is not set, the correct uid is used:

in exim.conf:
-----------------------------------------
localuser:
driver = localuser
transport = local_delivery
#errors_to = postmaster
-----------------------------------------

ov0:~# exim -d2 -N -t < testmail
Exim version 3.35 debug level 2 uid=0 gid=0
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
Caller is an admin user
Caller is a trusted user
set_process_info: 27654 accepting a local non-SMTP message from <root@???>
root@??? in *@OV0.de? no (end of list)
lala@??? in *@OV0.de? no (end of list)
Size of headers = 276
LOG: 0 MAIN
<= root@??? U=root P=local S=282
ov0:~# Exim version 3.35 debug level 2 uid=8 gid=8
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
Caller is an admin user
Caller is a trusted user
set_process_info: 27655 delivering specified messages
delivering message 18rora-0007C2-00
set_process_info: 27655 delivering 18rora-0007C2-00
system_aliases director: lsearch key=joe
file="/etc/aliases"
system_aliases director declined for joe:
userforward director: file = .forward
set uid=0 gid=8 euid=1002 egid=1002
successful stat of /home/joe/.
/home/joe/.forward not found
restored uid=0 gid=8 euid=8 egid=8
queued for local_delivery transport: local_part=joe domain=ov0.de
errors_to=NULL
domain_data=NULL local_part_data=NULL
localuser director succeeded for joe
>>>>>> Local deliveries >>>>>>

delivering joe@??? as joe using local_delivery:
uid=1002 gid=8 home=/home/joe current=/home/joe
auxiliary group list: <none>
set_process_info: 27656 delivering 18rora-0007C2-00 to joe using local_delivery
*** delivery by local_delivery transport bypassed by -N option
LOG: 0 MAIN
*> joe <joe@???> D=localuser T=local_delivery
set_process_info: 27655 tidying up after delivering 18rora-0007C2-00
LOG: 0 MAIN
Completed
end delivery of 18rora-0007C2-00


ov0:/var/mail# ls -l
total 1
-rw-rw----    1 joe      mail          554 Mar  9 02:02 joe



-- System Information
Debian Release: 3.0
Kernel Version: Linux elrond 2.4.17 #1 Mon Oct 21 21:04:07 CEST 2002 i686 unknown

Versions of the packages exim depends on:
ii  cron           3.0pl1-72      management of regular background processing
ii  libc6          2.2.5-11.2     GNU C Library: Shared libraries and Timezone
ii  libdb2         2.7.7.0-7      The Berkeley database routines (run-time fil
ii  libident       0.22-2         simple RFC1413 client library - runtime
ii  libldap2       2.0.23-6.3     OpenLDAP libraries.
ii  libpam0g       0.72-35        Pluggable Authentication Modules library
ii  libpcre3       3.4-1.1        Philip Hazel's Perl Compatible Regular Expre


--- Begin /etc/cron.d/exim (modified conffile)
08,23,38,53 *     * * *     mail   if [ -x /usr/sbin/exim -a -f /etc/exim/exim.conf ]; then nice -10 /usr/sbin/exim -q ; fi


--- End /etc/cron.d/exim

--- Begin /etc/ppp/ip-up.d/exim (modified conffile)
Config file not present or no permissions for access

--- End /etc/ppp/ip-up.d/exim

--