CMSMailer SMTP stopped working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

CMSMailer SMTP stopped working

Post by janvl »

Hi,

i have several installs where all of a sudden SMTP stopped working.

CMSMS (PHPMailer) says it cannot connect to the SMTP-server.

With plain and simple "Mail" it works.

I have tried the usual suspects, adding https:// to the smtp-server, using the IP-Address.
Checked the password and E-Mail-Address tried port 465 with SSL / 587 with TLS

So far no luck. Strange enough this happens on all installs no matter what server, ubuntu 16.04 or 20.04.
CMSMS 2.2.13 up to 2.2.16 .

Anyone an idea where i should start searching?

Regards,
Jan
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: CMSMailer SMTP stopped working

Post by janvl »

Could it have to do with the version of PHPMailer.
CMSMS has 5.2.22 - from 2017
The newest is 6.6.4

Regards,
Jan
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: CMSMailer SMTP stopped working

Post by janvl »

Hi,

in order to make sure i have all uptodate software i updated to 2.2.16

testing
smtp-Mail (port 465 SSL)
CMSMS 2.2.16 - PHP 7.4
in config.php: $config['permissive_smarty'] = 1;
gives:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting

I will test with PHP 8 on another server.

Regards,
Jan
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: CMSMailer SMTP stopped working

Post by janvl »

Hi

i solved it by using another server as a relay.

I do hope that all will work with the different servers when i have made SPF / DKIM / DMARC records.

Regards,
Jan
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: CMSMailer SMTP stopped working

Post by pwg »

Hi janvi, would you mind sharing how you fixed the issue, as I'm also having problems with a few sites?

Many thanks for any help.

Cheers,

Paul
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: CMSMailer SMTP stopped working

Post by janvl »

Hi,

the smtp-server that you must enter in the cmsmailer must be the identical name that is in rDNS of the linuxserver
where your website is located . . . . it seems.

As i run several servers that i manage myself i checked out where cmsmailer was working with smtp.
Since it is no problem for PHPMailer to use a different server as a relay-server i picked one where it did work.

Today i will test if this will work too with the same server where it used to work.

I hope it helps, otherwise keep in contact it can be solved.

Regards,
Jan
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: CMSMailer SMTP stopped working

Post by janvl »

Hi,

if you take the servername that is listed as rDNS or in "etc/hosts" then it works as expected.

No http or https.

So it must be like "server.mydomain.tld" NOT "https://server.mydomain.tld".
Depending on how the server was named when it was configured.

Otherwise contact your hoster, he can give the right hostname.

For SMTP i use port 465 with SSL, make sure that in your controlpanel there is a certificate for "server.mydomain.tld".

Regards,
Jan
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: CMSMailer SMTP stopped working

Post by pwg »

Hey Jan, thanks so much for the reply and for taking the time to put it together. Really appreciate the effort.
Cheers,
Paul
Post Reply

Return to “CMSMS Core”