Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] smartctrl drive error @60%
Date: Thu, 26 Jun 2014 05:57:13
Message-Id: 201406260656.41278.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] smartctrl drive error @60% by Dale
1 On Thursday 26 Jun 2014 03:15:54 Dale wrote:
2 > Neil Bothwick wrote:
3 > >> I have to say, I dread setting up a mail server about as bad as I dread
4 > >> going to the Doctor. It's just something I really don't want to add to
5 > >> my system unless I have to.
6 > >
7 > > Which is why I suggesting something like ssmtp, which you can't call a
8 > > server, it just forwards. Often the only configuration needed is changing
9 > > one line in ssmtp.conf, to the address of your ISP's mail server.
10 > >
11 > > That's it, now any program can send mail using sendmail and it just goes
12 > > to your ISP mailbox.
13 >
14 > I like this part:
15 >
16 > "Extremely simple MTA to get mail off the system to a Mailhub"
17 >
18 > ^^^^^ That part right up there. :-D That may be a new thread, if
19 > needed.
20
21 Try this basic setup in your /etc/ssmtp/ssmtp.conf:
22 ============================================================
23
24 root=dale@×××××.com #Change to your preferred email address
25
26 mailhub=smtp.gmail.com:465 #Could also use port 587 for STARTTLS
27
28 rewriteDomain=dales_smoker.shack #Something to denote your machine's name
29
30 FromLineOverride=YES
31
32 UseTLS=YES #Can also try UseSTARTTLS=YES as an alternative
33
34 AuthUser=dale@×××××.com
35 AuthPass=dalesgmails3cr3tpasswd #Special characters seem to barf with ssmtp
36 ============================================================
37
38 Sort out access rights to 0604, since it now contains your mail passwd
39 unencrypted:
40
41 # ls -la /etc/ssmtp/ssmtp.conf
42 -rw-r----- 1 root ssmtp 1696 May 19 23:40 /etc/ssmtp/ssmtp.conf
43
44 Add this in your /etc/ssmtp/revaliases:
45 =======================================
46 root:dale@×××××.com:smtp.gmail.com:465
47 dale:dale@×××××.com:smtp.gmail.com:465
48 other_user:dale@×××××.com:smtp.gmail.com:465
49 =======================================
50
51 Then ping a message to yourself as a test to see that all works fine:
52
53 echo "My first test message" | mail -v -s "Test for sSMTP 1" dale@×××××.com
54
55 It should then appear in your gmail account (Sent folder). Set a label/filter
56 to find such messages easily and you're done.
57
58 --
59 Regards,
60 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] smartctrl drive error @60% Mick <michaelkintzios@×××××.com>
[gentoo-user] Re: smartctrl drive error @60% Alberto Luaces <aluaces@×××.es>