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
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@example.com and send mail locally from the server using roundcube.
We can send mail to
serverfault.com or to any/everyone.
BUT we cannot send mail to our own domain,
So I cannot email to
firstname.lastname@example.org or to
It gives the following error:
SMTP Error (450): Failed to add recipient "email@example.com" (4.1.1 <firstname.lastname@example.org>: Recipient address rejected: User unknown in virtual mailbox table).
I'm guessing because it is looking at the local server to find the mailbox, which doesn't exist.
So how to I tell the server for any mail going to
email@example.com to send to my external mail server, and not to lookup on the local www box we set up with zpanel?