STMP/PHPMailer error: 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail

POSTED ON 15, Aug 2016 By john

If you are trying to configure SMTP mail transport using PHPMailer or other third party scripts, you might encounter this error

SMTP -> FROM SERVER:220-server.yourserver.com ESMTP Exim 4.80.1 #2 Thu, 05 Sep 2013 14:23:57 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -> FROM SERVER: 250-server.yourserver.com Hello server.yourserver.com [63.247.66.231] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP SMTP -> ERROR: Password not accepted from server: 535 Incorrect authentication data SMTP -> FROM SERVER:250 Reset OK

To fix this issue, you will need to login to your WHM account as root. If you do not have this access, contact your hosting provider for instructions and assistance.

Navigate to Home »Server Configuration »Tweak Settings

Adjust the following parameters:


Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak) - Off
Prevent “nobody” from sending mail - On
Allow users to relay mail if they use an IP address through which someone has validated an IMAP or POP3 login within the last hour (Pop-before-SMTP)  - On
Add X-PopBeforeSMTP header for mail sent via POP-before-SMTP - On

Save your settings. This will reload the mail server and you should be all set!


About john

John is a co-founder and a lead developer at A&M Digital Technologies. He is tech enthusiast who has a vast experience with server and client side web development. Favorite languages are PHP, JavaScript and Python. Frameworks include Laravel, CodeIgnitor, Meteor and Flask. He has also served as a database administrator and helicopter mechanic with the U.S military. In his hard to come by free time, he enjoying learning violin, travelling and site seeing and catching up with movies. Check his fb and linked-in profile for more...

Comments