Cannot send email via SMTP server with self signed certificate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Glenn Walbran |
Bug Description
Mahara uses PHPMailer for sending emails. The default settings for PHPMailer are to disallow mail sending (with TLS) if the server has either a self signed certificate or if peer verification fails. This can also occur when using port 25 if the mail server is configured to require TLS to be started.
In these cases the following mail options will allow the mail to be sent
$mail->SMTPOptions = array(
'ssl' => array(
)
);
To allow Mahara to be used with an external mail server in this case it is proposed to add the following configuration items:
smtpallowselfsigned (default: false)
smtpverifypeer (default: true)
And the above ssl mail options would be set with these new options.
Changed in mahara: | |
assignee: | nobody → Glenn Walbran (glennw) |
status: | New → In Progress |
Changed in mahara: | |
importance: | Undecided → Medium |
Changed in mahara: | |
milestone: | none → 20.10.0 |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/11299