I want to send mail from my Gmail box ([email protected]) that will appear as sent from my Google Apps address ([email protected]).

While setting up the "send as" address, I'm asked to enter my SMTP server, username and password.

I use smtp.example.com with my Google Apps user and password, and I get the following DNS error:

Authentication failed. Please check your username/password.
[Server response: DNS Error: Address resolution of smtp.example.com. failed: Domain name not found code(0) ]

I have MX records set up on my domain host, and they show on Google Apps admin console.

Any idea?

1 Answer 1


One option that bypasse the problem is to use Gmail SMTP server for the "send as" option.

  • You use smtp.gmail.com as server address
  • Your gmail email address as username
  • The password should be generated by Google as an app password, using the instructions in the link below. It is not your Gmail account password.

This method worked for me: Using Gmail SMTP server

  • Thanks for updating your answer, but a reader still will need to follow that link to get a key piece of information.
    – ale
    Jul 21, 2015 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.