Pretty much as per title, no amount of setting any combination of anythong available works. I have other things on the same host using PHP mail and many many things use my own hosts SMTP servers and I even tried using Gmail SMTP, all with plain SMTP and TLS/SSL and either I have issues with the domain name mismatch for the security (SSL cert for hosts email server is in their name but CC won't connect to their server (een though it is the same server behind their FQDN as is behind mine). Gmail also fails with unable to authenticate and PHP mail() just fails. I've turned debuggin up to 4 and still have nothing useful in the logs. I cannot see what CC is doing.
This is the log when using my own server with TLS which is what I want to do and do do elsewhere (so I know the server works). Just appears CC won't add an exception.
Testing SMTP with TLS - Fail
2023-05-10 20:13:01 Connection: opening to smtp.mydomain.co.uk:2500, timeout=300, options=array()
2023-05-10 20:13:01 Connection: opened
2023-05-10 20:13:01 SMTP INBOUND: "220 smtp3.interdns.co.uk ESMTP"
2023-05-10 20:13:01 SERVER -> CLIENT: 220 smtp3.interdns.co.uk ESMTP
2023-05-10 20:13:01 CLIENT -> SERVER: EHLO www.mydomain.co.uk
2023-05-10 20:13:01 SMTP INBOUND: "250-smtp3.interdns.co.uk"
2023-05-10 20:13:01 SMTP INBOUND: "250-STARTTLS"
2023-05-10 20:13:01 SMTP INBOUND: "250-PIPELINING"
2023-05-10 20:13:01 SMTP INBOUND: "250-8BITMIME"
2023-05-10 20:13:01 SMTP INBOUND: "250-AUTH LOGIN PLAIN"
2023-05-10 20:13:01 SMTP INBOUND: "250 SIZE 26214400"
2023-05-10 20:13:01 SERVER -> CLIENT: 250-smtp3.interdns.co.uk250-STARTTLS250-PIPELINING250-8BITMIME250-AUTH LOGIN PLAIN250 SIZE 26214400
2023-05-10 20:13:01 CLIENT -> SERVER: STARTTLS
2023-05-10 20:13:01 SMTP INBOUND: "220 ready for tls"
2023-05-10 20:13:01 SERVER -> CLIENT: 220 ready for tls
2023-05-10 20:13:01 Connection failed. Error #2: stream_socket_enable_crypto() [<a href='http://docs.php.net/manual/en/function.stream-socket-enable-crypto.php'>function.stream-socket-enable-crypto.php</a>]: Peer certificate CN=`*.interdns.co.uk' did not match expected CN=`smtp.mydomain.co.uk' [/home/switchlec/public_html/admin/pos/classes/PHPMailer/src/SMTP.php line 467]
SMTP Error: Could not connect to SMTP host.
2023-05-10 20:13:01 CLIENT -> SERVER: QUIT
2023-05-10 20:13:01
2023-05-10 20:13:01
2023-05-10 20:13:01
2023-05-10 20:13:01
2023-05-10 20:13:01
2023-05-10 20:13:01 Connection: closed
SMTP connect() failed.
Also possibly related, and would be nice if I could get to the bottom of this error anyway, when using the PHP mail() function (which fails) it gives me this in the error message
Where is it getting the email address from (which is clearly wrong)? I can't seem to find this anywhere.