Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

smartd test email fails to send / How to specify "from:" address used by smartd?

$
0
0
Hello All,

smartd can not successful complete sending an email test message because:
1) I could not find a way to make smartd specify the "from:" address in the outgoing email test message; or
2) I do not know how to make Postfix always use a user-specified "from:" address

Please help me get smartd to successfully complete sending an email test message. I would strongly prefer making smartd specify the "from:" address, rather than making changes to Postfix.

Details follow.

Here is the contents of /etc/smartd.conf
Code:

/dev/sda -a -d sat -M test -m recipient@q.com -n standby,3,q -o on -S on  -s (S/../.././(00|06|12|18)|L/../(01|05|10|15|20|25)/./(00|06|12|18))  -W 5,51,54
smartd thinks it succeeded sending the test email:
Code:

LinuxBox:/ # service smartd status
smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
  Loaded: loaded (/usr/lib/systemd/system/smartd.service; enabled)
  Active: active (running) since Fri 2014-05-09 16:52:28 MDT; 41s ago
 Main PID: 2951 (smartd)
  CGroup: /system.slice/smartd.service
          `-2951 /usr/sbin/smartd -n
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.ST3320620NS-5QF2ZLX6.ata.state
May 09 16:52:28 LinuxBox.site smartd[2951]: Monitoring 1 ATA and 0 SCSI devices
May 09 16:52:28 LinuxBox.site smartd[2951]: Executing test of <mail> to recipient@q.com ...
May 09 16:52:28 LinuxBox.site smartd[2951]: Test of <mail> to recipient@q.com: successful
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], initial Temperature is 31 Celsius (Min/Max 33/35)
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 74 to 69
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 26 to 31
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 94 to 81
May 09 16:52:28 LinuxBox.site smartd[2951]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.ST3320620NS-xxxxxxxx.ata.state

BUT, the test message never gets delivered.

When I examine the Postfix log, it reveals the receiving SMTP server bounced smartd's test email because the SMTP server could not determine the test message's proper sender:
Code:

2014-05-09T16:52:28.896883-06:00 LinuxBox postfix/pickup[2897]: DAEA314245: uid=0 from=<root>
2014-05-09T16:52:28.898026-06:00 LinuxBox postfix/cleanup[2938]: DAEA314245: message-id=<20140509225228.DAEA314245@LinuxBox.site>
2014-05-09T16:52:28.921660-06:00 LinuxBox postfix/qmgr[2898]: DAEA314245: from=<root@LinuxBox.site>, size=769, nrcpt=1 (queue active)
2014-05-09T16:52:29.404586-06:00 LinuxBox postfix/smtp[2940]: DAEA314245: to=<recipient@q.com>, relay=smtp.q.com[205.169.121.111]:587, delay=0.5, delays=0.05/0/0.43/0.03, dsn=5.0.0, status=bounced (host smtp.q.com[205.169.121.111] said: 550 Could not resolve sender's domain (in reply to MAIL FROM command))

I know Postfix is configured correctly, because I manually sent a message successfully:
Code:

LinuxBox:/ # mailx -s "Testing" -r recipient@q.com sender@q.com
Testing
EOT

BTW - I know just barely enough to get Postfix set up using YaST.

Note:
The actual email addresses used were sanitized for security.

System details:
openSUSE 13.1 for x86_64
smartmontools-6.2-95.1.x86_64 (where smartd is from)
postfix-2.9.6-7.4.1.x86_64
Linux kernel 3.11.10-7-desktop

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>