Specific Email Question related to SMTP - PLEASE HELP!
Hi all,
I am a Wordpress developer and have been stuck on this problem for a few days now...
Problem - My client was not receiving emails from their contact form through WP. The contact form successfully sends to my gmail account.
My Solution - I installed the fluentSMPT plugin & configured SMPT through zeptomail. Everything should be setup successfully (I do this for clients all the time in my full time job - the only difference is we don't use cPanel for hosting) but when I submit the test email this is the log I get:
SMTP Debug:
2024-03-02 19:37:34 Connection: opening to smtp.zeptomail.com:587, timeout=300, options=array()
2024-03-02 19:37:34 Connection: opened
2024-03-02 19:37:34 SERVER -> CLIENT: 220-mi3-sr109.supercp.com ESMTP Exim 4.96.2 #2 Sat, 02 Mar 2024 14:37:34 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2024-03-02 19:37:34 CLIENT -> SERVER: EHLO domainname.net
2024-03-02 19:37:34 SERVER -> CLIENT: 250-mi3-sr109.supercp.com Hello domainname.net [66.198.240.47]250-SIZE 78643200250-8BITMIME250-PIPELINING250-PIPECONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
2024-03-02 19:37:34 CLIENT -> SERVER: STARTTLS
2024-03-02 19:37:34 SERVER -> CLIENT: 220 TLS go ahead
2024-03-02 19:37:34 Connection failed. Error #2: stream_socket_enable_crypto(): Peer certificate CN=`*.supercp.com' did not match expected CN=`smtp.zeptomail.com' [/public_html/wp-includes/PHPMailer/SMTP.php line 476] SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): Peer certificate CN=`*.supercp.com' did not match expected CN=`smtp.zeptomail.com'
2024-03-02 19:37:34 CLIENT -> SERVER: QUIT
2024-03-02 19:37:34
2024-03-02 19:37:34 Connection: closed SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): Peer certificate CN=`*.supercp.com' did not match expected CN=`smtp.zeptomail.com'
I was able to get a temporary solution for now, but I would really like to use zeptomail and have a consistent process here for future clients. My question is why/how do I stop cPanel from interfering with this? Does it matter that my client uses GoDaddy for other email hosting? I don't have any email hosting setup in cPanel.
Thank you to anyone who can help me or shed some light on this!
-
You'll be best to contact the web hosting provider (possibly GoDaddy - although the supercp.com domain name appears to belong to A2Hosting) for assistance as this is something distinct to that configuration.
Based on the error messages, it looks like when your site tries to connect to Zohomail it is somehow being redirected to supercp.com - and that is failing the TLS validation (as it should). When I try connecting to smtp.zeptomail.com on port 587 manually I do get the "220 mx.zohomail.com SMTP Server ready ...." banner.
Working on the assumption the site is hosted by A2Hosting, I did find their help article at https://www.a2hosting.com/kb/getting-started-guide/setting-up-e-mail/using-external-smtp-servers-to-send-e-mail/ which states:
You cannot use external SMTP servers to send e-mail messages if you have one of the following hosting packages:
-
Web hosting (Startup, Drive, Turbo Boost, or Turbo Max)
-
Reseller hosting
-
Managed WordPress hosting
It'll be best to contact them (if the site is hosted with A2Hosting) via their help desk at https://my.a2hosting.com/ to confirm which settings you should be using.
0 -
-
rbairwell The domain provider is GoDaddy, but yes the reseller hosting I use is A2.
It's strange how they don't allow external SMTP to send messages but I was able to accomplish the same thing with SendGrid... Maybe it's a slightly different process - this kind of extends beyond my expertise.Anyways, I have contacted A2 thanks to your message to see if there was any futher info they could provide. I didn't even think to check A2 for this.
Have a great day & thank you again!
0
Please sign in to leave a comment.
Comments
2 comments