I have ssmtp setup on my system so I can get crontab alerts sent to my gmail address. I actually have 2 gmail address, one I created for the computer to use to sent messages and one is my regular email to receive these alerts. I followed the instructions below:
https://help.ubuntu.com/community/EmailAlerts
I'm getting the daily alerts correctly, but mail sent to root from the system, like smartd do not get sent to me. Instead I get a Delivery Status Notification (Failure) from gmail to the email address setup for the computer to send out the alerts.
Any idea on how to fix this?
Jim A
The response was:
DNS Error: 6824058 DNS type 'mx' lookup of mythbuntu responded with code NXDOMAIN Domain name not found: mythbuntu
Reporting-MTA: dns; googlemail.com
Received-From-MTA: dns; XXXXXXXX@gmail.com
Arrival-Date: Wed, 14 Nov 2018 04:50:59 -0800 (PST)
X-Original-Message-ID: <5bec1a33.1c69fb81.d84f1.cd6a@mx.google.com>
Final-Recipient: rfc822; root@mythbuntu
Action: failed
Status: 4.0.0
Diagnostic-Code: smtp; DNS Error: 6824058 DNS type 'mx' lookup of mythbuntu responded with code NXDOMAIN
Domain name not found: mythbuntu
Last-Attempt-Date: Wed, 14 Nov 2018 04:51:01 -0800 (PST)
ForwardedMessage.eml
Subject:
SMART error (FailedOpenDevice) detected on host: mythbuntu
From:
root <XXXXXXXXXX@gmail.com>
Date:
11/14/18, 7:50 AM
To:
<root@mythbuntu>
This message was generated by the smartd daemon running on:
host name: mythbuntu
DNS domain: [Empty]
The following warning/error was logged by the smartd daemon:
Device: /dev/sdf [SAT], unable to open device
Device info:
TOSHIBA HDWD120, S/N:58NYHDVCS, WWN:5-000039-fd4db8021, FW:MX4OACF0, 2.00 TB
For details see host's SYSLOG.
You can also use the smartctl utility for further investigation.
The original message about this issue was sent at Tue Nov 13 07:50:57 2018 EST
Another message will be sent in 24 hours if the problem persists.
Bookmarks