Hi all,
to the other WHMCS users out there, what settings are you using for SMTP? I have been trying to gte TLS to work, but without luck. Enabling $smtp_debug=‘true’; in config.php I see this:
2017-07-26 08:54:21 Connection: opening to localhost:25, timeout=300, options=array ( )
2017-07-26 08:54:21 Connection: opened
2017-07-26 08:54:21 SMTP -> get_lines(): $data is “”
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "220 mail.domain.com company Mailserver ESMTP "
2017-07-26 08:54:21 SERVER -> CLIENT: 220 mail.domain.com company Mailserver ESMTP
2017-07-26 08:54:21 CLIENT -> SERVER: EHLO company
2017-07-26 08:54:21 SMTP -> get_lines(): $data is “”
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250-mail.domain.com company Mailserver "
2017-07-26 08:54:21 SMTP -> get_lines(): $data is "250-mail.domain.com company Mailserver "
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN "
2017-07-26 08:54:21 SMTP -> get_lines(): $data is "250-mail.domain.com company Mailserver 250-AUTH LOGIN PLAIN "
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250-AUTH=LOGIN PLAIN "
2017-07-26 08:54:21 SMTP -> get_lines(): $data is "250-mail.domain.com company Mailserver 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN "
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250-STARTTLS "
2017-07-26 08:54:21 SMTP -> get_lines(): $data is "250-mail.domain.com company Mailserver 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-STARTTLS "
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250-SIZE 52428800 "
2017-07-26 08:54:21 SMTP -> get_lines(): $data is "250-mail.domain.com company Mailserver 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-STARTTLS 250-SIZE 52428800 "
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250-PIPELINING "
2017-07-26 08:54:21 SMTP -> get_lines(): $data is "250-mail.domain.com company Mailserver 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-STARTTLS 250-SIZE 52428800 250-PIPELINING "
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "250 8BITMIME "
2017-07-26 08:54:21 SERVER -> CLIENT: 250-mail.domain.com company Mailserver 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-STARTTLS 250-SIZE 52428800 250-PIPELINING 250 8BITMIME
2017-07-26 08:54:21 CLIENT -> SERVER: STARTTLS
2017-07-26 08:54:21 SMTP -> get_lines(): $data is “”
2017-07-26 08:54:21 SMTP -> get_lines(): $str is "220 ready for tls "
2017-07-26 08:54:21 SERVER -> CLIENT: 220 ready for tls
2017-07-26 08:54:21 SMTP Error: Could not connect to SMTP host.
2017-07-26 08:54:21 CLIENT -> SERVER: QUIT
2017-07-26 08:54:21 SMTP -> get_lines(): $data is “”
2017-07-26 08:54:21 SMTP -> get_lines(): $str is “”
2017-07-26 08:54:21 SERVER -> CLIENT:
2017-07-26 08:54:21 SMTP ERROR: QUIT command failed:
2017-07-26 08:54:21 Connection: closed
2017-07-26 08:54:21 SMTP Error: Could not connect to SMTP host.
Email Sending Failed - SMTP Error: Could not connect to SMTP host.
But that only tells me, that the server is ready for TLS and that the client “couldn’t connect” As soon as I disable TLS (i.e. send unencrypted) it works. That means all other settings are fine (8 bit encoding, hostname, user, password).
Is anybody using TLS in WHMCS with an Interworx mailserver?
Cheers,
Michael