[Exim] Re: Redirecting SMTP session to different server base…

Top Page
Delete this message
Reply to this message
Author: Patrick Starrenburg
Date:  
To: exim-users
Subject: [Exim] Re: Redirecting SMTP session to different server based on RCPT address
Josh Siegel <joshs@???> writes:

> Below the dnslookup rule, add a new one..
>
> magic:
> driver = manualroute
> route_data = ${lookup{$local_part}lsearch{/etc/exim/forward}}
> transport = remote_smtp
>
> This looks up the username in the supplied file and will forward the
> email to the supplied host


Unfortunately I don't believe this will achieve what I was looking to do - this
will route *after* being accepted by first MTA?? I was looking to *redirect*
during SMTP conversation. If it is already accepted by MTA at the HQ level
(which is out of my control) then I don't have opportunity to accept/reject at
gateway depending on criteria such as RBL's and so on which we use at our site.
I.e. their MTA has already accepted message, so when their MTA then routes
(forwards) it to our MTA I can't use RBL's because the MTA communicating with
us is a trusted MTA.

Once it has been accepted by the HQ MTA then the spammers, virus writers and
other ratbags have got their junk inside our internal mail network and it is
our mail server (and users) who then suffer dealing with the crap.

So - back to main point (if I understand correctly) I need during the SMTP
conversation for the HQ MTA to redirect the calling MTA to the subsidiary MTA.
So the calling MTA *breaks* communication with HQ MTA and goes to subsidiary
MTA to deliver message.

Possible? With Exim or by other means?

PS