Setting up Exim 4.xx with SMTP2GO is easy and fast.
Follow these steps to configure your exim to deliver mail via SMTP2GO using the debconf method. this document only describes the steps needed to configure to use SMTP2GO, the other settings needed to have a fully functional system are not covered as they vary on a site to site basis.
Please change the following variables in this guide:
USERNAME: your SMTP2GO username.
PASSWORD: your SMTP2GO password.
Open a root shell and run “dpkg-reconfigure exim4-config”.
the first screen will appear, press enter.
select one of the two “smarthost” options as appropriate, then TAB to the Ok button and press Enter.
Pass through the next few pages adjusting the settings as needed until you get to the smarthost page.
Enter mail.smtp2go.com::2525 in the address name field and then proceed through the final pages.
Now all that remains is to set the credentials for accessing SMTP2GO.
Using your favourite text editor put them in the file “/etc/exim4/passwd.client”.
If your chosen username or password contains the colon character (:), you will need to change them to remove the colon.
Setting up TLS
Run the following commands to enable TLS:
Edit the file /etc/exim4/exim4.conf.localmacros using your favourite editor such as vi or nano and add the below line:
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.