postfix not sending domain mail to mx
- by orlandoresorts
I'm trying to get postfix to forward email to my domain which is hosted by gmail. As I don't have any users on my server nor do I want to.
Here's how I have things set up.. LEt's say you and I have a domain called mcdonalds.com
the registrar has mcdonalds.com MX records pointing to gmail.
(everything works for like a year)
Now we set up a server to host a website.
Then we create a mail account called [email protected] and send mail locally from the server using roundcube.
This works.
We can send mail to cnn.com we can send mail to serverfault.com we can email any/everyone.
BUT we cannot send mail to our own domain mcdonalds.com
So I cannot email [email protected] I cannot email [email protected] I cannot email [email protected]
It gives the error:
SMTP Error (450): Failed to add recipient "[email protected]" (4.1.1 : Recipient address rejected: User unknown in virtual mailbox table).
I'm guessing because it is looking at the local server to find the mailbox and it doesn't exist.
So how to I tell the server for any mail going to mcdonalds.com for [email protected] to send to my external mail server and NOT to lookup on the local www box we set up with zpanel.
Any ideas?