[exim] Losing Mails

Top Page
Delete this message
Reply to this message
Author: Merlin
Date:  
To: exim-users
Subject: [exim] Losing Mails
Hi All

We have a pair of systems running versions 4.41(gateway) and
4.43(mail-server) with a Cyrus mail store.

We have noticed 6 messages in the last month that have not been
delivered to their recipient but have been passed through the gateway
machine succesfully.
Exim logs that the message has 'Completed' but show no mention of it
being delivered - and indeed it isn't.

See below for the relevant log entries.

The recipients of all 6 messages have very similar alias entries and use
a router that enables 'real-username' for forced delivery. The
interesting routers are pasted below - much of our config is otherwise
standard. My system_aliases router is the standard one but with
expansion of alias entries.

An aliases entry relevant to these users would look like this:

someone: ${if exists {/usr/lists/Users/away/someone} {real-someone,
real-otherone} {real-someone} }

This means that if 'someone' is away I just make the 'away' file and the
aliasing copies the message to 'otherone'.
It has been working perfectly, it would seem, apart from the 6 messages.

Thanks in advance for your help!


Merlin



Mail Gateway log entry:
2005-11-03 11:41:34 1EXdTK-00057F-3N <= someone@???
H=ppsw-0.csi.cam.ac.uk [131.111.8.130] P=esmtp S=3160
id=417CBCF38B7010499DB4EC7FA24A0A1E3C5842@???
2005-11-03 11:41:34 1EXdTK-00057F-3N => someone@???
R=gateway_local T=remote_smtp H=reading.mrc-dunn.cam.ac.uk
[193.60.85.115] X=TLSv1:DES-CBC3-SHA:168
2005-11-03 11:41:34 1EXdTK-00057F-3N -> otherone@???
R=gateway_local T=remote_smtp H=reading.mrc-dunn.cam.ac.uk
[193.60.85.115] X=TLSv1:DES-CBC3-SHA:168

Mail Server log entry:
2005-11-03 11:39:38 1EXdRS-0006FB-NX <= ap454@???
H=stirling.mrc-dunn.cam.ac.uk [193.60.90.25] P=esmtps
X=TLSv1:DES-CBC3-SHA:168 S=3355
id=417CBCF38B7010499DB4EC7FA24A0A1E3C5842@???
2005-11-03 11:39:38 1EXdRS-0006FB-NX Completed


Mail Server config routers:

# a router to rewrite local part, then pass on to next router
# the local_part remains rewritten when this falls through to other routers
#
# rewrite local_domains local parts to be all lowercase
lowercase_local:
    driver = redirect
    redirect_router = real_prefix
    domains = +local_domains
    data = ${lc:${local_part}}


# if the local part prefix matches then redirect to the current_user router
# if not, drop down to next router
# we check local user in order to prevent aliases/lists being broken!
real_prefix:
    driver = redirect
    redirect_router = current_users
    domains = +local_domains
    check_local_user
    local_part_prefix = real-
    data = $local_part


system_aliases:
    driver = redirect
    allow_fail
    allow_defer
    # Merlin added expand here to expand the contents of the alias - VERY
useful!
    data = ${expand:${lookup{$local_part}lsearch{/etc/aliases}}}
    file_transport = address_file
    pipe_transport = address_pipe
    # Merlin 2005-09-09 this might stop mails going to sender
    check_ancestor