Hi,
I recently updated my old version of moodle 2.7 up to the
latest 3.7 (2.7->3.1->3.2->3.7). I'm using a dedicated system
(i3-4xxx with AES, 4 GB DDR3, HDD), with ubuntu 18.04 64 bit, kernel 5.0.x, apache 2.4.39, php 7.2 with fast-cgi enabled, mySQL 5.7.26, openSSL 1.1.1c (TLS certificate provided by letsEncrypt and virtual hosting).
I would like to setup automatic email registration and office 365 authentication. I activated the two features with latest version of moodle 3.7.1. Both CAPTCHA and office 365 oauth2 work well, the problem is that moodle does not sent any confirmation email even if it gives positive confirmation either after registration or login with office 365 "An email should have been sent to your address at ...". Moreover, if I repeated the registration or login, moodle says "This account is pending email confirmation."
If I manually register an user and he try to reset his password, moodle sends a recovery email with success. So it do not seems something related to outgoing mail setting. I already read other discussion link and link.
smtpsecure: tls
smtpauthtype: login
smtpuser: myuser@myoffice365domain.com
smtppass: myuser's Password
noreplyaddress: myuser@myoffice365domain.com
supportemail: myuser@myoffice365domain.com
I enabled debugsmtp under debugging, but I do not see any information.
Any idea about this strange behaviour?