[exim] Logging full address on local delivery

Top Page
Delete this message
Reply to this message
Author: Malcolm McLean
Date:  
To: exim-users
Subject: [exim] Logging full address on local delivery
Hi,

Upfront apologies if this is trivial or covered by a part of the manual,
but from all of my searching and reading I couldn't find any reference
to this.

Our server hosts various domains, and there are instances where some
domains have the same local part, which makes reading and parsing the =>
log line difficult. To complicate this, some addresses are aliases to
different local domains, which means utilising the email address with
<...> is somewhat useless.

For example:
2012-10-23 13:00:42 1TQcDw-0005TD-1O <=
external@???=mail.somewhere.com (test) [10.0.1.15] P=smtp
S=1035 id=test@??? james@???
2012-10-23 13:00:42 1TQcDw-0005TD-1O => james
<james@???>F=<external@???>R=virtual_user
T=local_delivery S=1215
2012-10-23 13:01:16 1TQcdu-0005gF-BY <=
external@???=mail.somewhere.com (test) [10.0.1.15] P=smtp
S=1035 id=test@??? james@???
2012-10-23 13:01:16 1TQcdu-0005gF-BY => james
<james@???>F=<external@???>R=virtual_user
T=local_delivery S=1215

From the above, I have no way of knowing which local james account was
delivered to, especially without knowing if james@??? was
actually a redirect to james@???. There could even be a
james@??? that is compeltely unrelated to the james account at
either example1.com or example2.com.

Is there a way to have the => log line output the full address for local
deliveries, instead of just the local part? So, using the above examples:
2012-10-23 13:00:42 1TQcDw-0005TD-1O <=
external@???=mail.somewhere.com (test) [10.0.1.15] P=smtp
S=1035 id=test@??? james@???
2012-10-23 13:00:42 1TQcDw-0005TD-1O =>
james@???<james@???>F=<external@???>R=virtual_user
T=local_delivery S=1215
2012-10-23 13:01:16 1TQcdu-0005gF-BY <=
external@???=mail.somewhere.com (test) [10.0.1.15] P=smtp
S=1035 id=test@??? james@???
2012-10-23 13:01:16 1TQcdu-0005gF-BY =>
james@???<james@???>F=<external@???>R=virtual_user
T=local_delivery S=1215

Thanks,
Malcolm McLean