[courier-users] SSL problem unsolved with courier 0.56.0

This is a discussion on [courier-users] SSL problem unsolved with courier 0.56.0 within the Courier-Imap forums, part of the Mail Servers and Related category; --===============1903012664== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-19-2007
Daniele Piaggesi
 
Posts: n/a
Default [courier-users] SSL problem unsolved with courier 0.56.0

--===============1903012664==
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"=
>

</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
Hi<br>
<br>
I have to install a new mailserver for my company on a red hat
enterprise linux 5 and I choosed Courier as my suite.<br>
I've builded rpm package with rpmbuild, following Courier website
instructions and I've installed this package:<br>
<br>
courier-authlib-0.59.3-10.rh5Server<br>
courier-authlib-ldap-0.59.3-10.rh5Server<br>
courier-pop3d-0.56.0-1.5Server<br>
courier-webadmin-0.56.0-1.5Server<br>
courier-authlib-devel-0.59.3-10.rh5Server<br>
courier-maildrop-0.56.0-1.5Server<br>
courier-imapd-0.56.0-1.5Server<br>
courier-maildrop-wrapper-0.56.0-1.5Server<br>
courier-0.56.0-1.5Server<br>
courier-ldap-0.56.0-1.5Server<br>
<br>
I've a problem with imap-over-ssl and pop3-over-ssl. I used mkimapdcert
and mkpop3dcert to create my self-signed certs and then I set up
imapd-ssl and pop3d-ssl with <br>
<br>
<b>TLS_PROTOCOL=3DSSL23<br>
<br>
</b>after this thread "[courier-users] SSL problems with courier 0.56.0"<=
br>
<br>
I tried also with<big><br>
<br>
</big><b>SSL_PROTOCOL=3D223<br>
<br>
</b>but in both cases=C2=A0 I have the same error in /var/log/maillog<br>=

<br>
<i>imapd-ssl: couriertls: connect: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number</i><br>
<br>
If i use TLS, instead, i don't have this error.<br>
<br>
Anyone can help me?<br>
<br>
For completeness, print imap-ssl and pop3d-ssl conf here<br>
<br>
Bye Daniele<br>
<br>
<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DIMAPD-SSL=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D<br>
<small>##VERSION: $Id: imapd-ssl.dist.in,v 1.12 2005/07/02 01:13:57
mrsam Exp $<br>
#<br>
# imapd-ssl created from imapd-ssl.dist by sysconftool<br>
#<br>
# Do not alter lines that begin with ##, they are used when upgrading<br>=

# this configuration.<br>
#<br>
#=C2=A0 Copyright 2000 - 2004 Double Precision, Inc.=C2=A0 See COPYING fo=
r<br>
#=C2=A0 distribution information.<br>
#<br>
#=C2=A0 This configuration file sets various options for the Courier-IMAP=

server<br>
#=C2=A0 when used to handle SSL IMAP connections.<br>
#<br>
#=C2=A0 SSL and non-SSL connections are handled by a dedicated instance o=
f
the<br>
#=C2=A0 couriertcpd daemon.=C2=A0 If you are accepting both SSL and non-S=
SL IMAP<br>
#=C2=A0 connections, you will start two instances of couriertcpd, one on =
the<br>
#=C2=A0 IMAP port 143, and another one on the IMAP-SSL port 993.<br>
#<br>
#=C2=A0 Download OpenSSL from <a class=3D"moz-txt-link-freetext" href=3D"=
http://www.openssl.org/">http://www.openssl.org/</a><br>
#<br>
##NAME: SSLPORT:1<br>
#<br>
#=C2=A0 Options in the imapd-ssl configuration file AUGMENT the options i=
n
the<br>
#=C2=A0 imapd configuration file.=C2=A0 First the imapd configuration fil=
e is
read,<br>
#=C2=A0 then the imapd-ssl configuration file, so we do not have to redef=
ine<br>
#=C2=A0 anything.<br>
#<br>
#=C2=A0 However, some things do have to be redefined.=C2=A0 The port numb=
er is<br>
#=C2=A0 specified by SSLPORT, instead of PORT.=C2=A0 The default port is =
port 993.<br>
#<br>
#=C2=A0 Multiple port numbers can be separated by commas.=C2=A0 When mult=
iple port<br>
#=C2=A0 numbers are used it is possibly to select a specific IP address f=
or a<br>
#=C2=A0 given port as "ip.port".=C2=A0 For example, "127.0.0.1.900,192.68=
=2E0.1.900"<br>
#=C2=A0 accepts connections on port 900 on IP addresses 127.0.0.1 and
192.68.0.1<br>
#=C2=A0 The SSLADDRESS setting is a default for ports that do not have<br=
>

#=C2=A0 a specified IP address.<br>
<br>
SSLPORT=3D993<br>
<br>
##NAME: SSLADDRESS:0<br>
#<br>
#=C2=A0 Address to listen on, can be set to a single IP address.<br>
#<br>
# SSLADDRESS=3D127.0.0.1<br>
<br>
SSLADDRESS=3D0<br>
<br>
##NAME: SSLPIDFILE:0<br>
#<br>
# That's the SSL IMAP port we'll listen on.<br>
# Feel free to redefine MAXDAEMONS, TCPDOPTS, and MAXPERIP.<br>
<br>
SSLPIDFILE=3D/var/spool/courier/tmp/imapd-ssl.pid<br>
<br>
##NAME: SSLLOGGEROPTS:0<br>
#<br>
# courierlogger(1) options.<br>
#<br>
<br>
SSLLOGGEROPTS=3D"-name=3Dimapd-ssl"<br>
<br>
##NAME: IMAPDSSLSTART:0<br>
#<br>
# Different pid files, so that both instances of couriertcpd can coexist<=
br>
# happily.<br>
#<br>
# You can also redefine IMAP_CAPABILITY, although I can't<br>
# think of why you'd want to do that.<br>
#<br>
#<br>
# Ok, the following settings are new to imapd-ssl:<br>
#<br>
#=C2=A0 Whether or not to start IMAP over SSL on simap port:<br>
<br>
IMAPDSSLSTART=3DYES<br>
<br>
##NAME: IMAPDSTARTTLS:0<br>
#<br>
#=C2=A0 Whether or not to implement IMAP STARTTLS extension instead:<br>
<br>
IMAPDSTARTTLS=3DYES<br>
<br>
##NAME: IMAP_TLS_REQUIRED:1<br>
#<br>
# Set IMAP_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.<br>
# (this option advertises the LOGINDISABLED IMAP capability, until
STARTTLS<br>
# is issued).<br>
<br>
IMAP_TLS_REQUIRED=3D0<br>
<br>
<br>
################################################## #######################=
<br>
#<br>
# The following variables configure IMAP over SSL.=C2=A0 If OpenSSL is
available<br>
# during configuration, the couriertls helper gets compiled, and upon<br>=

# installation a dummy TLS_CERTFILE gets generated.=C2=A0 courieresmtpd w=
ill<br>
# automatically advertise the ESMTP STARTTLS extension if both
TLS_CERTFILE<br>
# and COURIERTLS exist.<br>
#<br>
# WARNING: Peer certificate verification has NOT yet been tested.=C2=A0
Proceed<br>
# at your own risk.=C2=A0 Only the basic SSL/TLS functionality is known t=
o be<br>
# working. Keep this in mind as you play with the following variables.<br=
>

#<br>
##NAME: COURIERTLS:0<br>
#<br>
<br>
COURIERTLS=3D/usr/lib/courier/bin/couriertls<br>
<br>
##NAME: TLS_PROTOCOL:0<br>
#<br>
# TLS_PROTOCOL sets the protocol version.=C2=A0 The possible versions are=
:<br>
#<br>
# SSL2 - SSLv2<br>
# SSL3 - SSLv3<br>
# TLS1 - TLS1<br>
<br>
#TLS_PROTOCOL=3DSSL3<br>
TLS_PROTOCOL=3DSSL23<br>
<br>
##NAME: TLS_STARTTLS_PROTOCOL:0<br>
#<br>
# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the IMAP
STARTTLS<br>
# extension, as opposed to IMAP over SSL on port 993.<br>
#TLS_STARTTLS_PROTOCOL=3DTLS1<br>
TLS_STARTTLS_PROTOCOL=3DSSL23<br>
<br>
##NAME: TLS_CIPHER_LIST:0<br>
#<br>
# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the<b=
r>
# OpenSSL library.=C2=A0 In most situations you can leave TLS_CIPHER_LIST=
<br>
# undefined<br>
#<br>
# TLS_CIPHER_LIST=3D"ALL:!ADH:RC4+RSA:+SSLv2:@STRENG TH"<br>
<br>
##NAME: TLS_TIMEOUT:0<br>
# TLS_TIMEOUT is currently not implemented, and reserved for future use.<=
br>
# This is supposed to be an inactivity timeout, but its not yet
implemented.<br>
#<br>
<br>
##NAME: TLS_DHCERTFILE:0<br>
#<br>
# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.<b=
r>
# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA<b=
r>
# you must generate a DH pair that will be used.=C2=A0 In most situations=
the<br>
# DH pair is to be treated as confidential, and the file specified by<br>=

# TLS_DHCERTFILE must not be world-readable.<br>
#<br>
# TLS_DHCERTFILE=3D<br>
<br>
##NAME: TLS_CERTFILE:0<br>
#<br>
# TLS_CERTFILE - certificate to use.=C2=A0 TLS_CERTFILE is required for
SSL/TLS<br>
# servers, and is optional for SSL/TLS clients.=C2=A0 TLS_CERTFILE is usu=
ally<br>
# treated as confidential, and must not be world-readable.<br>
#<br>
TLS_CERTFILE=3D/usr/lib/courier/share/imapd.pem<br>
<br>
##NAME: TLS_TRUSTCERTS:0<br>
#<br>
# TLS_TRUSTCERTS=3Dpathname - load trusted certificates from pathname.<br=
>

# pathname can be a file or a directory. If a file, the file should<br>
# contain a list of trusted certificates, in PEM format. If a<br>
# directory, the directory should contain the trusted certificates,<br>
# in PEM format, one per file and hashed using OpenSSL's c_rehash<br>
# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying<br>
# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set<br>
# to PEER or REQUIREPEER).<br>
#<br>
#<br>
# TLS_TRUSTCERTS=3D<br>
<br>
##NAME: TLS_VERIFYPEER:0<br>
#<br>
# TLS_VERIFYPEER - how to verify client certificates.=C2=A0 The possible
values of<br>
# this setting are:<br>
#<br>
# NONE - do not verify anything<br>
#<br>
# PEER - verify the client certificate, if one's presented<br>
#<br>
# REQUIREPEER - require a client certificate, fail if one's not
presented<br>
#<br>
#<br>
TLS_VERIFYPEER=3DNONE<br>
<br>
##NAME: TLS_CACHE:0<br>
#<br>
# A TLS/SSL session cache may slightly improve response for IMAP clients<=
br>
# that open multiple SSL sessions to the server.=C2=A0 TLS_CACHEFILE will=
be<br>
# automatically created, TLS_CACHESIZE bytes long, and used as a cache<br=
>

# buffer.<br>
#<br>
# This is an experimental feature and should be disabled if it causes<br>=

# problems with SSL clients.=C2=A0 Disable SSL caching by commenting out =
the<br>
# following settings:<br>
<br>
TLS_CACHEFILE=3D/var/spool/courier/couriersslcache<br>
TLS_CACHESIZE=3D524288<br>
<br>
##NAME: MAILDIRPATH:0<br>
#<br>
# MAILDIRPATH - directory name of the maildir directory.<br>
#<br>
MAILDIRPATH=3D../Maildir<br>
</small><br>
<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DPOP3D-SSL=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D<br>
<small>##VERSION: $Id: pop3d-ssl.dist.in,v 1.13 2005/07/02 01:13:57
mrsam Exp $<br>
#<br>
# pop3d-ssl created from pop3d-ssl.dist by sysconftool<br>
#<br>
# Do not alter lines that begin with ##, they are used when upgrading<br>=

# this configuration.<br>
#<br>
#=C2=A0 Copyright 2000-2004 Double Precision, Inc.=C2=A0 See COPYING for<=
br>
#=C2=A0 distribution information.<br>
#<br>
#=C2=A0 This configuration file sets various options for the Courier-IMAP=

server<br>
#=C2=A0 when used to handle SSL POP3 connections.<br>
#<br>
#=C2=A0 SSL and non-SSL connections are handled by a dedicated instance o=
f
the<br>
#=C2=A0 couriertcpd daemon.=C2=A0 If you are accepting both SSL and non-S=
SL POP3<br>
#=C2=A0 connections, you will start two instances of couriertcpd, one on =
the<br>
#=C2=A0 POP3 port 110, and another one on the POP3-SSL port 995.<br>
#<br>
#=C2=A0 Download OpenSSL from <a class=3D"moz-txt-link-freetext" href=3D"=
http://www.openssl.org/">http://www.openssl.org/</a><br>
#<br>
##NAME: SSLPORT:0<br>
#<br>
#=C2=A0 Options in the pop3d-ssl configuration file AUGMENT the options i=
n
the<br>
#=C2=A0 pop3d configuration file.=C2=A0 First the pop3d configuration fil=
e is
read,<br>
#=C2=A0 then the pop3d-ssl configuration file, so we do not have to redef=
ine<br>
#=C2=A0 anything.<br>
#<br>
#=C2=A0 However, some things do have to be redefined.=C2=A0 The port numb=
er is<br>
#=C2=A0 specified by SSLPORT, instead of PORT.=C2=A0 The default port is =
port 995.<br>
#<br>
#=C2=A0 Multiple port numbers can be separated by commas.=C2=A0 When mult=
iple port<br>
#=C2=A0 numbers are used it is possibly to select a specific IP address f=
or a<br>
#=C2=A0 given port as "ip.port".=C2=A0 For example, "127.0.0.1.900,192.68=
=2E0.1.900"<br>
#=C2=A0 accepts connections on port 900 on IP addresses 127.0.0.1 and
192.68.0.1<br>
#=C2=A0 The SSLADDRESS setting is a default for ports that do not have<br=
>

#=C2=A0 a specified IP address.<br>
<br>
SSLPORT=3D995<br>
<br>
##NAME: SSLADDRESS:0<br>
#<br>
#=C2=A0 Address to listen on, can be set to a single IP address.<br>
#<br>
# SSLADDRESS=3D127.0.0.1<br>
<br>
SSLADDRESS=3D0<br>
<br>
##NAME: SSLPIDFILE:0<br>
#<br>
#<br>
#<br>
<br>
SSLPIDFILE=3D/var/spool/courier/tmp/pop3d-ssl.pid<br>
<br>
##NAME: SSLLOGGEROPTS:0<br>
#<br>
# courierlogger(1) options.<br>
#<br>
<br>
SSLLOGGEROPTS=3D"-name=3Dpop3d-ssl"<br>
<br>
##NAME: POP3DSSLSTART:0<br>
#<br>
#=C2=A0 Whether or not to start POP3 over SSL on spop3 port:<br>
<br>
POP3DSSLSTART=3DYES<br>
<br>
##NAME: POP3_STARTTLS:0<br>
#<br>
# Whether or not to implement the POP3 STLS extension:<br>
<br>
POP3_STARTTLS=3DYES<br>
<br>
##NAME: POP3_TLS_REQUIRED:1<br>
#<br>
# Set POP3_TLS_REQUIRED to 1 if you REQUIRE STARTTLS for everyone.<br>
# (this option advertises the LOGINDISABLED POP3 capability, until
STARTTLS<br>
# is issued).<br>
<br>
POP3_TLS_REQUIRED=3D0<br>
<br>
##NAME: COURIERTLS:0<br>
#<br>
# The following variables configure POP3 over SSL.=C2=A0 If OpenSSL is
available<br>
# during configuration, the couriertls helper gets compiled, and upon<br>=

# installation a dummy TLS_CERTFILE gets generated.=C2=A0 courieresmtpd w=
ill<br>
# automatically advertise the ESMTP STARTTLS extension if both
TLS_CERTFILE<br>
# and COURIERTLS exist.<br>
#<br>
# WARNING: Peer certificate verification has NOT yet been tested.=C2=A0
Proceed<br>
# at your own risk.=C2=A0 Only the basic SSL/TLS functionality is known t=
o be<br>
# working. Keep this in mind as you play with the following variables.<br=
>

<br>
COURIERTLS=3D/usr/lib/courier/bin/couriertls<br>
<br>
##NAME: TLS_PROTOCOL:0<br>
#<br>
# TLS_PROTOCOL sets the protocol version.=C2=A0 The possible versions are=
:<br>
#<br>
# SSL2 - SSLv2<br>
# SSL3 - SSLv3<br>
# TLS1 - TLS1<br>
<br>
TLS_PROTOCOL=3DSSL23<br>
<br>
##NAME: TLS_STARTTLS_PROTOCOL:0<br>
#<br>
# TLS_STARTTLS_PROTOCOL is used instead of TLS_PROTOCOL for the POP3
STARTTLS<br>
# extension, as opposed to POP3 over SSL on port 995.<br>
#<br>
<br>
TLS_STARTTLS_PROTOCOL=3DSSL23<br>
<br>
##NAME: TLS_CIPHER_LIST:0<br>
#<br>
# TLS_CIPHER_LIST optionally sets the list of ciphers to be used by the<b=
r>
# OpenSSL library.=C2=A0 In most situations you can leave TLS_CIPHER_LIST=
<br>
# undefined<br>
#<br>
# TLS_CIPHER_LIST=3D"ALL:!ADH:RC4+RSA:+SSLv2:@STRENG TH"<br>
<br>
##NAME: TLS_TIMEOUT:0<br>
# TLS_TIMEOUT is currently not implemented, and reserved for future use.<=
br>
# This is supposed to be an inactivity timeout, but its not yet
implemented.<br>
#<br>
<br>
##NAME: TLS_DHCERTFILE:0<br>
#<br>
# TLS_DHCERTFILE - PEM file that stores our Diffie-Hellman cipher pair.<b=
r>
# When OpenSSL is compiled to use Diffie-Hellman ciphers instead of RSA<b=
r>
# you must generate a DH pair that will be used.=C2=A0 In most situations=
the<br>
# DH pair is to be treated as confidential, and the file specified by<br>=

# TLS_DHCERTFILE must not be world-readable.<br>
#<br>
# TLS_DHCERTFILE=3D<br>
<br>
##NAME: TLS_CERTFILE:0<br>
#<br>
# TLS_CERTFILE - certificate to use.=C2=A0 TLS_CERTFILE is required for
SSL/TLS<br>
# servers, and is optional for SSL/TLS clients.=C2=A0 TLS_CERTFILE is usu=
ally<br>
# treated as confidential, and must not be world-readable.<br>
#<br>
TLS_CERTFILE=3D/usr/lib/courier/share/pop3d.pem<br>
<br>
##NAME: TLS_TRUSTCERTS:0<br>
#<br>
# TLS_TRUSTCERTS=3Dpathname - load trusted certificates from pathname.<br=
>

# pathname can be a file or a directory. If a file, the file should<br>
# contain a list of trusted certificates, in PEM format. If a<br>
# directory, the directory should contain the trusted certificates,<br>
# in PEM format, one per file and hashed using OpenSSL's c_rehash<br>
# script. TLS_TRUSTCERTS is used by SSL/TLS clients (by specifying<br>
# the -domain option) and by SSL/TLS servers (TLS_VERIFYPEER is set<br>
# to PEER or REQUIREPEER).<br>
#<br>
#<br>
# TLS_TRUSTCERTS=3D<br>
<br>
##NAME: TLS_VERIFYPEER:0<br>
#<br>
# TLS_VERIFYPEER - how to verify client certificates.=C2=A0 The possible
values of<br>
# this setting are:<br>
#<br>
# NONE - do not verify anything<br>
#<br>
# PEER - verify the client certificate, if one's presented<br>
#<br>
# REQUIREPEER - require a client certificate, fail if one's not
presented<br>
#<br>
#<br>
TLS_VERIFYPEER=3DNONE<br>
<br>
##NAME: TLS_CACHE:0<br>
#<br>
# A TLS/SSL session cache may slightly improve response for long-running<=
br>
# POP3 clients. TLS_CACHEFILE will be automatically created,
TLS_CACHESIZE<br>
# bytes long, and used as a cache buffer.<br>
#<br>
# This is an experimental feature and should be disabled if it causes<br>=

# problems with SSL clients.=C2=A0 Disable SSL caching by commenting out =
the<br>
# following settings:<br>
<br>
TLS_CACHEFILE=3D/var/spool/courier/couriersslcache<br>
TLS_CACHESIZE=3D524288<br>
<br>
##NAME: MAILDIRPATH:0<br>
#<br>
# MAILDIRPATH - directory name of the maildir directory.<br>
#<br>
MAILDIRPATH=3D../Maildir<br>
<br>
</small><br>
<br>
<div class=3D"moz-signature">-- <br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">Daniele
Piaggesi</font></font><br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">--------=
---------------</font></font><br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">System
Administrator</font></font><br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">Pronetic=
s
s.p.a.</font></font><br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">Via E. L=
=2E
Cerva 127/C</font></font><br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">Tel.=C2=A0=
=C2=A0=C2=A0=C2=A0+39.06.51530849</font></font><br>
<font face=3D"serif"><font style=3D"font-size: 11pt;" size=3D"3">Mob.=C2=A0=
=C2=A0+39.328.6176226</font></font><br>
</div>
</body>
</html>



--===============1903012664==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============1903012664==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users

--===============1903012664==--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0