Re: [Exim] Classic lock file hitching post problem

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Sheldon Hearn
Dátum:  
Címzett: Philip Hazel
CC: exim-users
Tárgy: Re: [Exim] Classic lock file hitching post problem

On Mon, 05 Mar 2001 09:26:48 GMT, Philip Hazel wrote:

> Sounds like you need a user= on the aliasing director. Have you tried
> running with -d9 to see what is actually happening.


Well, system_aliases has both user and mail set appropriately. Which
director are you talking about?

The rest of this message comprises three files:

1) My complete exim configure file.

2) -d9 output trying to accept mail for arbuser when arbuser has a
non-existent home directory and _no_ /etc/aliases entry.

3) -d9 output trying to accept mail for arbuser when arbuser has a
non-existent home directory and an /etc/aliases entry.

I'm persisting because of the surprise suggested in your last reply.
Otherwise, I'd just assume that I'm being an idiot and continue with the
hack-around I'm using now.

By the way, is it really sensible behaviour to fail on forward-file
lookup failure, instead of defaulting to delivery into /var/mail (or
wherever)?

Ciao,
Sheldon.


-------- exim.configure:

local_domains = axl.fw.uunet.co.za:axl.ops.uunet.co.za
exim_user = sendmail
exim_group = mail
never_users = sendmail : root
host_accept_relay = "127.0.0.1/32"
host_lookup = 0.0.0.0/0
pid_file_path = /var/run/exim%s.pid
log_file_path = /var/log/exim/%slog
end

remote_smtp:
driver = smtp

local_delivery:
driver = appendfile
file = /var/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add

address_reply:
driver = autoreply

end

system_aliases:
driver = aliasfile
file = /etc/aliases
search_type = lsearch
file_transport = address_file
pipe_transport = address_pipe
user = sendmail
group = mail

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

end

smart_route:
driver = domainlist
transport = remote_smtp
route_list = "* smtp.fw.uunet.co.za bydns_a"

lookuphost:
driver = lookuphost
transport = remote_smtp

literal:
driver = ipliteral
transport = remote_smtp

end

*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,8h


end

*@*.uunet.co.za $1@??? Ffrs

-------- arbuser.nohome.noalias

Recipients:
arbuser@???
forked delivery process 73868
set_process_info: 73863 handling incoming connection from localhost [127.0.0.1]
ready for new message
smtp_setup_msg entered
Exim version 3.22 debug level 9 uid=1000 gid=6
probably Berkeley DB version 1.8x (native mode)
Caller is an admin user
Caller is a trusted user
set_process_info: 73868 delivering specified messages
delivering message 14Zrrq-000JDL-00
set_process_info: 73868 delivering 14Zrrq-000JDL-00
Opened spool file 14Zrrq-000JDL-00-H
user=root uid=0 gid=0 sender=sheldonh@???
sender_fullhost = localhost [127.0.0.1]
sender_rcvhost = localhost ([127.0.0.1] ident=sheldonh)
sender_local=0 resent=no ident=sheldonh
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=1 message_linecount=9
Delivery address list:
arbuser@???
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: arbuser@???
axl.ops.uunet.co.za in local_domains? yes (matched axl.ops.uunet.co.za)
axl.ops.uunet.co.za in percent_hack_domains? no (end of list)
unique = arbuser@???
dbfn_read: key=D:arbuser@???
arbuser@???: queued for directing
>>>>>>>>>>>>>>>>>>>>>>>>

directing arbuser@???
calling system_aliases director
df_lookup entered: search type = lsearch
system_aliases director: lsearch key=arbuser
file="/etc/aliases"
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="arbuser" partial=-1
LRU list:
7/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="arbuser"
file lookup required for arbuser
in /etc/aliases

okup failed
system_aliases director declined for arbuser:
calling userforward director
userforward director: file = .forward
set uid=0 gid=6 euid=1002 egid=31
restored uid=0 gid=6 euid=1000 egid=6
userforward director deferred arbuser
message: failed to stat /nonexistent (No such file or directory)
added retry item for D:arbuser@???: errno=-1 0 flags=0
post-process arbuser@??? (1)
LOG: 0 MAIN
== arbuser@??? D=userforward defer (-1): failed to stat /nonexi
stent (No such file or directory)
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local deliveries:
  Remote deliveries:
  Failed addresses:
  Addresses to be routed:
  Deferred addresses:
    arbuser@???
search_tidyup called
set_process_info: 73868 tidying up after delivering 14Zrrq-000JDL-00
Processing retry items
Succeeded addresses:
Failed addresses:
Deferred addresses:
arbuser@???
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=202
arbuser@??? in *? yes (*)
retry for D:arbuser@??? = *
dbfn_read: key=D:arbuser@???
Writing retry data for D:arbuser@???
  first failed=983786743 last try=983786743 next try=983787643 expired=0
  error -1 0: failed to stat /nonexistent (No such file or directory)
dbfn_write: key=D:arbuser@???
end of retry processing
time on queue = 17s
warning counts: required 0 done 0
delivery deferred: update_spool=1 header_changed=0
Writing spool header file
Size of headers = 325
end delivery of 14Zrrq-000JDL-00


-------- arbuser.nohome.withalias

Recipients:
arbuser@???
forked delivery process 73907
set_process_info: 73905 handling incoming connection from localhost [127.0.0.1]
ready for new message
smtp_setup_msg entered
Exim version 3.22 debug level 9 uid=1000 gid=6
probably Berkeley DB version 1.8x (native mode)
Caller is an admin user
Caller is a trusted user
set_process_info: 73907 delivering specified messages
delivering message 14ZryN-000JE1-00
set_process_info: 73907 delivering 14ZryN-000JE1-00
Opened spool file 14ZryN-000JE1-00-H
user=root uid=0 gid=0 sender=sheldonh@???
sender_fullhost = localhost [127.0.0.1]
sender_rcvhost = localhost ([127.0.0.1] ident=sheldonh)
sender_local=0 resent=no ident=sheldonh
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=1 message_linecount=9
Delivery address list:
arbuser@???
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: arbuser@???
axl.ops.uunet.co.za in local_domains? yes (matched axl.ops.uunet.co.za)
axl.ops.uunet.co.za in percent_hack_domains? no (end of list)
unique = arbuser@???
dbfn_read: key=D:arbuser@???
arbuser@???: queued for directing
>>>>>>>>>>>>>>>>>>>>>>>>

directing arbuser@???
calling system_aliases director
df_lookup entered: search type = lsearch
system_aliases director: lsearch key=arbuser
file="/etc/aliases"
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="arbuser" partial=-1
LRU list:
7/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="arbuser"
file lookup required for arbuser
in /etc/aliases
lookup yielded: /var/mail/arbuser
parse_extract_addresses: /var/mail/arbuser
extract item: /var/mail/arbuser
system_aliases director generated /var/mail/arbuser
pipe, file, or autoreply
errors_to=NULL transport=address_file
uid=1000 gid=6 home=NULL
system_aliases director succeeded for arbuser
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>

Considering: /var/mail/arbuser
unique = /var/mail/arbuser:arbuser@???
>>>>>>>>>>>>>>>>>>>>>>>>

After directing:
  Local deliveries:
    /var/mail/arbuser
  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:/var/mail/arbuser@???
delivering /var/mail/arbuser as /var/mail/arbuser using address_file:
uid=65534 gid=65534 home=NULL current=/
auxiliary group list: 65534
set_process_info: 73908 delivering 14ZryN-000JE1-00 to /var/mail/arbuser using address_file
appendfile transport entered
appendfile: mode=600 notify_comsat=0 quota=0
file=/var/mail/arbuser format=unix
prefix=From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n
suffix=\n
locking by lockfile fcntl
lock name: /var/mail/arbuser.lock
hitch name: /var/mail/arbuser.lock.axl.fw.uunet.co.za.3aa36681.000120b4
address_file transport returned DEFER for /var/mail/arbuser
added retry item for T:/var/mail/arbuser@???: errno=13 0 flags=0
post-process /var/mail/arbuser (1)
LOG: 0 MAIN
== /var/mail/arbuser <arbuser@???> T=address_file defer (13): Permission denied: creating lock file hitching post /var/mail/arbuser.lock.axl.fw.uunet.co.za.3aa36681.000120b4 (euid=65534 egid=65534)
search_tidyup called
set_process_info: 73907 tidying up after delivering 14ZryN-000JE1-00
Processing retry items
Succeeded addresses:
arbuser@???: no retry items
Failed addresses:
Deferred addresses:
/var/mail/arbuser
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=202
/var/mail/arbuser@??? in *? yes (*)
retry for T:/var/mail/arbuser@??? = *
dbfn_read: key=T:/var/mail/arbuser@???
Writing retry data for T:/var/mail/arbuser@???
first failed=983501503 last try=983787137 next try=983815937 expired=0
error 13 0: Permission denied
dbfn_write: key=T:/var/mail/arbuser@???
arbuser@???: no retry items
end of retry processing
time on queue = 6s
warning counts: required 0 done 0
delivery deferred: update_spool=1 header_changed=0
Writing spool header file
Size of headers = 325
end delivery of 14ZryN-000JE1-00