Problem on setting delivery server with SSL/TLS

Rocky Rocky

New Member
Hello,
I have some problems on setting delivery server with SSL/TLS Protocol.

1.When I choose Protocol TLS with port 465/587/2525
(when i change the port,i set already in pmta config file,and restarted pmta service)
When I validate the server,
I got error message as below:

Code:
Here is a transcript of the error message:
Expected response code 220 but got code "500", with message "500 5.5.1 command unknown in "STARTTLS"
"
Log data:
++ Starting Swift_SmtpTransport
<< 220 server1.mydomain.com ESMTP service ready
>> EHLO server1.mydomain.com
<< 250-server1.mydomain.com says hello
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250-8BITMIME
250-AUTH CRAM-MD5 PLAIN LOGIN
250-AUTH=CRAM-MD5 PLAIN LOGIN
250-XACK
250-SIZE 0
250-VERP
250 DSN
>> STARTTLS
<< 500 5.5.1 command unknown in "STARTTLS"
!! Expected response code 220 but got code "500", with message "500 5.5.1 command unknown in "STARTTLS"
" (code: 500)
Log data:
++ Starting Swift_SmtpTransport
<< 220 server1.mydomain.com ESMTP service ready
>> EHLO server1.mydomain.com
<< 250-server1.mydomain.com says hello
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250-8BITMIME
250-AUTH CRAM-MD5 PLAIN LOGIN
250-AUTH=CRAM-MD5 PLAIN LOGIN
250-XACK
250-SIZE 0
250-VERP
250 DSN
>> STARTTLS
<< 500 5.5.1 command unknown in "STARTTLS"
!! Expected response code 220 but got code "500", with message "500 5.5.1 command unknown in "STARTTLS"
" (code: 500)
!! Expected response code 220 but got code "500", with message "500 5.5.1 command unknown in "STARTTLS"
"
Log data:
++ Starting Swift_SmtpTransport
<< 220 server1.mydomain.com ESMTP service ready
>> EHLO server1.mydomain.com
<< 250-server1.mydomain.com says hello
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250-8BITMIME
250-AUTH CRAM-MD5 PLAIN LOGIN
250-AUTH=CRAM-MD5 PLAIN LOGIN
250-XACK
250-SIZE 0
250-VERP
250 DSN
>> STARTTLS
<< 500 5.5.1 command unknown in "STARTTLS"
!! Expected response code 220 but got code "500", with message "500 5.5.1 command unknown in "STARTTLS"
" (code: 500) (code: 500)
2. Protocol SSL with 465/587/2525 , error message:
Code:
Connection could not be established with host 12.34.56.789 [ #0]
Log data:
++ Starting Swift_SmtpTransport
!! Connection could not be established with host 12.34.56.789 [ #0] (code: 0)
I am using VPS:
CentOS6.5
Nginx
PHP 5.6.22(cli)
Mysql 5.1
PMTA
MailWizz 1.3.6.5

openssl (in phpinfo)

OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1e-fips 11 Feb 2013
OpenSSL Header Version OpenSSL 1.0.1e-fips 11 Feb 2013
Openssl default config /etc/pki/tls/openssl.cnf


Also tried change hostname to IP,searched forum and google, and i still can't fix it.

Could anybody help? Thanks a lot!
 

twisted1919

Administrator
Staff member
Your server advertises following protocols:
250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250-8BITMIME 250-AUTH CRAM-MD5 PLAIN LOGIN 250-AUTH=CRAM-MD5 PLAIN LOGIN 250-XACK 250-SIZE 0 250-VERP 250 DSN
So there's no STARTTLS there, thus your server does not support the starttls command, most likely you have to explicitly enable it.
 
Top