[Exim] error 13 0: Permission denied

Top Page
Delete this message
Reply to this message
Author: Bruce Leo
Date:  
To: exim-users
Subject: [Exim] error 13 0: Permission denied
I am a new Exim user and after going through the archives I am
still none the wiser as to how to resolve this problem. No email
being sent from the Exim server is arriving at the address
support@???. Apologies for the length of the email but
I thought this may assist any diagnosis.

From what I can see there are 2 issues:
Permission denied: failed to chdir to /root

and

retry timeout exceeded end of retry processing



Thanks - Bruce

root@server [/etc]# /usr/sbin/exim -d9 -bt support@???
Exim version 3.34 debug level 9 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=root
sender address = root@???
Address testing: uid=0 gid=0 euid=0 egid=0
>>>>>>>>>>>>>>>>>>>>>>>>

Testing support@???
search_open: lsearch "/etc/localdomains"
search_find: file="/etc/localdomains"
key="mewebhost.com" partial=-1
LRU list:
7/etc/localdomains
End
internal_search_find: file="/etc/localdomains"
type=lsearch key="mewebhost.com"
file lookup required for mewebhost.com
in /etc/localdomains
lookup failed
mewebhost.com in local_domains? no (end of list)
address support@???
local_part=support domain=mewebhost.com
domain is not local
>>>>>>>>>>>>>>>>>>>>>>>>

routing support@???, domain mewebhost.com
Starting Perl interpreter
lookuphost router called for support@???
dns lookup: route_domain = mewebhost.com
DNS lookup of mewebhost.com (MX) succeeded
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 64.71.174.78 (eth0)
Actual local interface address is 64.71.174.77 (eth0:1)
Actual local interface address is 64.71.174.79 (eth0:2)
Actual local interface address is 64.71.174.80 (eth0:3)
Actual local interface address is 64.71.174.91 (eth0:4)
Actual local interface address is 64.71.174.92 (eth0:5)
Actual local interface address is 64.71.174.93 (eth0:6)
Actual local interface address is 64.71.174.103 (eth0:7)
Actual local interface address is 64.71.174.104 (eth0:8)
Actual local interface address is 64.71.174.105 (eth0:9)
Actual local interface address is 64.71.174.106 (eth0:10)
Actual local interface address is 64.71.174.107 (eth0:11)
fully qualified name = mewebhost.com
host_find_bydns yield = HOST_FOUND (2); returned hosts:
mail.mewebhost.com 64.65.43.229 20 2054
queued for remote_smtp transport: local_part=support
domain=mewebhost.com
errors_to=NULL
domain_data=NULL local_part_data=NULL
routed by lookuphost router:
deliver to support@???
transport: remote_smtp
host mail.mewebhost.com [64.65.43.229] MX=20
support@???
deliver to support@???
router = lookuphost, transport = remote_smtp
host mail.mewebhost.com [64.65.43.229] MX=20
search_tidyup called
root@server [/etc]# /usr/sbin/exim -d9 support@???
Exim version 3.34 debug level 9 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=root
sender address = root@???
set_process_info: 4582 accepting a local non-SMTP message from
<root@???>
Sender: root@???
Recipients:
support@???
search_tidyup called
.
>>Original headers (size=-1):


rewrite_one_header: type=F:
From: root <root@???>
>>Final headers:

P Received: from root by server.mewebdns.com with local (Exim
3.34 #1)
        id 16R68j-0001Bu-00
        for support@???; Wed, 16 Jan 2002
22:35:18 -0800
I Message-Id: <E16R68j-0001Bu-00@???>
F From: root <root@???>
T To: support@???
  Date: Wed, 16 Jan 2002 22:35:18 -0800


search_tidyup called
Data file written for message 16R68j-0001Bu-00
Writing spool header file
Size of headers = 304
LOG: 0 MAIN
<= root@??? U=root P=local S=305
search_tidyup called
delivering message 16R68j-0001Bu-00
set_process_info: 4597 delivering 16R68j-0001Bu-00
Opened spool file 16R68j-0001Bu-00-H
user=root uid=0 gid=0 sender=root@???
sender_local=1 resent=no ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=0 message_linecount=7
Delivery address list:
root@server [/etc]# support@???
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: support@???
search_open: lsearch "/etc/localdomains"
search_find: file="/etc/localdomains"
key="mewebhost.com" partial=-1
LRU list:
7/etc/localdomains
End
internal_search_find: file="/etc/localdomains"
type=lsearch key="mewebhost.com"
file lookup required for mewebhost.com
in /etc/localdomains
lookup failed
mewebhost.com in local_domains? no (end of list)
unique = support@???
dbfn_read: key=R:mewebhost.com
dbfn_read: key=R:support@???
support@???: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local deliveries:
  Remote deliveries:
  Failed addresses:
  Addresses to be routed:
    support@???
  Deferred addresses:

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

routing support@???, domain mewebhost.com
Starting Perl interpreter
lookuphost router called for support@???
dns lookup: route_domain = mewebhost.com
DNS lookup of mewebhost.com (MX) succeeded
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 64.71.174.78 (eth0)
Actual local interface address is 64.71.174.77 (eth0:1)
Actual local interface address is 64.71.174.79 (eth0:2)
Actual local interface address is 64.71.174.80 (eth0:3)
Actual local interface address is 64.71.174.91 (eth0:4)
Actual local interface address is 64.71.174.92 (eth0:5)
Actual local interface address is 64.71.174.93 (eth0:6)
Actual local interface address is 64.71.174.103 (eth0:7)
Actual local interface address is 64.71.174.104 (eth0:8)
Actual local interface address is 64.71.174.105 (eth0:9)
Actual local interface address is 64.71.174.106 (eth0:10)
Actual local interface address is 64.71.174.107 (eth0:11)
fully qualified name = mewebhost.com
host_find_bydns yield = HOST_FOUND (2); returned hosts:
mail.mewebhost.com 64.65.43.229 20 2079
queued for remote_smtp transport: local_part=support
domain=mewebhost.com
errors_to=NULL
domain_data=NULL local_part_data=NULL
routed by lookuphost router:
deliver to support@???
transport: remote_smtp
host mail.mewebhost.com [64.65.43.229] MX=20
search_tidyup called
>>>>>> Remote deliveries >>>>>>

remote_smtp transport entered
support@???
mewebhost.com in queue_smtp_domains? no (end of list)
checking status of mail.mewebhost.com
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:mail.mewebhost.com:64.65.43.229
dbfn_read: key=T:mail.mewebhost.com:64.65.43.229:16R68j-0001Bu-00
no message retry record
mail.mewebhost.com [64.65.43.229] status = unusable (expired)
all IP addresses skipped or deferred at least one address
locked /var/spool/exim/db/wait-remote_smtp.lockfile
opened DB file /var/spool/exim/db/wait-remote_smtp: flags=42
dbfn_read: key=mail.mewebhost.com
dbfn_read: key=mail.mewebhost.com:10
dbfn_read: key=mail.mewebhost.com:9
dbfn_read: key=mail.mewebhost.com:8
dbfn_read: key=mail.mewebhost.com:7
dbfn_read: key=mail.mewebhost.com:6
dbfn_read: key=mail.mewebhost.com:5
dbfn_read: key=mail.mewebhost.com:4
dbfn_read: key=mail.mewebhost.com:3
dbfn_read: key=mail.mewebhost.com:2
dbfn_read: key=mail.mewebhost.com:1
dbfn_read: key=mail.mewebhost.com:0
dbfn_write: key=mail.mewebhost.com
Leaving remote_smtp transport
set_process_info: 4597 delivering 16R68j-0001Bu-00 (just run
remote_smtp for support@???)
post-process support@??? (7)
LOG: 0 MAIN
** support@??? R=lookuphost T=remote_smtp: retry time
not reached for any host after a long failure period
set_process_info: 4597 tidying up after delivering
16R68j-0001Bu-00
Processing retry items
Succeeded addresses:
Failed addresses:
support@???: no retry items
Deferred addresses:
end of retry processing
sending error message to: root@???
writing data block fd=6 size=345 timeout=0
Exim version 3.34 debug level 9 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=
sender address =
set_process_info: 4602 accepting a local non-SMTP message from
<>
Sender:
search_tidyup called
>>Original headers (size=194):

X-Failed-Recipients: support@???
From: Mail Delivery System <Mailer-Daemon@???>
To: root@???
Subject: Mail delivery failed: returning message to sender

rewrite_one_header: type=F:
From: Mail Delivery System <Mailer-Daemon@???>
rewrite_one_header: type=T:
To: root@???
>>Final headers:

P Received: from root by server.mewebdns.com with local (Exim
3.34 #1)
        id 16R68x-0001CE-00
        for root@???; Wed, 16 Jan 2002
22:35:23 -0800
  X-Failed-Recipients: support@???
F From: Mail Delivery System <Mailer-Daemon@???>
T To: root@???
  Subject: Mail delivery failed: returning message to sender
I Message-Id: <E16R68x-0001CE-00@???>
  Date: Wed, 16 Jan 2002 22:35:23 -0800


search_tidyup called
Data file written for message 16R68x-0001CE-00
Writing spool header file
Size of headers = 437
LOG: 0 MAIN
<= <> R=16R68j-0001Bu-00 U=root P=local S=1166
search_tidyup called
delivering message 16R68x-0001CE-00
set_process_info: 4603 delivering 16R68x-0001CE-00
Opened spool file 16R68x-0001CE-00-H
user=root uid=0 gid=0 sender=
sender_local=0 resent=no ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=19 message_linecount=9
LOG: 5 MAIN
Error message sent to root@???
Delivery address list:
root@???
Writing spool header file
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: root@???
search_open: lsearch "/etc/localdomains"
search_find: file="/etc/localdomains"
key="server.mewebdns.com" partial=-1
LRU list:
7/etc/localdomains
End
internal_search_find: file="/etc/localdomains"
type=lsearch key="server.mewebdns.com"
file lookup required for server.mewebdns.com
in /etc/localdomains
lookup yielded:
server.mewebdns.com in local_domains? yes (matched
lsearch;/etc/localdomains)
server.mewebdns.com in percent_hack_domains? no (end of list)
unique = root@???
dbfn_read: key=D:root@???
root@???: queued for directing
>>>>>>>>>>>>>>>>>>>>>>>>

directing root@???
calling central_filter director
central_filter director: file = /etc/vfilters/server.mewebdns.com
/etc/vfilters/server.mewebdns.com not found
calling virtual_aliases_nostar director
df_lookup entered: search type = lsearch
virtual_aliases_nostar director: lsearch
key=root@???
file="/etc/valiases/server.mewebdns.com"
search_open: lsearch "/etc/valiases/server.mewebdns.com"
virtual_aliases_nostar director skipped: file failed to open and
optional flag set
search_open: lsearch "/etc/userdomains"
search_find: file="/etc/userdomains"
key="server.mewebdns.com" partial=-1
LRU list:
7/etc/userdomains
7/etc/localdomains
End
internal_search_find: file="/etc/userdomains"
type=lsearch key="server.mewebdns.com"
file lookup required for server.mewebdns.com
in /etc/userdomains
lookup failed
server.mewebdns.com in "lsearch;/etc/userdomains"? no (end of
list)
virtual_user director skipped: domain mismatch
calling virtual_aliases director
df_lookup entered: search type = lsearch
virtual_aliases director: lsearch* key=root@???
file="/etc/valiases/server.mewebdns.com"
search_open: lsearch "/etc/valiases/server.mewebdns.com"
virtual_aliases director skipped: file failed to open and
optional flag set
calling userforward director
userforward director: file = .forward
successful stat of /root/.
/root/.forward not found
calling localuser director
queued for local_delivery transport: local_part=root
domain=server.mewebdns.com
errors_to=NULL
domain_data=NULL local_part_data=NULL
localuser director succeeded for root
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local deliveries:
    root@???
  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:root@???
Size of headers = 304
LOG: 0 MAIN
Completed
end delivery of 16R68j-0001Bu-00
search_tidyup called
delivering root@??? as root using local_delivery:
uid=99 gid=99 home=/root current=/root
auxiliary group list: <none>
search_tidyup called
local_delivery transport returned DEFER for
root@???
added retry item for T:root@???: errno=13 0
flags=0
post-process root@??? (1)
LOG: 0 MAIN
== root@??? T=local_delivery defer (13):
Permission denied: failed to chdir to /root
set_process_info: 4603 tidying up after delivering
16R68x-0001CE-00
Processing retry items
Succeeded addresses:
Failed addresses:
Deferred addresses:
root@???
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=42
root@??? in *? yes (*)
retry for T:root@??? = *
dbfn_read: key=T:root@???
Writing retry data for T:root@???
first failed=1004752680 last try=1011249323 next try=1011278123
expired=1
error 13 0: Permission denied
dbfn_write: key=T:root@???
timed out: all retries expired
LOG: 0 MAIN
** root@???: retry timeout exceeded
end of retry processing
LOG: 0 MAIN
root@???: error ignored
Writing spool header file
Size of headers = 437
LOG: 0 MAIN
Completed
end delivery of 16R68x-0001CE-00
search_tidyup called