Hello
I have postfix setup as an MTA and it's only doing the sending.
It's set up to allow some hosts to relay emails to the outside world.
The hostname of the postfix, let's say is post.can.com
And there's a local user named john on this box
John's email
john@can.com is hosted at google mail
The issue is that when the host tries to send mail to say
john@can.com, instead of sending to John's google email, it sends locally.
Postfix Configuration:
Quote:
myhostname = post.can.com
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = can.com
myorigin = can.com
|
Is there a way to make it prevent sending this locally and have it use the mx record for the domain so it can be sent to google mail?
I've tried removing $mydomain from mydestination but it would reject relaying from allowed hosts.