How to make Postfix relay mail to the servers specified as MX, not to itself
Posted on 2007-10-09
I have a machine with Postfix that I want to use for one of my scripts to send mail, to the same domain. It's kind of confusing for me, but here it is:
Let's say the machine name is mydomain.com.mx, and the MX entries of the domain are setup for Google Apps (so Google handles all my mail).
So, currently if I try to send mail from inside the machine, I get a 'user not found' error from postfix, since it tries to deliver mail locally, instead of using the servers specified in the DNS.
Is there an easy way to fix this?