avatar ghost
ghost
8 Jan 2018

Hi,

We are not able to receive emails from our Joomla website anymore. Our website (and Joomla) are hosted on a Microsoft Azure VM.

We have configured SMTP details to one of our google gmail accounts (with "less secure apps" active). The problem only happens with our google account.

We contacted google who say that you need to update the CA certificate.

Please help

Steps to reproduce the issue

  1. Got to Joomal Global Configuration option
  2. Try to send a test email using SMTP settings below:

Host: smtp.gmail.com
Port: 587
Security: STARTTLS

Expected result

  1. I expected to receive the test email

Actual result

  1. Error - Unable to contact SMTP host

System information (as much as possible)

please see attached config files for System and PHP that I downloaded as JSON files from Joomla

JoomlaConfig.zip

Additional comments

  1. I set debug to log 'everything'
  2. I googled the problem in Joomla forum and changed the mail.php setting to temporarily stop checking certificates - see below

Editing file: libraries\joomla\mail\mail.php
Function: useSmtp
Line number approx.: #630
Change the lines:
if ($secure == 'ssl' || $secure == 'tls')
{
$this->SMTPSecure = $secure;
}

To:
if ($secure == 'ssl' || $secure == 'tls')
{
$this->SMTPSecure = $secure;
$this->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
}
3. The above change worked but I need a proper solution.

  1. Attached zip files show logs before and after the above change.

Everything.zip

JoomlaConfig.zip

avatar DJAWatt DJAWatt - open - 8 Jan 2018
avatar infograf768
infograf768 - comment - 8 Jan 2018

You are posting on the wrong github repo.
Please redo on https://issues.joomla.org/

avatar zero-24 zero-24 - change - 8 Jan 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-01-08 18:31:47
Closed_By zero-24
avatar zero-24 zero-24 - close - 8 Jan 2018

Add a Comment

Login with GitHub to post a comment