March 25, 2017

Installing SSMTP on CentOS 5.6

CentOS Logo This tutorial will guide you through installing SSMTP on CentOS 5.6

SSMTP is an extremely simple MTA to get mail off the system to a 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. WARNING: the above is all it does; it does not receive mail, expand aliases or manage a queue.

Firstly lets install the EPEL repository as SSMTP is not native to CentOS 5.6 base installations.

Install the EPEL i386 YUM Repository

# rpm -Uvh

Remove Sendmail as the binaries can conflict.

Now install SSMTP

SSMTP is now installed and all that is let is to configure it.

For a really basic installation uncomment and replace with your mailserver and domain details mailhub and RewriteDomain

  • Anonymous

    Thanks so much for this n

  • Cwhitmore

    easy setup. thanks.

  • Shaheen McLean

    If you want to use sSMTP to use Gmail/Google Apps as the relay host for, use the following config:

    FromLineOverride=YES (uncomment this line)

    UseSTARTTLS=YES (do not use UseTLS=YES which is the default, there’ll be errors)

    [email protected]

    If you’re using a PHP mail wrapper set this line in your /etc/php.ini:
    sendmail_path = /usr/sbin/ssmtp -t