Hi all,
I have a route like below to capture the dsn messages when exim gets a
bounce back. For example, when you send an email to a gmail account that
doesn't exist.
This works correctly but I need to have conditions based on the original
message attached to the dsn.
As far as I can see in the route we don't have access to the original email
headers or also the whole message body to extract the headers. Is there
anyway to do so?
capture_dsn:
driver = manualroute
condition = ${if match{$h_From}{Mailer-Daemon}}
condition = ${if match{$h_Auto-Submitted:}{auto-replied|auto-generated}}
route_data = "{{ gateway }}::{{port}}"
transport = remote_gateway
no_more
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/