VPS with Debian Squeeze cannot forwward email - Name service error for name=gmail.com type=MX: Host not found, try again

Posted by Domagoj on Server Fault See other posts from Server Fault or by Domagoj
Published on 2012-05-31T20:01:44Z Indexed on 2012/05/31 22:43 UTC
Read the original article Hit count: 138

Filed under:
|
|
|
|

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[20280]: 825E117BA8A80: to=<[email protected]>, orig_to=<[email protected]>, 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!

© Server Fault or respective owner

Related posts about dns

Related posts about debian