Page 1 of 1

How to redirect mail from a domain on lan to GMAIL MX?

Posted: Sat Aug 29, 2020 7:05 pm
by myriad
Hey all:

This one kind of has me stumped. I recently re-located some web servers in-house from Linode and inadvertently created a conundrum on Zimbra in regards to delivering mail to one of those domains (which uses Gmail). When Zimbra does a lookup it sees the lan address of xyz.com and tries to deliver the mail, which of course gets deferred as the domain is served by Gmail. How do I tell Zimbra to deliver to that domain using Gmail's mx addresses? I changed the host file and the server pings xyz.com correctly with its external address but still tries to deliver to the local lan?! Can I set DNSmasq somehow? Any advice gratefully received.

Rick

Re: How to redirect mail from a domain on lan to GMAIL MX?

Posted: Sun Aug 30, 2020 10:53 am
by myriad
Figured it out. Just had to add 'server=/xyz.com/8.8.8.8' to dnsmasq.conf and 'service dnsmasq restart'.