Issue in sending mails from moodle 2.8.5

Issue in sending mails from moodle 2.8.5

by Hemamalini K R -
Number of replies: 4

Installed Moodle 2.8.5 . SMTP Configuration done. Provided SMTP Hosts, User and password.

Checked the values in mdl_config table for stmphosts and supportemail. Cleared Purges. But still mail is not getting trigger. Appreciate your help in this regard. Thanks in advance.


Find the error log below:

2015-09-30 09:47:23 Connection: opening to 172.16.4.11:25, t=10, opt=array (
                                     )
2015-09-30 09:47:23 Connection: opened
2015-09-30 09:47:23 SMTP -> get_lines(): $data was ""
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "220 IMGEXWCNV01.rsimail.rsil.ramco.com Microsoft ESMTP MAIL Service ready at Wed, 30 Sep 2015 15:17:22 +0530
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "220 IMGEXWCNV01.rsimail.rsil.ramco.com Microsoft ESMTP MAIL Service ready at Wed, 30 Sep 2015 15:17:22 +0530
                                     "
2015-09-30 09:47:23 SERVER -> CLIENT: 220 IMGEXWCNV01.rsimail.rsil.ramco.com Microsoft ESMTP MAIL Service ready at Wed, 30 Sep 2015 15:17:22 +0530
2015-09-30 09:47:23 CLIENT -> SERVER: EHLO ttdwarcnv02
2015-09-30 09:47:23 SMTP -> get_lines(): $data was ""
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-SIZE 104857600
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-PIPELINING
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-DSN
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-STARTTLS
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-AUTH
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     250-AUTH
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     250-AUTH
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-8BITMIME
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     250-AUTH
                                     250-8BITMIME
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     250-AUTH
                                     250-8BITMIME
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-BINARYMIME
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     250-AUTH
                                     250-8BITMIME
                                     250-BINARYMIME
                                     "
2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75]
                                     250-SIZE 104857600
                                     250-PIPELINING
                                     250-DSN
                                     250-ENHANCEDSTATUSCODES
                                     250-STARTTLS
                                     250-AUTH
                                     250-8BITMIME
                                     250-BINARYMIME
                                     "


     

Tried to send you an email but failed!

More information about this error

Debug info:
Error code: auth_emailnoemail

Stack trace:

  • line 463 of \lib\setuplib.php: moodle_exception thrown

  • line 106 of \auth\email\auth.php: call to print_error()

  • line 86 of \login\signup.php: call to auth_plugin_email->user_signup()

    Output buffer: 2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250-CHUNKING " 2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75] 250-SIZE 104857600 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-AUTH 250-8BITMIME 250-BINARYMIME 250-CHUNKING " 2015-09-30 09:47:23 SMTP -> get_lines(): $data was "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75] 250-SIZE 104857600 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-AUTH 250-8BITMIME 250-BINARYMIME 250-CHUNKING " 2015-09-30 09:47:23 SMTP -> get_lines(): $str is "250 XEXCH50 " 2015-09-30 09:47:23 SMTP -> get_lines(): $data is "250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75] 250-SIZE 104857600 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-AUTH 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 XEXCH50 " 2015-09-30 09:47:23 SERVER -> CLIENT: 250-IMGEXWCNV01.rsimail.rsil.ramco.com Hello [172.16.5.75] 250-SIZE 104857600 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-AUTH 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 XEXCH50 2015-09-30 09:47:23 CLIENT -> SERVER: AUTH LOGIN 2015-09-30 09:47:23 SMTP -> get_lines(): $data was "" 2015-09-30 09:47:23 SMTP -> get_lines(): $str is "504 5.7.4 Unrecognized authentication type " 2015-09-30 09:47:23 SMTP -> get_lines(): $data is "504 5.7.4 Unrecognized authentication type " 2015-09-30 09:47:23 SERVER -> CLIENT: 504 5.7.4 Unrecognized authentication type 2015-09-30 09:47:23 SMTP ERROR: AUTH command failed: 504 5.7.4 Unrecognized authentication type 2015-09-30 09:47:23 CLIENT -> SERVER: QUIT 2015-09-30 09:47:23 SMTP -> get_lines(): $data was "" 2015-09-30 09:47:23 SMTP -> get_lines(): $str is "221 2.0.0 Service closing transmission channel " 2015-09-30 09:47:23 SMTP -> get_lines(): $data is "221 2.0.0 Service closing transmission channel " 2015-09-30 09:47:23 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel 2015-09-30 09:47:23 Connection: closed 2015-09-30 09:47:23 SMTP connect() failed. </pre>

     

     

Average of ratings: -
In reply to Hemamalini K R

Re: Issue in sending mails from moodle 2.8.5

by Jamie Kramer -

I am not familiar with the specific email service you are using, but the part that sticks out to me in the debug messages is:

 "Unrecognized authentication type"

I recommend first checking with your email provider to see what authentication methods they support. 

In the email message outputs settings page, you should have an option to select "tls" or "ssl" for the SMTP security setting option. In conjunction with that, most email providers with smtp authentication would require you to use port 587. So you would set that port in the SMTP hosts field by adding a :587 to the host. So if my email host is mail.example.com I would put this into the smtp hosts setting:

mail.example.com:587

In my experiences, specifying a port along with either ssl or tls security will work with most email server setups.

smtp email server settings with  port and security option

In reply to Jamie Kramer

Re: Issue in sending mails from moodle 2.8.5

by Hemamalini K R -

Thanks a lot  for your reply. We are using Exchange Server 2007 version.  Wondering if there is any compatibility issue with this Exchange server version.

DB Mail is getting triggered from this server. Only issue is mail trigger from moodle


SMTP Host Name is provided (uses the default port 25)

Authentication type set to NONE

Provided User Name and password.





In reply to Hemamalini K R

Re: Issue in sending mails from moodle 2.8.5

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

If you are getting an authentication error, I suspect that your server is probably looking for an ssl connection as mentioned before...

Otherwise, you might play with your username.  I do not use the full email account or domain\ before the username but perhaps your server is looking for that...

In reply to Hemamalini K R

Re: Issue in sending mails from moodle 2.8.5

by Jamie Kramer -

I think at this point if you have tried both ssl and tls and it still does not work, that you should check with your Exchange administrator. Perhaps Exchange needs to be configured to enable AuthLogin.

Perhaps helpful: http://www.advancedintellect.com/post/2011/03/02/Exchange-2010-and-SMTP-settings.aspx I cannot vouch for the correctness or usefulness of that resource, but it may help in getting on the right track.