I have postfix set-up on my Debian VPS, I can:
- send emails
- receive emails
on my server
But forwarding emails from my server to gmail does not work!
I configured google's DNS through /etc/resolv.conf
I can ping google.com and with dig I also find gmail MX records. But when my server tries to forward email to gmail (setup with /etc/aliases) I get the following error:
postfix/smtp: 825E117BA8A80: to=<email@example.com>, orig_to=<firstname.lastname@example.org>, relay=none, delay=40, delays=0/0.01/40/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
What am I missing? Any help will be greatly appreciated!