General developer forum

SMTP provider deprecated TLSv1.0

 
Picture of Nezamuddin Ansari
SMTP provider deprecated TLSv1.0
 

Hi Team,

We are using Moodle 3.1 and our SMTP provider has deprecated TLSv1.0 so I need to switch on TLSv1.1 or higher.  I try to change in below files

lib/phpmailer/class.smtp.php - function startTls() line no 334

lib/horde/framework/Horde/Socket/Client.php - function startTls() line no 123

Mail has started but resets password link going with SMTP provider server URL on mail. We also checked with Moodle 3.5, its working fine. 


Please suggest what changes I have to do for Moodle 3.1

Thanks

Nezam








 
Average of ratings: -
Picture of Matteo Scaramuccia
Re: SMTP provider deprecated TLSv1.0
Core developersParticularly helpful MoodlersPlugin developers

Hi Nezamuddin,
what are the PHP version of the two envs?

TLS v1.x support availability depends first on the PHP version.

HTH,
Matteo

 
Average of ratings: -
Picture of Nezamuddin Ansari
Re: SMTP provider deprecated TLSv1.0
 

Thanks, Matteo for the quick reply.

Please find below the required details

PHP Version - 5.6.36-1
ubuntu16.04.1

Registered Stream Socket Transports - tcp, udp, unix, udg, ssl, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
FYI
SMTP - Spark Post - 
https://www.sparkpost.com/docs/tech-resources/tlsv1-0-test-hostname/


Thanks
 
Average of ratings: -
Picture of Deependra Singh
Re: SMTP provider deprecated TLSv1.0
 

Hi All,

I also facing the same issue with my Moodle 31 after deprecated TLSv1.0 by the sparkpost.

I have update the code with TLSv1.1 . After that forget passowrd link not provide same as in the previous.

Previous: link http://moodle316.com/login/forgot_password.php?token=ARUJfwD3kw17zzAAMUoQPF14kWp3tWeF 

After Upgrade:

Current link: http://post.spmailtechnol.com/f/a/QyHgD0qTV03DxJTFBIdiLg~~/AACecQA~/RgRdOvMqP0RNaHR0cDovL2 (not same as i got but i am not find my site url as i previously got here.).

PHP version 5.6

Please help.


Thanks in advance. 


 
Average of ratings: -
Picture of Nezamuddin Ansari
Re: SMTP provider deprecated TLSv1.0
 

Thanks to all, 

The Issue has been resolved, with Spark Post SMTP, we have to pass in the header to ignore click tracking.


 $x_msys_api = array(
        'options' => array(
           'click_tracking' => false
        )
    );
  $mail->addCustomHeader('X-MSYS-API', json_encode($x_msys_api));

Thanks
Nezam

 
Average of ratings: -