How do you get email to use STARTTLS??

How do you get email to use STARTTLS??

by Jeff Wiegley -
Number of replies: 1
I have a new moodle installation that we testing and so far I can't get any students signed up for classes because sending mail isn't working so students can't confirm.

I turned on the debugging and got this:
SMTP -> FROM SERVER:
250-xxx.yyy.zzz Hello www.yyy.zzz [aaa.bbb.ccc.ddd], pleased to meet you
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ETRN
250-STARTTLS
250 HELP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "538 AUTH insecure method refused
"
SMTP -> get_lines(): $data is "538 AUTH insecure method refused
"
SMTP -> ERROR: AUTH not accepted from server: 538 AUTH insecure method refused

I'm pretty sure this is resulting from the mail server not allowing authentication method PLAIN without first having started a TLS session with STARTTLS. This is an incredibly common requirement and I'm tearing my hair out because I can't seem to figure out how to configure moodle to initiate a STARTTLS. There is no "Use SSL/TLS" button on the configuration page, a search for tls in all of the moodle files also fails to yield anything useful.

How do you configure moodle to use STARTTLS when talking to a MTA?

Average of ratings: -