How to configure SMTP2go with Hosting server on WHM?

From PheonixSolutions
Jump to navigation Jump to search

Step 1: Login WHM

Step 2: Search for exim in the search bar and click on Exim Configuration Manager

Step 3: Click on Advanced Editor

Step 4: Go to Section: AUTH and add below lines of code

 smtp2go_login:
 driver = plaintext
 public_name = LOGIN
 client_send = : USERNAME : PASSWORD

Note: Replace the Username and password accordingly

Step 5: Go to Section: ROUTERSTART and add below lines of code

 send_via_smtp2go:
 driver = manualroute
 domains = ! +local_domains
 transport = smtp2go_smtp
 route_list = * mail.smtp2go.com
 host_find_failed = defer
 no_more

Step 6: Go to Section: TRANSPORTSTART and add below lines of code

 smtp2go_smtp:
 driver = smtp
 port = 25
 hosts = mail.smtp2go.com
 hosts_require_auth = <; $host_address
 message_linelength_limit = 99999999

Step 7: Click the Save button. This will restart Exim automatically

Step 8: If Exim does not restart, then restart it manually

 /etc/init.d/exim restart

Step 9: The default installation of cPanel & WHM with Exim accepts emails sent to it (even if they are sent to an email address that doesn’t exist) and then generates its own bounce notification emails. This can (and usually does) lead to problems with sending out backscatter spam. To prevent such potential backscatter spam from happening, select the option Discard the email while your server processes it by SMTP time with an error message under cPanel >> EMAIL >> Default Address. Finally click the Change button

In our case login to the cPanel os Pheonixsolutions > Email Accounts and search for the default system email account then click on manage

Step10: Click on Manage Default Email Address

Step11: Enable the Discard the email while your server processes it by SMTP time with an error message option and click on change