I am evaluating Scalix as a replacement for our organization's groupware solution. For the most part I am impressed with it's polish though I have a question.
I am trying to get an IMAPS type service up on the box. Frankly I am a little surprised that this feature is not built-in. Be that as it may, It is my understanding that if I use standard stunnel to establish a connection on port 993 and redirect it to port 143 on localhost.
It is also my understanding that I dont have to do anything different on clients such as configuring stunnel on the client (kmail, evolution) and they will continiue to use standard ssl/tls capabilities without me having to touch them.
Are these assumptions correct?
If so, here is my config:
System:
CentOS 2.6.9-42.0.2.EL
STunnel:
stunnel 4.05 on i686-redhat-linux-gnu PTHREAD+LIBWRAP with OpenSSL 0.9.7a Feb 19 2003
Global options
cert = /etc/stunnel/stunnel.pem
ciphers = ALL:!ADH:+RC4:@STRENGTH
debug = 5
key = /etc/stunnel/stunnel.pem
pid = /var/run/stunnel.pid
RNDbytes = 64
RNDfile = /dev/urandom
RNDoverwrite = yes
session = 300 seconds
verify = none
stunnel: imaps.conf:
client=no
key = /etc/stunnel/concerto.key
cert = /etc/stunnel/concerto.crt
setuid = nobody
setgid = nogroup
###Tried Option 1
[imaps]
accept = 993
connect = 143
###Tried Option 2
# [imaps]
# accept = 993
# connect = 127.0.0.1:143
Xinetd.d/imaps:
# default: off
# allows crc checksumming etc.
service imaps
{
port = 993
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/stunnel
server_args = /etc/stunnel/imaps.conf
log_on_failure += USERID
}
What I end up getting is a variety of connections errors when using the following two test connect parameters:
Test #1 for SSL v3:
openssl s_client -ssl3 -connect 192.168.1.10:993
Test #2 for SSL v2:
openssl s_client -ssl2 -connect 192.168.1.10:993
I keep getting errors such as the following:
8471:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:286:
CONNECTED(00000003)
7729:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:286:
CONNECTED(00000003)
7727:error:1407F0E5:SSL routines:SSL2_WRITE:ssl handshake failure:s2_pkt.c:429:
CONNECTED(00000003)
write:errno=104
CONNECTED(00000003)
7006:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:286:
etc.....
I get these errors when I try various modifications in the config. My concern is that I am not generating a proper key / cert for this. A test with kmail showed that imap works however when I switched to SSL it could nto connect.
Any suggestions or references are appreciated.
Sincerely,
Babak