[Exim] Bug? errors_to(router) user id is used for _regular_ …

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-users
Subject: [Exim] Bug? errors_to(router) user id is used for _regular_ delivery.
Hello,
If you set errors_to= for the local_user director/router, the uid of
the target given as argument for errors_to= is used for regular
deliveries.

This was reported by Michael Stuermer as http://bugs.debian.org/184027
against exim 3.35 but also applies to 4.12.

Verbose:
-----------------
exim3:
#transport
local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
file = /var/spool/mail/${local_part}
#director
localuser:
driver = localuser
transport = local_delivery
errors_to = postmaster
-----------------
exim4:
#transport
mail_spool:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660
#router
local_user:
driver = accept
check_local_user
transport = mail_spool
-----------------
The respective transport does not set any specific uid, the mail is
delivered as the user to which postmaster expands (uid 1001 is
ametzler)
| >>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
| --------> testit@??? <--------
| locking /var/spool/exim4/db/retry.lockfile
| changed uid/gid: local delivery to testit <testit@???> transport=mail_spool
| uid=1001 gid=8 pid=5025
| auxiliary group list: <none>
| home=/home/ametzler current=/home/ametzler


A verbose log for exim3 can be found in the original bugreport at the
URL given above.
               cu andreas