I would like to have each email that arrives at the gateway forwarded to both servers

rensar

New Member
Feb 15, 2023
3
0
1
Hello All,

I need to setup a second mail server that is a mirror of the primary. I would like to have each email that arrives at the gateway forwarded to both servers. Can this be done?
 
It's not desired.

Put a mx record weight of 10 for server 1 and 20 for server 2 etc

Otherwise configure load balancing on your gateway but make sure the traffic of each server is going trough the same helo messages and outbound ip
 
It's not desired.

Put a mx record weight of 10 for server 1 and 20 for server 2 etc

Otherwise configure load balancing on your gateway but make sure the traffic of each server is going trough the same helo messages and outbound ip
I did as described in the load balancing section.
MX record in DNS server:
mydomain.com. 22879 IN MX 10 mail.mydomain.com.
Static records in /etc/hosts on pmg
1.2.3.4 mail.mydomain.com
1.2.3.5 mail.mydomain.com
And it didn't help. Mail comes to only one server
 
Tried another way. Removed entries from /ets/hosts and added them to the local server. Added to default relay: mнdomain.com. Disabled lookup MX: no

nslookup mydomain.com
mydomain.com MX preference = 10, mail exchanger = mail.mydomain.com
mail.mydomain.com internet address = 192.168.0.4
mail.mydomain.com internet address = 192.168.0.230

Mail arrives randomly to one of the two servers