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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.0 regressions, 3.0.1, 3.0.2
    • 3.0.3
    • Messages
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • m31_MDL-52637_Disable_Automatically_Enabling_TLS_Encryption
    • 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.
    • 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

    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.

      Attachments

        Issue Links

          Activity

            People

              matteo Matteo Scaramuccia
              ddsmall Dennis Small
              cameron1729 cameron1729
              David Monllaó David Monllaó
              Mark Nelson Mark Nelson
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Mar/16