Table of Contents
SMTPS client
Package: ssmtp Version: 2.64-3 Depends: libopenssl Provides: Status: unknown ok not-installed Section: mail Architecture: ar71xx Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org> 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 configuration.
Configuration
ssmtp expects its two configuration files named /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf. Both are self-explaining:
# /etc/ssmtp/ssmtp.conf root=arnold@gmx.net mailhub=mail.gmx.net:465 rewriteDomain=gmx.net hostname=gmx.net FromLineOverride=YES UseTLS=YES #UseSTARTTLS=YES |
# /etc/ssmtp/revaliases # Format: local_account:outgoing_address:mailhub root:arnold@gmx.net:mail.gmx.net:465 |
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 |
Usage
more /etc/banner | ssmtp -vvv -auultranerd@universum.tb -ap123password456 someguy@gmx.net |
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 someguy@qmail.com |
Decrypt mail attachment on a different machine where aespipe and the keyfile are available.
targzaes d messages.aes |
Notes
doc/howto/smtps.client.txt · Last modified: 2011/02/24 06:42 by orca