transport to multiple exchange server (DAG)

Questions and answers about how to do stuff
Post Reply
nicola.piazzi
Posts: 386
Joined: 23 Apr 2015 09:45

transport to multiple exchange server (DAG)

Post by nicola.piazzi »

Hi
I need to put 2 exchange servers that i have in dag both into transport table for my domains
If I use 7 > 4 – Transport settings in efa configuration menu is possible to insert only one entry that give this in transport file :
gruppocomet.it smtp:[10.1.1.126]

Because Postfix is greater than 3.5 we can use multiple destinations in transport file so i put
comet.it smtp:10.1.1.126, 10.1.1.151
postmap /etc/postfix/transport
sytemctl restart postfix

But after this modification efa menu shows a wrong alignment in 7 > 4 – Transport settings

Is there a way to do a clean work ?

I know that we can do it with dns MX entry but at this time efa uses public dns and i dont want to make changes at this level

Thx
User avatar
pdwalker
Posts: 1500
Joined: 18 Mar 2015 09:16

Re: transport to multiple exchange server (DAG)

Post by pdwalker »

Just a wild guess, but would this work in your transport file instead?

Code: Select all

comet.it smtp:[10.1.1.126]
comet.it smtp:[10.1.1.151]
The proper solution is to allow the efa configuration to support multiple destinations correctly. That should be an enhancement request for Shawn.
nicola.piazzi
Posts: 386
Joined: 23 Apr 2015 09:45

Re: transport to multiple exchange server (DAG)

Post by nicola.piazzi »

syntax in postfix says only one line for domain
comet.it smtp:10.1.1.126, 10.1.1.151
i dont know if work as you say
User avatar
pdwalker
Posts: 1500
Joined: 18 Mar 2015 09:16

Re: transport to multiple exchange server (DAG)

Post by pdwalker »

If the document says 1 domain per line, then that's that.

Until the configuration UI is changed to support multiple IPs per domain in the transport file, you'll have to maintain it by hand.
gregecslo
Posts: 50
Joined: 09 Sep 2018 17:55

Re: transport to multiple exchange server (DAG)

Post by gregecslo »

Why not like this:

mydomain.com smtp:[exch-dag.domain.local]

Add above host into hosts file and thats it
nicola.piazzi
Posts: 386
Joined: 23 Apr 2015 09:45

Re: transport to multiple exchange server (DAG)

Post by nicola.piazzi »

yes but this is one server only
gregecslo
Posts: 50
Joined: 09 Sep 2018 17:55

Re: transport to multiple exchange server (DAG)

Post by gregecslo »

No...

In my case: exch-dag.domain.local resolves to both exchange servers in dag...
nicola.piazzi
Posts: 386
Joined: 23 Apr 2015 09:45

Re: transport to multiple exchange server (DAG)

Post by nicola.piazzi »

yes but so is a round robin, if you power off server 1 efa can try to send it
gregecslo
Posts: 50
Joined: 09 Sep 2018 17:55

Re: transport to multiple exchange server (DAG)

Post by gregecslo »

I agree...

Thats why we remove the server under maintenance from dns for duration of servicing...
nicola.piazzi
Posts: 386
Joined: 23 Apr 2015 09:45

Re: transport to multiple exchange server (DAG)

Post by nicola.piazzi »

best will be specify 2 servers in postfix transport
Post Reply