Hello all,

im using the following rules to route my incoming emails to the correct
MX server(s):


-- The message for domain "test.com" gets accepted  and relayed to amavis

accept from any for domain "test.com" relay via "smtp://127.0.0.1:10020"


-- The mail gets tagged after it is received from amavis:

listen on lo port 10025 tag Filtered


-- Afterwards it is relayed to the responsible mail server:

accept tagged Filtered for domain "test.com" relay via 
"smtp+tls://46.101.xxx.xxx"



It should be possible to use a domain name instead of the ip address in my 
example


Hth

Marcel


Am 04.05.2017 um 19:07 schrieb Justin Clift:
> On 4 May 2017, at 17:24, Don Harper <[email protected]> wrote:
>> Hello, all!
>> Sorry if this has been asked before, but my googling did not turn 
>> anything up.
>>
>> Is it possible to setup which host to relay through based on the 
>> recipient's domain?  Say, if user is [email protected], go to relay1.net, and 
>> if it is [email protected], go to relay2.org?
> As a thought, ff you have write access to the DNS records for the domains,
> the MX record points to which host will receive email for a domain.
>
> Guessing you're asking because you don't have the needed write access,
> but just in case you do, that'd probably be the right way to go. :)
>
> Regards and best wishes,
>
> Justin Clift
>
> --
> "My grandfather once told me that there are two kinds of people: those
> who work and those who take the credit. He told me to try to be in the
> first group; there was less competition there."
> - Indira Gandhi
>
>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to