postfix not sending domain mail to mx
Posted
by
orlandoresorts
on Server Fault
See other posts from Server Fault
or by orlandoresorts
Published on 2013-03-27T18:59:18Z
Indexed on
2014/05/30
9:30 UTC
Read the original article
Hit count: 286
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?
© Server Fault or respective owner