[exim] unable to set gid=50 or uid=201 (euid=500): local del…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Frank S. Bernhardt
Date:  
À: Exim Users List
Sujet: [exim] unable to set gid=50 or uid=201 (euid=500): local delivery
I've given up trying to compile 4.60 under SCO Openserver6 as no one
seems to know anything about the weird linker error I was getting so
instead I compiled and installed on an existing 5.0.7 box that was
running 4.42.

Everything went well; I used the 4.42 Makefile and configure files as my
guidelines for the 4.60 versions.

As root I:

stopped exim

mv /usr/exim to /usr/exim-4.42

make (ok)

make install (ok)

checked that /usr/lib/sendmail was still linked to /usr/exim/bin/exim (ok)

started exim (ok)

exim -bV (ok)

exim -v -bt bcsi1@???
router = localuser, transport = local_delivery (ok)

exim -v -bt bcsi1@??? (another server)
router = dnslookup, transport = remote_smtp
host bcsisco.bcsi1,com [192.168.207.33] (ok)

exim bcsi1@???
From:.....

oh oh

No delivery. I checked the logs and in them I see:

2006-03-31 18:51:07 1FPTOV-0001gr-5g <= root@??? U=root
P=local S=322
2006-03-31 18:51:07 1FPTOV-0001gr-5g unable to set gid=50 or uid=201
(euid=500):
local delivery to bcsi1 <bcsi1@???> transport=local_delivery
2006-03-31 18:51:07 1FPTOV-0001gr-5g failed to read delivery status for
bcsi1@bc
si1.com from delivery subprocess
2006-03-31 18:51:07 1FPTOV-0001gr-5g appendfile transport process
returned non-z
ero status 0x0100: exit code 1
2006-03-31 18:51:07 1FPTOV-0001gr-5g == bcsi1@??? R=localuser
T=local_deli
very defer (-1)
2006-03-31 18:51:07 1FPTOV-0001gr-5g Frozen

I try sending e-mail to exim or to someone not on this server and it
works just fine.

I move 4.60 out of the way and 4.42 back in; mail delivery starts again.

Hmm.

Checked the mailing list and saw that this is a recurring problem.

Checked /usr/exim/bin/exim and it has rwsr-xr-x permissions and it is
linked to exim-4.60-1. It's user-id is 500 and group-id 100.

The output of exim -d is:

Exim version 4.60 uid=0 gid=3 pid=3537 D=fbb95cfd
Probably ndbm
Support for: crypteq iconv()
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
Authenticators: plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
changed uid/gid: forcing real = effective
uid=0 gid=3 pid=3537
auxiliary group list: <none>
configuration file is /usr/exim/configure
log selectors = 00000ffc 00041001
cwd=/usr/exim/bin 3 args: exim -d bcsi1@???
trusted user
admin user
changed uid/gid: privilege not needed
uid=500 gid=100 pid=3537
auxiliary group list: <none>
originator: uid=0 gid=3 login=root name=Superuser
sender address = root@???
set_process_info: 3537 accepting a local non-SMTP message from
<root@???>
Sender: root@???
Recipients:
bcsi1@???
search_tidyup called
>>Headers received:

From: root@???
To: bcsi1@???
Subject: test

rewrite_one_header: type=F:
From: root@???
rewrite_one_header: type=T:
To: bcsi1@???
search_tidyup called
>>Headers after rewriting and local additions:

F From: root@???
T To: bcsi1@???
Subject: test
I Message-Id: <E1FPBHA-0000v3-8a@???>
Date: Thu, 30 Mar 2006 23:30:20 -0500

Data file written for message 1FPBHA-0000v3-8a
>>Generated Received: header line

P Received: from root by rjak.bcsi1.com with local (Exim 4.60)
        (envelope-from <root@???>)
        id 1FPBHA-0000v3-8a
        for bcsi1@???; Thu, 30 Mar 2006 23:30:21 -0500
calling local_scan(); timeout=300
local_scan() returned 0 NULL
Writing spool header file
Size of headers = 315
LOG: MAIN
  <= root@??? U=root P=local S=322
search_tidyup called
exec /usr/exim/bin/exim -d=0xfbb95cfd -Mc 1FPBHA-0000v3-8a
Exim version 4.60 uid=500 gid=100 pid=3538 D=fbb95cfd
Probably ndbm
Support for: crypteq iconv()
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
Authenticators: plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Exim has no root privilege: uid=500 gid=100 euid=500 egid=100
changed uid/gid: forcing real = effective
  uid=500 gid=100 pid=3538
  auxiliary group list: <none>
configuration file is /usr/exim/configure
log selectors = 00000ffc 00041001
cwd=/var/spool/exim 4 args: /usr/exim/bin/exim -d=0xfbb95cfd -Mc 
1FPBHA-0000v3-8a
trusted user
admin user
skipping ACL configuration - not needed
set_process_info:  3538 delivering specified messages
set_process_info:  3538 delivering 1FPBHA-0000v3-8a
reading spool file 1FPBHA-0000v3-8a-H
user=root uid=0 gid=3 sender=root@???
sender_local=1 ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=1 message_linecount=9
running system filter
rda_interpret (file): /usr/exim/system.filter
expanded: /usr/exim/system.filter
1288 bytes read from /usr/exim/system.filter
data is an Exim filter program
Filter: start of processing
Filter: end of processing
system filter returned 1
Delivery address list:
  bcsi1@???
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=0

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

Considering: bcsi1@???
unique = bcsi1@???
dbfn_read: key=R:bcsi1.com
dbfn_read: key=R:bcsi1@???
no domain retry record
no address retry record
bcsi1@???: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing bcsi1@???
--------> smarthost router <--------
local_part=bcsi1 domain=bcsi1.com
checking domains
bcsi1.com in "rjak.bcsi1.com : bcsi1.com : localhost"? yes (matched
"bcsi1.com")
bcsi1.com in "! +local_domains : ! *.bcsi1.com"? no (matched "!
+local_domains")
smarthost router skipped: domains mismatch
--------> dnslookup router <--------
local_part=bcsi1 domain=bcsi1.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
bcsi1.com in "! +local_domains"? no (matched "! +local_domains" - cached)
dnslookup router skipped: domains mismatch
--------> system_aliases router <--------
local_part=bcsi1 domain=bcsi1.com
calling system_aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="bcsi1" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="bcsi1"
file lookup required for bcsi1
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for bcsi1@???
--------> userforward router <--------
local_part=bcsi1 domain=bcsi1.com
checking for local user
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=3537 terminating with rc=0 >>>>>>>>>>>>>>>>

calling userforward router
rda_interpret (file): $home/.forward
expanded: /u/bcsi1/.forward
stat(/u/bcsi1/.)=0
/u/bcsi1/.forward does not exist
userforward router declined for bcsi1@???
--------> localuser router <--------
local_part=bcsi1 domain=bcsi1.com
checking for local user
finduser used cached passwd data for bcsi1
calling localuser router
localuser router called for bcsi1@???
domain = bcsi1.com
set transport local_delivery
queued for local_delivery transport: local_part = bcsi1
domain = bcsi1.com
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by localuser router
envelope to: bcsi1@???
transport: local_delivery
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After routing:
  Local deliveries:
    bcsi1@???
  Remote deliveries:
  Failed addresses:
  Deferred addresses:
search_tidyup called

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

--------> bcsi1@??? <--------
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:bcsi1@???
retry record exists: age=970 (max=604800)
time to retry = 70 expired = 0
search_tidyup called
LOG: MAIN PANIC DIE
unable to set gid=50 or uid=201 (euid=500): local delivery to bcsi1
<bcsi1@???> transport=local_delivery
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=3539 terminating with rc=1 >>>>>>>>>>>>>>>>

LOG: MAIN PANIC
failed to read delivery status for bcsi1@??? from delivery
subprocess
LOG: MAIN PANIC
appendfile transport process returned non-zero status 0x0100: exit code 1
local_delivery transport returned DEFER for bcsi1@???
added retry item for T:bcsi1@???: errno=-1 more_errno=0 flags=0
post-process bcsi1@??? (1)
LOG: MAIN
== bcsi1@??? R=localuser T=local_delivery defer (-1)
>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>

changed uid/gid: post-delivery tidying
uid=500 gid=100 pid=3538
auxiliary group list: <none>
set_process_info: 3538 tidying up after delivering 1FPBHA-0000v3-8a
Processing retry items
Succeeded addresses:
Failed addresses:
Deferred addresses:
bcsi1@???
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=2
address match: subject=bcsi1@??? pattern=*
bcsi1.com in "*"? yes (matched "*")
bcsi1@??? in "*"? yes (matched "*")
retry for T:bcsi1@??? = *
dbfn_read: key=T:bcsi1@???
Writing retry data for T:bcsi1@???
first failed=1143775228 last try=1143779421 next try=1143780321 expired=0
errno=-1 more_errno=0 unknown error
dbfn_write: key=T:bcsi1@???
end of retry processing
time on queue = 1s
warning counts: required 0 done 0
LOG: MAIN
Frozen
delivery deferred: update_spool=1 header_rewritten=0
Writing spool header file
Size of headers = 315
end delivery of 1FPBHA-0000v3-8a
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=3538 terminating with rc=0 >>>>>>>>>>>>>>>>


If I am logged in as bcsi1 I can send mail to myself but not to any
other account on the machine or outside although logged on as root I can
send to exim and outside.

What have I messed up?