Gary Sellani skrev den 2017-08-01 14:31:
Could the host be something like 10.8.0.0/24?

make a hostname with multiple A/AAAA/MX

to do this one could simply add ip-addr to /etc/hosts with the hostname wanted for the lan of rfc1918 ips

then change relayhost to

relayhost = smtp:<name-in-etc-hosts>:25

postfix will then use name-in-etc-hosts as a dns mx record

relayhost = smtp:[host on other side of tunnel]

with [] around hostname mx round robin is disabled

this is ok and desired for single ip hostname

# cat /etc/hosts
10.0.0.2 in.localdomain in
10.0.0.3 in.localdomain in

or simple use splited dnsview on public dns

better docs here:

https://en.wikipedia.org/wiki/Split-horizon_DNS

Reply via email to