User Tools

Site Tools


Table of Contents

SMTPS client

Package: ssmtp
Version: 2.64-3
Depends: libopenssl
Status: unknown ok not-installed
Section: mail
Architecture: ar71xx
Maintainer: OpenWrt Developers Team <>
MD5Sum: c8e17c5a52dd8f406c49f718111dce45
Size: 12514
Filename: ssmtp_2.64-3_ar71xx.ipk
Source: feeds/packages/mail/ssmtp
Description: A secure, effective and simple way of getting mail off a system to your
 mail hub. It contains no suid-binaries or other dangerous things - no
 mail spool to poke around in, and no daemons running in the background.
 mail is simply forwarded to the configured mailhost. Extremely easy


ssmtp expects its two configuration files named /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf. Both are self-explaining:

# /etc/ssmtp/ssmtp.conf
# /etc/ssmtp/revaliases
# Format: local_account:outgoing_address:mailhub

The global configuration file for mutt is /etc/Muttrc. Here is a sufficient configuration:

# /etc/Muttrc
mailboxes /tmp/mail
set sendmail="/usr/bin/ssmtp -auultranerd@universum.tb -ap123password456"
set from="ultranerd@universum.tb"
# Mail folder setup.
set folder=/tmp/mail
set mbox_type=mbox
set spoolfile=+inbox
set mbox=+received
set postponed=+postponed
set record=+sent


cat /etc/banner | ssmtp -vvv -auultranerd@universum.tb -ap123password456

The scriptname is targzaes and its location is /usr/bin. Encrypt and send /var/log/messages:

targzaes e /var/log/messages /tmp/messages.aes
mutt -a /tmp/messages.aes -s syslog

Decrypt mail attachment on a different machine where aespipe and the keyfile are available.

targzaes d messages.aes


doc/howto/smtps.client.txt · Last modified: 2013/10/12 15:28 by friedzombie