Login to your server via SSH as ‘root’ user and change to your Sendmail configuration directory, which is normally at /etc/mail. Please make backup of each configuration file before making changes.
Edit Sendmail configuration file ‘/etc/mail/sendmail.mc’ using your favorite editor such as ‘vi’ and add below code after #dnl define(‘SMART_HOST’, ‘smtp.your.provider’)dal line.
To add authorization credentials, edit the file ‘/etc/mail/authinfo’ using your editor and add below line.
Replace ‘your_smtp2go_username’ and ‘your_smtp2go_password’ with your actual SMTP2GO Username and Password.
If your server supports CRAM-MD5 or DIGEST-MD5, then you may replace “M:PLAIN” with “M:CRAM-MD5 DIGEST-MD5”.
Now update your configuration files as below:
Finally restart Sendmail service using one of the following commands based on the version you are using:
Try SMTP2GO free for as long as you like:Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.