Low memory usage SMTP Send-Only

Often when installing a web application or script you need an SMTP server to send email but rarely there is the need to recieve any email and on those occasions it is unnecessary to set up an full blown SMTP server like Postfix, Sendmail or Exim. It works equally well using ssmtp, which also is simple and fast to install. It takes two minutes to install and configure.

Start the installation with apt-get:

The configuration is done in the /etc/ssmtp/ssmtp.conf and there is not much needing to be configured:

The mail server you must send mail through (relay). In this guide we will use GMail smtp Server.
From Line Override
Set to YES to allow the use of others choose from addresses other than the system itself.
The username or email adress on the account used to login to gmail.
The password for above account
Set to Yes to use TLS when connecting to the SMTP server.

No reboots required. Ssmtp create / usr / sbin / sendmail, such as PHP uses to send mail. You have no open ports, everything just works.

6 comments for “Low memory usage SMTP Send-Only

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.