Howdy,

I went through this before and I haven't changed anything so not sure
why it isn't working now.  I decided to test smartd to make sure that it
would send me a email if a drive developed a problem.  I added -M test
to the line, restarted smartd and got nothing.  I mean nothing but
crickets.  Going to post relevant info that I know of.  Here we go:

Uncommented lines from smartd.conf: 


DEVICESCAN -I 194 -I 231 -I 9

/dev/sda -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root -M
test
/dev/sdb -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root -M
test
/dev/sdc -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root -M
test



Other than adding -M test, I don't recall changing anything except the
usual upgrade changes.  From revaliases, with obvious edits of course:


root:[email protected]:smtp.gmail.com:465
dale:[email protected]:smtp.gmail.com:465
other_user:[email protected]:smtp.gmail.com:465 


From ssmtp.conf file, again with obvious edits:


root=postmaster
[email protected]  #Change to your preferred email address
mailhub=smtp.gmail.com:465  #Could also use port 587 for STARTTLS
rewriteDomain=fireball  #Something to denote your machine's name
FromLineOverride=YES
UseTLS=YES  #Can also try UseSTARTTLS=YES as an alternative
[email protected]
AuthPass=secret-stuff #Special characters seem to barf with ssmtp
mailhub=mail
hostname=_HOSTNAME_



From my understanding, smartd passes the info to ssmtp and then it gets
sent from there.  When I test ssmtp, I get this, with obvious edits of
course. 


root@fireball / # echo "My first test message" | mail -v -s "Test for
sSMTP 1" [email protected]
[<-] 220 smtp.gmail.com ESMTP u78sm263385ywu.13 - gsmtp
[->] EHLO _HOSTNAME_
[<-] 250 SMTPUTF8
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] cmRhbGVrMTk2N0BnbWFpbC5jb20=
[<-] 334 UGFzc3dvcmQ6
[<-] 235 2.7.0 Accepted
[->] MAIL FROM:<[email protected]>
[<-] 250 2.1.0 OK u78sm263385ywu.13 - gsmtp
[->] RCPT TO:<[email protected]>
[<-] 250 2.1.5 OK u78sm263385ywu.13 - gsmtp
[->] DATA
[<-] 354  Go ahead u78sm263385ywu.13 - gsmtp
[->] Received: by _HOSTNAME_ (sSMTP sendmail emulation); Tue, 04 Aug
2015 03:28:36 -0500
[->] From: "root" <[email protected]>
[->] Date: Tue, 04 Aug 2015 03:28:36 -0500
[->] To: [email protected]
[->] Subject: Test for sSMTP 1
[->]
[->] My first test message
[->] .
[<-] 250 2.0.0 OK 1438676918 u78sm263385ywu.13 - gsmtp
[->] QUIT
[<-] 221 2.0.0 closing connection u78sm263385ywu.13 - gsmtp
root@fireball / #


When I check my email, I do get the test message.  It seems to me that
ssmtp is working but that smartd either isn't working or it is not
getting to ssmtp somehow. 

Anyone see a reason this shouldn't be working?  I'd really like a heads
up if a drive is having "issues". 

Thanks.

Dale

:-)  :-) 


Reply via email to