Szerző: Jarle Hammen Knudsen
Dátum:
Címzett: exim-users
Tárgy: [exim] Bounce router based on both sender and recipient
I have the following router:
send_via_ses:
driver = manualroute
debug_print = "R: send_via_ses"
domains = ! +local_domains
transport = ses_smtp
route_list = * email-smtp.eu-west-1.amazonaws.com;
senders = lsearch;/etc/exim4/ses-senders
If the sender is listed in /etc/exim4/ses-senders the mail is sent via
the smarthost.
I also have a list of recipient addresses known to bounce in
/etc/exim4/ses-suppress.
What I am trying to do is define a router which bounces the message if
both these conidtions are true:
1. sender is listed in /etc/exim4/ses-suppress
2. recipient is listed in /etc/exim4/ses-suppress
If the sender is not listed in /etc/exim4/ses-suppress these two routers
should be skipped.
I have worked on this for quite some time without success so any help is
very much appreciated.
--
Jarle Hammen Knudsen