Email problem? System slow to create users or complete tests

Email problem? System slow to create users or complete tests

by Stuart Ridout -
Number of replies: 1

Hi,


We've installed Moodle on AWS using a Bitnami build and it's all performing well until one of two scenarios.  

1) We create a new user

2) A user completes a test


When these occur the page takes an age to load and eventually completes.   Both of these actions trigger the sending of an email so I'm wondering if it is related to that.   Our email is on Office 365 so we've set that up as smtp.office365.com:587 for the server name on TLS.   All other settings are as default.

Has anyone else experienced this issue?

Average of ratings: -
In reply to Stuart Ridout

Re: Email problem? System slow to create users or complete tests

by Jamie Kramer -

It could be email, you might be on to something and it is probably worth checking out. During a low activity time, you might want to enable email debugging and perform an action that generates an email. See if there is anything interesting in the SMTP debug output.

I've had experience with folks using office365 in the past, but am not aware of any inherent performance issues with Moodle using it to send email.

If the problem is in fact delay on the SMTP connection to Office 365 mail servers, I wondered if maybe this mail service rate limits connections, or if some specific setting change might be needed on the 365 account. So I did some web searching:

Interesting concept... maybe your Moodle server isn't able to support TLS 1.1, see link:

Regards,

Jamie