In postfix and dovecot i am only able to connect to ports 25 (SMTP), 110 (POP3) and 143 (IMAP), others such as 465 (SMTPS), 587 (SMTP TLS), 993 (IMAPS) and 995 (POP3S) i am unable to connect with mail clients (used roundcubemail and mail app).
I have also test with telnet at localhost, and those ports was not open, except 587.
It seems obvious that i am having a problem with SSL and TLS but i cannot figure out how can i solve this with OpenSSL that came by default at Server App 3 (I am using also OSX 10.9.5).
doveconf -n: http://pastebin.com/bB2nacy8
I discover that i had to use,
openssl s_client -connect :
to connect to IMAPS and POP3S ports, and with 587 i can connect but it shows this error after and closes:
CONNECTED(00000003) 21821:error:140770FC:SSL routines:SSL23_X_HELLO:unknown protocol:/SourceCache/OpenSSL098/OpenSSL098-52.8.4/src/ssl/s23_clnt.c:618:
I can also connect to HTTPS port and use it without problem.
It is my first time using certificates and seems a bit confuse for someone who have never used this before.