Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] smartd and ssmtp not sending emails again.
Date: Tue, 04 Aug 2015 08:35:13
Message-Id: 55C07936.8040208@gmail.com
1 Howdy,
2
3 I went through this before and I haven't changed anything so not sure
4 why it isn't working now. I decided to test smartd to make sure that it
5 would send me a email if a drive developed a problem. I added -M test
6 to the line, restarted smartd and got nothing. I mean nothing but
7 crickets. Going to post relevant info that I know of. Here we go:
8
9 Uncommented lines from smartd.conf:
10
11
12 DEVICESCAN -I 194 -I 231 -I 9
13
14 /dev/sda -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root -M
15 test
16 /dev/sdb -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root -M
17 test
18 /dev/sdc -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root -M
19 test
20
21
22
23 Other than adding -M test, I don't recall changing anything except the
24 usual upgrade changes. From revaliases, with obvious edits of course:
25
26
27 root:me-email@×××××.com:smtp.gmail.com:465
28 dale:me-email@×××××.com:smtp.gmail.com:465
29 other_user:me-email@×××××.com:smtp.gmail.com:465
30
31
32 From ssmtp.conf file, again with obvious edits:
33
34
35 root=postmaster
36 root=me-email@×××××.com #Change to your preferred email address
37 mailhub=smtp.gmail.com:465 #Could also use port 587 for STARTTLS
38 rewriteDomain=fireball #Something to denote your machine's name
39 FromLineOverride=YES
40 UseTLS=YES #Can also try UseSTARTTLS=YES as an alternative
41 AuthUser=me-email@×××××.com
42 AuthPass=secret-stuff #Special characters seem to barf with ssmtp
43 mailhub=mail
44 hostname=_HOSTNAME_
45
46
47
48 From my understanding, smartd passes the info to ssmtp and then it gets
49 sent from there. When I test ssmtp, I get this, with obvious edits of
50 course.
51
52
53 root@fireball / # echo "My first test message" | mail -v -s "Test for
54 sSMTP 1" rdalek1967@×××××.com
55 [<-] 220 smtp.gmail.com ESMTP u78sm263385ywu.13 - gsmtp
56 [->] EHLO _HOSTNAME_
57 [<-] 250 SMTPUTF8
58 [->] AUTH LOGIN
59 [<-] 334 VXNlcm5hbWU6
60 [->] cmRhbGVrMTk2N0BnbWFpbC5jb20=
61 [<-] 334 UGFzc3dvcmQ6
62 [<-] 235 2.7.0 Accepted
63 [->] MAIL FROM:<me-email@×××××.com>
64 [<-] 250 2.1.0 OK u78sm263385ywu.13 - gsmtp
65 [->] RCPT TO:<me-email@×××××.com>
66 [<-] 250 2.1.5 OK u78sm263385ywu.13 - gsmtp
67 [->] DATA
68 [<-] 354 Go ahead u78sm263385ywu.13 - gsmtp
69 [->] Received: by _HOSTNAME_ (sSMTP sendmail emulation); Tue, 04 Aug
70 2015 03:28:36 -0500
71 [->] From: "root" <me-email@×××××.com>
72 [->] Date: Tue, 04 Aug 2015 03:28:36 -0500
73 [->] To: me-email@×××××.com
74 [->] Subject: Test for sSMTP 1
75 [->]
76 [->] My first test message
77 [->] .
78 [<-] 250 2.0.0 OK 1438676918 u78sm263385ywu.13 - gsmtp
79 [->] QUIT
80 [<-] 221 2.0.0 closing connection u78sm263385ywu.13 - gsmtp
81 root@fireball / #
82
83
84 When I check my email, I do get the test message. It seems to me that
85 ssmtp is working but that smartd either isn't working or it is not
86 getting to ssmtp somehow.
87
88 Anyone see a reason this shouldn't be working? I'd really like a heads
89 up if a drive is having "issues".
90
91 Thanks.
92
93 Dale
94
95 :-) :-)

Replies

Subject Author
Re: [gentoo-user] smartd and ssmtp not sending emails again. Raffaele BELARDI <raffaele.belardi@××.com>