SMTP Auth problems - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community Archive (https://community.mybb.com/forum-106.html) +--- Forum: Archived Forums (https://community.mybb.com/forum-143.html) +---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html) +----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html) +------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html) +------ Thread: SMTP Auth problems (/thread-145913.html) |
SMTP Auth problems - david.steadson - 2013-09-25 Hi, Like many people over the years I'm having trouble with MyBB sending email, due to issues with SMTP Auth. I've tried both SMTP Mail and PHP Mail. Both work fine if I turn AUTH off on my mail server (hmailserver). Neither work if I turn it on. I need it turned on. Joomla is handling SMTP Auth just fine. Looking at the mail server log files (hmailserver) it appears that MyBB is never responding to the AUTH request - Quote:"SMTPD" 6852 4066739 "2013-09-25 22:28:37.361" "127.0.0.1" "SENT: 220 mx-2.tribetech.net ESMTP" Here's a similar request from a Joomla install on the same machine - Quote:"SMTPD" 6852 4066740 "2013-09-25 22:33:23.971" "127.0.0.1" "SENT: 220 mx-2.tribetech.net ESMTP" (emails and passwords redacted) As you can see, Joomla gets the AUTH LOGIN response and answers accordingly. MyBB ignores it and is clearly not parsing the output correctly. One issue is line 285 of smtp.php which looks for "250-AUTH" when "250 AUTH" is also a legitimate response. Matching for 250.AUTH doesn't appear to help. People seem to have been having issues with this for years, it would be nice if we could solve it in the code once and for all. I'll keep digging, help appreciated. ETA: Might be an issue with trailing spaces. I changed line 285 and 286 of smtp.php from
to
and SMTP authentication works! |