So we setup a site to site vpn tunnel with another company. We then proceeded to setup a DNS zone on each others dns servers and entered in each others Mail server name and IP, MX record and WWW record. This allowed us to send emails to each others mail servers through the site to site vpn.
Now recently the other company started using MX Logic to scan all outbound and incoming mail. So all outbound email is directed to MX Logic.
However we still want email between us to travel across the the Site to Site VPN tunnel. How can we specify that to happen for just one domain not to be directed to MX Logic?
Stump on both ends and looking for help.
sendmail: Add an entry in mailertable to specify an smtp server for the appropriate domain.
With postfix, you can use a transport map to accomplish this.
The basic plan would be to create a file named
transport
in your/etc/postfix
directory, and fill it with something like this:Add this to your /
etc/postfix.main.conf
:Compile the map like so:
The reload postfix:
You can learn a little more about
transport
here.