mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / sSMTP.mdwn
1 [[!meta  title="sSMTP"]]
2
3 [sSMTP][] is a simple [[SMTP]] client for sending mail from your local
4 client to a mail hub with a more serious [MTA][].  For example, my
5 main server is running [[Postfix]], but I want to send mail from my
6 laptop.  I use sSMTP to do this.
7
8 Before you use sSMTP, you need to configure it so it knows how to
9 connect to the mail hub.  My `/etc/ssmtp/ssmtp.conf` is:
10
11     root=jdoe
12     mailhub=mail.example.net
13     rewriteDomain=example.com
14
15 This sends mail via `mail.example.net`, and replaces my current domain
16 name with `example.com`.  `jdoe@mail.example.net` will recieve all
17 system-generated email (i.e. cron job output).
18
19 There are other settings available in the config file.  The stock
20 config contains lots of comments explaining how to use them, and the
21 `ssmtp.conf` man page contains even more details.
22
23 I felt like the [[SSL/TLS|GnuTLS]] handling for sSMTP was a bit sparse
24 (for example, it doesn't validate the server certificate), so I've
25 submitted some patches upstream ([662958][] and [662960][]).
26
27 If sSMTP doesn't scratch your itch, the next level up in terms of
28 features is [msmtp][], which I used to use before I setup my own mail
29 hub.
30
31 [sSMTP]: http://packages.qa.debian.org/s/ssmtp.html
32 [MTA]: http://en.wikipedia.org/wiki/Message_transfer_agent
33 [msmtp]: http://msmtp.sourceforge.net/
34 [662958]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662958
35 [662960]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662960