- Added EPEL repository with
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm - Did
yum updatefor good measure - Installed SSMTP with
yum install ssmtp - Edited
/etc/ssmtp/ssmtp.confto look like this:
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
FromLineOverride=YES
AuthUser=helpdesk@gmail.com
AuthPass=XXXXXXXXXXXXXXX
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
- Set up SSMTP as the default
sendmailapplication by runningalternatives --config mta. (You can verify withsendmail -V) - Added
root:helpdesk@gmail.com:smtp.gmail.com:587to/etc/ssmtp/revaliases - Uncommented
sendmail_from = helpdesk@gmail.comfrom/etc/php.ini