Ssmtp sending via gmail, but gmail complains "Delivery to the following recipend failed"

2

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

root=my_email@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=eurybiades
hostname=
UseTLS=Yes
UseSTARTTLS=Yes
AuthUser=my_email
AuthPass=****
FromLineOverride=YES

and revaliases:

root:my_email@gmail.com:smtp.gmail.com:587
root@eurybiades:my_email@gmail.com:smtp.gmail.com:587

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:

    root@eurybiades

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

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

amorfis

Posted 2011-03-30T11:26:09.323

Reputation: 268

Answers

1

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.

nobody special

Posted 2011-03-30T11:26:09.323

Reputation: 11

0

Use your fully qualified domain (example.com 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 root=user@example.com. This should be the email address you want to receive the mail.

BillThor

Posted 2011-03-30T11:26:09.323

Reputation: 9 384

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 – 2011-03-30T13:28:07.280

@amorfis: Updated for case where you don't have a valid domain. – BillThor – 2011-03-30T13:42:30.927