Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I configured ssmtp on my ubuntu machine according to many sources on the net. My ssmtp.conf is:

and revaliases:

Then when I try to send email to root by mutt, the email is sent, but there is also email from gmail saying:

Delivery to the following recipient failed permanently:


Technical details of permanent failure:
DNS Error: Domain name not found

What can I do not to receive this emails from gmail?

share|improve this question

migrated from Mar 30 '11 at 14:46

This question came from our site for system and network administrators.

Please note that this email is caused by ssmtp trying to send you system emails via your Gmail account.

This only happens when there's an issue with the script which contains your email command.

If you fix the problem with your script (mine was access issues with rsyncv, for example) your system won't have any system emails to send, and Gmail won't complain about the domain not being found.

It might also be relevant that you don't have a system-side email client on your system, so the only way system messages can be sent are by ssmtp, through Gmail, to your system accounts, which, again, will cause these symptoms.

share|improve this answer

Use your fully qualified domain ( not example) in the rewrite specification. You may need to purchase a domain if you haven't already.

EDIT: Drop the rewrite domain line as you don't have a valid domain. Add a root alias of the form This should be the email address you want to receive the mail.

share|improve this answer
It can't be the case. It worked before, and I didn't buy any domain. The difference is, before it was sent to "root", now it goes to "root@eurybiades". – amorfis Mar 30 '11 at 13:28
@amorfis: Updated for case where you don't have a valid domain. – BillThor Mar 30 '11 at 13:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .