Skip to content

Instantly share code, notes, and snippets.

@repcsi
Created October 11, 2019 20:00
Show Gist options
  • Save repcsi/d5dc97092ad6bf3c6d352711bc9e0948 to your computer and use it in GitHub Desktop.
Save repcsi/d5dc97092ad6bf3c6d352711bc9e0948 to your computer and use it in GitHub Desktop.
Install ssmtp
/usr/local/etc/ssmtp/ssmtp.conf:
root=destination@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=useracc@gmail.com
AuthPass=userpass
UseSTARTTLS=YES
rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
for mail to work:
mv /usr/sbin/sendmail /usr/sbin/sendmail.org
ln -s /usr/local/sbin/ssmtp /usr/sbin/sendmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment