General help

 
 
Picture of Jukka Vähäaho
SMTP Error: Could not authenticate.
 

Hi

After upgrading Moodle from 2.2.4 to 2.2.7 sending mail does not work any more. Error message is: Error: lib/moodlelib.php email_to_user(): SMTP Error: Could not authenticate.

PHP was also upgraded from version 5.4.6 to 5.4.10

After upgrade I also converted database from MyISAM to innodb with no errors. 

Everything was ok before upgrade and I haven't changed anything (SMTP-username, password, e-mail server..)

This one does not work:
$mailer->IsSMTP();
and under this line , insert
$mailer->SMTPSecure = "tls";

Any suggestions what to do? 

~ Jukka ~

 

 
Average of ratings: -
Picture of Howard Miller
Re: SMTP Error: Could not authenticate.
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Switch on Debugging and also the option (on the same page) for debugging email sending. Set up a forum post or similar (click 'send now'). Run the cron job by hand, however you normally run it (or just reproduce the fault you have already seen).

Cut and paste whatever you get here.

 
Average of ratings: -
Picture of Jukka Vähäaho
Re: SMTP Error: Could not authenticate.
 

Howard

I think I found the reason. Our mail server doesn't offer authentication type which Moodle needs. Should there be AUTH LOGIN? How did it work with Moodle 2.2.4? Our mail server is Exchange 2010

250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250-XRDST
250 XSHADOW

<br />SMTP -> get_lines(): $data was ""
<br />SMTP -> get_lines(): $str is "504 5.7.4 Unrecognized authentication type
"
<br />SMTP -> get_lines(): $data is "504 5.7.4 Unrecognized authentication type
"
<br />SMTP -> ERROR: AUTH not accepted from server: 504 5.7.4 Unrecognized authentication type

<br />SMTP -> get_lines(): $data was ""
<br />SMTP -> get_lines(): $str is "250 2.0.0 Resetting
"
<br />SMTP -> get_lines(): $data is "250 2.0.0 Resetting
"
<br />SMTP -> FROM SERVER:250 2.0.0 Resetting

<br />SMTP Error: Could not authenticate.
Error: lib/moodlelib.php email_to_user(): SMTP Error: Could not authenticate.
</pre>post 108611: Re: Tehtävä 1
Processing user 10897
Sending <pre>
SMTP -> get_lines(): $data was ""
<br />SMTP -> get_lines(): $str is "221 2.0.0 Service closing transmission channel

Thanks

~ Jukka ~

 
Average of ratings: -
Picture of Ernesto Ottaviano
Re: SMTP Error: Could not authenticate.
 

Hi, I have the same problem in Moodle 2.2.4 after migration to Exchange 2010, ¿did you find any solution?.

Thank you.

 
Average of ratings: -