patched ssmtp based on ssmtp 2.64
sSMTP is a simple MTA to deliver mail from a computer to a mail hub (SMTP server). sSMTP is simple and lightweight, there are no daemons or anything hogging up CPU; Just sSMTP. Unlike Exim4, sSMTP does not receive mail, expand aliases, or manage a queue.
sSMTP's main configuration file is located at ssmtp.conf
Using sSMTP with Gmail is simple, you just have to change a few options around and add in TLS encryption and change Google's server to port 587
Add to revaliases
root:[email protected]:smtp.gmail.com:587
and to ssmtp.conf
# The user that gets all the mails (UID < 1000, usually the admin)
root=*YOURNAME*@gmail.com
# The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
# See also https://support.google.com/mail/answer/78799
mailhub=smtp.gmail.com:587
# The address where the mail appears to come from for user authentication.
rewriteDomain=gmail.com
# The full hostname
hostname=localhost
# Use SSL/TLS before starting negotiation
UseTLS=Yes
UseSTARTTLS=Yes
# Username/Password
AuthUser=*YOURNAME*@gmail.com
AuthPass=*yourpasswort*
AuthMethod=LOGIN
# Email 'From header's can override the default domain?
FromLineOverride=yes
with DEBIAN patches and mcpat patches:
- TLS patch (made by mcpat)
- Libcrypto patch (made by mcpat)
- 557741-remote-addr.patch
- 508759-garbage.patch
- LDFLAGS.patch
- bug584162-fix.patch
compiled with GCC 5.3.0 on a dreambox DM900 (armv7)