I maintain a custom built web application. Any time this application sends an email, it adds a custom header X-UUID
to the mail, to assist me in tracking abuse and email delivery. This UUID is written to my application's log file so I can correlate any given email with what was happening in my application at that time.
Is it possible to configure Exim on the cPanel server which delivers these emails to log this X-UUID
header in the exim_mainlog
file? For example, could these existing log entries:
2011-12-05 11:38:18 1RXbYY-00074m-0T <= [email protected] H=oak01.sitepalette.com (trees.sitepalete.com) [172.16.1.50] P=esmtp S=7779 [email protected]
2011-12-05 11:38:18 1RXbYY-00074m-0T => redacted@redactedcom R=lookuphost T=remote_smtp H=redacted.redacted.redacted.net [111.222.333.444]
2011-12-05 11:38:18 1RXbYY-00074m-0T Completed
be changed to somehow include this header? Something like:
2011-12-05 11:38:18 1RXbYY-00074m-0T <= [email protected] H=oak01.sitepalette.com (trees.sitepalete.com) [172.16.1.50] P=esmtp S=7779 [email protected]
2011-12-05 11:38:18 1RXbYY-00074m-0T X-UUID: 2b1d7e3f-0ca0-4790-a21d-a5922cd34002
2011-12-05 11:38:18 1RXbYY-00074m-0T => redacted@redactedcom R=lookuphost T=remote_smtp H=redacted.redacted.redacted.net [111.222.333.444]
2011-12-05 11:38:18 1RXbYY-00074m-0T Completed