Login to your server via SSH as ‘root’ user and change to your sSMTP configuration directory, which is normally at /etc/ssmtp. Please make a backup of the configuration file before making any changes.
Edit sSMTP configuration file ‘/etc/ssmtp/ssmtp.conf’ using your favorite editor such as ‘vi’ and add below code:
Replace USERNAME with your SMTP2GO Username and PASSWORD with your SMTP2GO password.
You may test your settings by entering the following commands:
Press Ctrl+D when you are done.
Note: If you see an error ‘550 unable to verify sender address’ when trying to send an email after setting up, this means your ‘From’ email address doesn’t have a valid MX record setup yet. All emails must be sent from an email address that has an MX record at its domain name.
Try SMTP2GO free for as long as you like:Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.