Ok tried that command and get lot of output concerning certs:carpman wrote:
Cheers, will try that.
Some entries edited for security indicated by 'snip'
Code: Select all
openssl s_client -connect localhost:25 -starttls smtp
CONNECTED(00000003)
depth=0 /C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
verify error:num=7:certificate signature failure
verify return:1
depth=0 /C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
verify return:1
---
Certificate chain
0 s:/C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
i:/C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
---
Server certificate
-----BEGIN CERTIFICATE-----
snip
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
issuer=/C=US/ST=California/L=Santa Barbara/O=Postfix SMTP Server/OU=For Testing Purposes Only/CN=localhost/emailAddress=root@localhost
---
No client certificate CA names sent
---
SSL handshake has read 1375 bytes and written 332 bytes
---
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : DHE-RSA-AES256-SHA
Session-ID: 2C199F14BCA071DAB8DF0D4B902D726D5C9BCABBCC4E56AB1BC26CE7C1D460A2
Session-ID-ctx:
Master-Key: snip
Key-Arg : None
Start Time: 1173957358
Timeout : 300 (sec)
Verify return code: 7 (certificate signature failure)
---
220 mail.publishing.co.uk ESMTP Postfix
DONE
Seems to be problems with the certs with line:
Code: Select all
verify error:num=7:certificate signature failure
No client certificate CA names sent
That said the logs show:
Code: Select all
postfix/smtpd[23999]: TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Nit sure if related but also see this error in logs:
Code: Select all
imapd-ssl: /etc/courier-imap/shared/index: No such file or directory
cheers





