[Exim] UID, EUID problem with userforward

Etusivu
Poista viesti
Vastaa
Lähettäjä: sebastien.ioannitis@freesbee.fr
Päiväys:  
Vastaanottaja: exim-users
Aihe: [Exim] UID, EUID problem with userforward
I here joined mz config file and the debug trace. The
problem seems to come from the userfoward which cannot set
the correct uid/gid. I don-t understand the quid of that.

Thanks

*********** This is part of mz configuration file:

my_mail:
# driver = forwardfile
driver = smartuser
# no_check_local_user
require_files = /usr/local/exim/my_list
condition =
${lookup{$local_part@$domain}lsearch{/usr/local/exim/my_list}{yes}{no}}
# filter
# file = /usr/local/exim/my_mail.forward
file_transport = address_file
pipe_transport = my_mail_pipe
# skip_syntax_errors
headers_add = "X-Local-Date: $tod_log"
# errors_to = postmaster
hide_child_in_errmsg
user = exim
no_more
new_address = |/usr/local/exim/myprogram


system_aliases:
driver = aliasfile
file = /etc/aliases
search_type = lsearch
# user = exim
file_transport = address_file
pipe_transport = address_pipe


userforward:
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

localuser:
driver = localuser
transport = local_delivery
# user=exim


********** Here is part of my debug

>>>>>>>>>>>>>>>>>>>>>>>>

Considering: sebastien@???
XXX.com in local_domains? yes (matched XXX.com)
XXX.com in percent_hack_domains? no (end of list)
unique = sebastien@???
dbfn_read: key=D:sebastien@???
sebastien@???: queued for directing
>>>>>>>>>>>>>>>>>>>>>>>>

directing sebastien@???
my_mail director has more set FALSE
calling my_mail director
require_files = /usr/local/exim/my_list
test existence of /usr/local/exim/my_list
required present, EACCES => unknown
Success
search_open: lsearch "/usr/local/exim/my_list"
search_find: file="/usr/local/exim/my_list"
key="sebastien@???" partial=-1
LRU list:
7/usr/local/exim/my_list
End
internal_search_find: file="/usr/local/exim/my_list"
type=lsearch key="sebastien@???"
file lookup required for sebastien@???
in /usr/local/exim/my_list
lookup failed
my_mail director skipped: condition failure
calling system_aliases director
df_lookup entered: search type = lsearch
system_aliases director: lsearch key=sebastien
file="/etc/aliases"
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="sebastien" partial=-1
LRU list:
7/etc/aliases
7/usr/local/exim/my_list
End
internal_search_find: file="/etc/aliases"
type=lsearch key="sebastien"
file lookup required for sebastien
in /etc/aliases
lookup failed
system_aliases director declined for sebastien:
calling userforward director
userforward director: file = .forward
set uid=65 gid=65 euid=65 egid=65
successful stat of /home/sebastien/.
/home/sebastien/.forward not found
restored uid=65 gid=65 euid=65 egid=65
calling localuser director
queued for local_delivery_append transport:
local_part=sebastien domain=XXX.com
errors_to=NULL
domain_data=NULL local_part_data=NULL
localuser director succeeded for sebastien
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local deliveries:
    sebastien@???
  Remote deliveries:
  Failed addresses:
  Addresses to be routed:
  Deferred addresses:
search_tidyup called

>>>>>> Local deliveries >>>>>>

locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:sebastien@???
set_process_info: 21324 handling incoming connection from
mail.libertysurf.net [213.36.80.91]
ready for new message
smtp_setup_msg entered
LOG: 0 MAIN PANIC DIE
Unable to get root to set uid 65534 and gid 65534 for
local delivery to sebastien: uid=65 euid=65
search_tidyup called
LOG: 0 MAIN PANIC
failed to read delivery status for sebastien@???
from delivery subprocess
LOG: 0 MAIN PANIC
appendfile transport process returned non-zero status
0x0100: exit code 1
local_delivery_append transport returned DEFER for
sebastien@???
added retry item for T:sebastien@???: errno=-1 0
flags=0
post-process sebastien@??? (1)
LOG: 0 MAIN
== sebastien@??? T=local_delivery_append defer (-1)
search_tidyup called
set_process_info: 21325 tidying up after delivering
15kTCS-0005Xw-00
Processing retry items
Succeeded addresses:
Failed addresses:
Deferred addresses:
sebastien@???
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=42
sebastien@??? in *? yes (*)
retry for T:sebastien@??? = *
dbfn_read: key=T:sebastien@???
Writing retry data for T:sebastien@???