Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52637

Connection to SMTP mail not working with Moodle 3.0 (result of phpmailer update)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.0 regressions, 3.0.1, 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: Messages
    • Testing Instructions:
      Hide

      (difficulty: easy, requires administrator access and access to an SMTP server supporting TLS, even if TLS is mis-configured i.e. not ready for production)

      1. Log in as an administrator
      2. Enable SMTP debugging or install https://moodle.org/plugins/local_mailtest
      3. Configure SMTP settings to use the SMTP server above w/o requiring TLS i.e. do not leave smtphosts empty and set smtpsecure to None
      4. Send a test email and look at the debug output. It should tell you about the TLS being available e.g.:

                                                 250-SIZE 52428800
                                                 250-8BITMIME
                                                 250-PIPELINING
                                                 250-AUTH PLAIN LOGIN
                                            -->  250-STARTTLS <--
                                                 250 HELP
        

        but you should not read about the client asking for TLS i.e. the debug output is missing:

        YYYY-MM-DD hh:mm:ss    CLIENT -> SERVER: STARTTLS
        

      Show
      (difficulty: easy, requires administrator access and access to an SMTP server supporting TLS, even if TLS is mis-configured i.e. not ready for production) Log in as an administrator Enable SMTP debugging or install https://moodle.org/plugins/local_mailtest Configure SMTP settings to use the SMTP server above w/o requiring TLS i.e. do not leave smtphosts empty and set smtpsecure to None Send a test email and look at the debug output. It should tell you about the TLS being available e.g.: 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN --> 250-STARTTLS <-- 250 HELP but you should not read about the client asking for TLS i.e. the debug output is missing: YYYY-MM-DD hh:mm:ss CLIENT -> SERVER: STARTTLS
    • Workaround:
      Hide

      I rolled the version of PHPmailer back to 5.2.7, and it seems to have resolved the issue.

      Show
      I rolled the version of PHPmailer back to 5.2.7, and it seems to have resolved the issue.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull 3.0 Branch:
      m30_MDL-52637_Disable_Automatically_Enabling_TLS_Encryption
    • Pull Master Branch:
      m31_MDL-52637_Disable_Automatically_Enabling_TLS_Encryption

      Description

      SMTP connection for forgotten passwords and new user confirmations is no longer working since updating to Moodle 3.0 from 2.0.x. I have tried all the various settings for SMTP authorization type (as well as changing other settings) on the plugins - message outputs - email page, and consistently either get an error message or fail to trigger an email when testing for forgotten passwords, etc.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/Mar/16