Public bug reported:

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(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
    )
);

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.

** Affects: mahara
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1896554

Title:
  Cannot send email via SMTP server with self signed certificate

Status in Mahara:
  New

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(
          'verify_peer' => false,
          'verify_peer_name' => false,
          'allow_self_signed' => true
      )
  );

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1896554/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to