Page 1 of 1

cmsms mail and smtp - what settings

Posted: Fri Apr 16, 2021 1:17 pm
by janvl
Hi,

i wanted to use smtp for the systemwide mailer but cannot get it to work.
cmsms 2.2.15

I have tried all combinations of ports 587 and 465 - encryption with tls and ssl.
authentication with mail users that are functioning with thunderbird.

Hostname mail.domain.tld and domain.tls with and without https://

I saw that phpmailer is used, i use the same version in a "handmade form" and
even the copied settings do not work in CMSMS.

I get "SMTP connect failed".

Anyone any idea what i oversee?

Regards,
Jan

Re: cmsms mail and smtp - what settings

Posted: Fri Apr 16, 2021 2:42 pm
by DIGI3
There shouldn't be any special tricks, I would dig into logs or ask your host to see if they can check where the connection failure is coming from.

Re: cmsms mail and smtp - what settings

Posted: Fri Apr 16, 2021 2:56 pm
by janvl
Thanks,
i should have thought of that, i am the host.
I run this server with ispconfig.

regards,
Jan

Re: cmsms mail and smtp - what settings

Posted: Sun Apr 18, 2021 9:29 pm
by janvl
Hi
I get an error:
AH01071: Got error 'PHP message: PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/clients/client1/web50/web/lib/phpmailer/class.smtp.php on line 368', referer: https://stajl.nl/

When i check in https://www.digicert.com/help/
everything is OK

Line 368 is - $crypto_method

// enable encrypted connection
if (!stream_socket_enable_crypto(
$this->smtp_conn,
true,
$crypto_method
))

That is probably something for the PHPMailer people.
I will look into that.

Regards,
Jan

Re: cmsms mail and smtp - what settings

Posted: Thu May 06, 2021 3:39 pm
by janvl
I am looking at the latest PHPMailer to see if this one does not make problems.
Will take some time.
Jan