jubba890 Posted December 3, 2014 Share Posted December 3, 2014 (edited) I opened a ticket with WHMCS's support and they said it was my mail host. I then opened a ticket with my mail host and they said it was WHMCS's support. Long story short, they are blaming each other and at this point, no help to me. I have a server which is running at least 10 applications (mail client, WHMCS and other applications that use mail). My WHMCS when I send mail gives me an error: Could not authenticate. I know the username and password is right because I have the mailbox linked up on my phone and it also sends other emails via PHPMailer on my other applications except WHMCS. WHMCS support sent me a PHP file to test if mail would send via PHPMailer in WHMCS and it did. They said the problem was my hostname (It is named Web, and for 8 months I have had the same hostname) I know this is not the problem but they insist that it is. Any help is much appreciated. With SMTP_debug set to true, I get the following error: SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "220 ESMTP Wed, 19 Nov 2014 18:09:17 -0500: UCE strictly prohibited "SMTP -> get_lines(): $data is "220 ESMTP Wed, 19 Nov 2014 18:09:17 -0500: UCE strictly prohibited "SMTP -> FROM SERVER:220 ESMTP Wed, 19 Nov 2014 18:09:17 -0500: UCE strictly prohibited CLIENT -> SMTP: EHLO smtp.fatcow.com SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] "SMTP -> get_lines(): $str is "250-SIZE 34603008 "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 "SMTP -> get_lines(): $str is "250-8BITMIME "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME "SMTP -> get_lines(): $str is "250-PIPELINING "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING "SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "SMTP -> get_lines(): $str is "250-STARTTLS "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "SMTP -> get_lines(): $str is "250 HELP "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "SMTP -> FROM SERVER:250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP CLIENT -> SMTP: AUTH LOGIN SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "SMTP -> FROM SERVER:334 VXNlcm5hbWU6 CLIENT -> SMTP: c3RvcmVAaW56ZXJuZXR0ZWNobm9sb2dpZXMuY29t SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "SMTP -> FROM SERVER:334 UGFzc3dvcmQ6 CLIENT -> SMTP: U3RvcmUxMyE= SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "235 Authentication succeeded "SMTP -> get_lines(): $data is "235 Authentication succeeded "SMTP -> FROM SERVER:235 Authentication succeeded CLIENT -> SMTP: MAIL FROM: SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250 OK "SMTP -> get_lines(): $data is "250 OK "SMTP -> FROM SERVER:250 OK CLIENT -> SMTP: RCPT TO: SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250 Accepted "SMTP -> get_lines(): $data is "250 Accepted "SMTP -> FROM SERVER:250 Accepted CLIENT -> SMTP: DATA SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "354 Enter message, ending with "." on a line by itself "SMTP -> get_lines(): $data is "354 Enter message, ending with "." on a line by itself "SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself CLIENT -> SMTP: Date: Wed, 19 Nov 2014 18:03:33 -0500 CLIENT -> SMTP: Return-Path: CLIENT -> SMTP: To: WHMCS CLIENT -> SMTP: From: Test CLIENT -> SMTP: Subject: Test CLIENT -> SMTP: Message-ID: <013d92b1ff46d9ed031aaef1dd513b48@smtp.fatcow.com> CLIENT -> SMTP: X-Priority: 3 CLIENT -> SMTP: X-Mailer: PHPMailer 5.2.7 ([url]https://github.com/PHPMailer/PHPMailer/[/url]) CLIENT -> SMTP: MIME-Version: 1.0 CLIENT -> SMTP: Content-Type: text/plain; charset=iso-8859-1 CLIENT -> SMTP: Content-Transfer-Encoding: 8bit CLIENT -> SMTP: CLIENT -> SMTP: Test Message CLIENT -> SMTP: CLIENT -> SMTP: . SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250 OK id=1XrENC-0006YY-Mq "SMTP -> get_lines(): $data is "250 OK id=1XrENC-0006YY-Mq "SMTP -> FROM SERVER:250 OK id=1XrENC-0006YY-Mq CLIENT -> SMTP: QUIT SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "221 walauthsmtp02.yourhostingaccount.com closing connection "SMTP -> get_lines(): $data is "221 walauthsmtp02.yourhostingaccount.com closing connection "SMTP -> FROM SERVER:221 walauthsmtp02.yourhostingaccount.com closing connection Edited December 3, 2014 by jubba890 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 4, 2014 WHMCS Support Manager Share Posted December 4, 2014 Hi, What error do you get in Utilities > Logs > Activity Log at the time of email sending please? 0 Quote Link to comment Share on other sites More sharing options...
jubba890 Posted December 4, 2014 Author Share Posted December 4, 2014 12/04/2014 10:57 Email Sending Failed - SMTP Error: Could not authenticate. (User ID: 1 - Subject: Now Accepting Bitcoin!) admin XX.XX.XX.XX 0 Quote Link to comment Share on other sites More sharing options...
ICTU LTD Posted December 4, 2014 Share Posted December 4, 2014 12/04/2014 10:57 Email Sending Failed - SMTP Error: Could not authenticate. (User ID: 1 - Subject: Now Accepting Bitcoin!) admin XX.XX.XX.XX Hi jubba890, What 'SMTP SSL Type' are you using from the WHMCS backend? Have you selected the correct 'SMTP Port' for the 'SMTP SSL Type' you are using in the backend? Do your other applications that send email use the exact same settings as those selected in WHMCS? Also are you running any firewall such as ConfigServerFirewall? Seen as your 'Activity Log' shows you could not be authenticated maybe your Firewall (if you are using on) is blocking ports! Thanks, Ben. 0 Quote Link to comment Share on other sites More sharing options...
jubba890 Posted December 6, 2014 Author Share Posted December 6, 2014 Hello, I copied all the settings to WHMCS and disabled all firewalls, and the port is also correct but it does not work still. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted December 8, 2014 Share Posted December 8, 2014 have you tried 8bit 465 SSL thats what we have 0 Quote Link to comment Share on other sites More sharing options...
jubba890 Posted December 8, 2014 Author Share Posted December 8, 2014 have you tried 8bit 465 SSL thats what we have Nope, now I am getting a SMTP() cannot connect. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.