View Single Post
  #1  
Old 5th December 2012, 00:29
patrick3853 patrick3853 is offline
Member
 
Join Date: Dec 2008
Posts: 30
Thanks: 3
Thanked 7 Times in 3 Posts
Default Courier can't authenticate over SSL

Followed virtual users postfix ubuntu 12.10 guide. I can connect over ports 143 and 110, but 995 and 993 don't work. Seems to be a problem with certificates but i've spent hours on google with no luck.

Telnet on 110 works fine, no errors show up in mail.log:

Code:
telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK Hello there.
Telnet on 995 or 993 doesn't connect:

Code:
telnet localhost 995
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Hangs there and I get the following entry in mail.log when I try connecting over 995 in Thunderbird:

Code:
couriertls: read: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
I created the certificates using mkpop3dcert and mkimapdcert. Contents of
pop3d.cnf:

Code:
RANDFILE = /usr/lib/courier/pop3d.rand

[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no
default_md = sha1

[ req_dn ]
C=US
ST=TN
L=Nashville
O=Courier Mail Server
OU=Automatically-generated POP3 SSL key
CN=myhost.mydomain.com
emailAddress=info@mydomain.com


[ cert_type ]
nsCertType = server
Any ideas? I'm pretty stuck at this point.
Reply With Quote
Sponsored Links