Skip to content

Instantly share code, notes, and snippets.

@cuibonobo
Created August 4, 2014 22:30
Show Gist options
  • Select an option

  • Save cuibonobo/c16f7c70cf403489f297 to your computer and use it in GitHub Desktop.

Select an option

Save cuibonobo/c16f7c70cf403489f297 to your computer and use it in GitHub Desktop.
Getting the help desk to send emails
  • Added EPEL repository with rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  • Did yum update for good measure
  • Installed SSMTP with yum install ssmtp
  • Edited /etc/ssmtp/ssmtp.conf to 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 sendmail application by running alternatives --config mta. (You can verify with sendmail -V)
  • Added root:helpdesk@gmail.com:smtp.gmail.com:587 to /etc/ssmtp/revaliases
  • Uncommented sendmail_from = helpdesk@gmail.com from /etc/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment