Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th January 2006, 00:29
Traxus Traxus is offline
Junior Member
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Courier IMAP & POP without SSL work, but not with SSL.

Hi.
I have setup ISPConfig on a conputer running Suse 10 (this is my first serious go at Linux), following the perfect setup instructions, and proceeded to test. I managed to send a web hosting user mails, and I can download them using POP3 and IMAP to a mail client (Mozilla Suite). It does not work when I try to do the same using POP3S or IMAPS.

As described in the perfect setup, I am using the courier-pop-ssl and courier-imap-ssl daemons for that. Both are started, I double checked that.

"netstat -tap" shows me:
Code:
tcp        0      0 *:imaps                 *:*                     LISTEN                                           4757/couriertcpd
tcp        0      0 *:pop3s                 *:*                     LISTEN                                           5095/couriertcpd
tcp        0      0 *:pop3                  *:*                     LISTEN                                           5180/couriertcpd
tcp        0      0 *:imap                  *:*                     LISTEN                                           4755/couriertcpd
So I assume they are really listening to the correct ports. When Mozilla tries to connect to the server, it just mills a while, and then time-outs and returns that the server was disconnected. In the mail log appear lines like:
Jan 6 00:17:11 mars imapd: Connection, ip=[::ffff:192.168.2.1]
for the attempted imaps connections, simmilar for the pop3s ones.

Has anyone an idea what could be wrong, or give me a hint on the way to the solution? Thank You.
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2006, 00:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Might be a firewall issue. Please post the output of
Code:
iptables -L
Could as well be an issue with the certificates. Please have a look here: http://www.howtoforge.com/forums/showthread.php?t=1168
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 6th January 2006, 07:28
Traxus Traxus is offline
Junior Member
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank You.
I have, following the data out of the give threat, backed up the existing imapd and pop3d certificates, edited both cnf files to generate more correct certificates (with the real name of the mail server), and restarted the two mail daemons. This had not fixed the problem.

Code:
iptables -L
returns
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Last edited by Traxus; 6th January 2006 at 08:21.
Reply With Quote
  #4  
Old 6th January 2006, 10:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Ok, your firewall is not the problem (because it isn't turned on). Did you try to restart Courier and maybe even your whole system?
Aren't there any more precise messages in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 6th January 2006, 11:00
Traxus Traxus is offline
Junior Member
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Related to courier and postfix I know of the "mail" log, which contains informations about the attempted connects and disconnects, but otherwise I am a complete Linux noobie. Are the any other logs I could check, have you any recomendation? Maybe some specific log Courier notes down its actions?

Maybe I should mention that I encountered a bug in the Courier instalation on Suse 10, it does not per default assign the Courier SSL daemons to the correct ports, but to the non SSL ones. In the courier-pop3-ssl and couriter-imap-ssl daemon startup scripts were errors I fixed. I am wondering if anyone got ISPConfig working with courier on the released Suse 10, maybe there are additional glitches in there beside the wrong ports.
Thank You.

PS: I have restarted the system, now I have discovered following rather interesting entries in the mail log:
Code:
Jan  6 11:17:12 mars authdaemond: modules="authuserdb authpam authldap authcustom authpipe", daemons=5
Jan  6 11:17:12 mars authdaemond: Installing libauthuserdb
Jan  6 11:17:12 mars authdaemond: libauthuserdb.so: cannot open shared object file: No such file or directory
Jan  6 11:17:12 mars authdaemond: Installing libauthpam
Jan  6 11:17:12 mars authdaemond: Installation complete: authpam
Jan  6 11:17:12 mars authdaemond: Installing libauthldap
Jan  6 11:17:12 mars authdaemond: libauthldap.so: cannot open shared object file: No such file or directory
Jan  6 11:17:12 mars authdaemond: Installing libauthcustom
Jan  6 11:17:12 mars authdaemond: Installation complete: authcustom
Jan  6 11:17:12 mars authdaemond: Installing libauthpipe
Jan  6 11:17:12 mars authdaemond: Installation complete: authpipe
Jan  6 11:17:22 mars postfix/postfix-script: starting the Postfix mail system
Jan  6 11:17:22 mars postfix/master[5252]: daemon started -- version 2.2.5, configuration /etc/postfix
Another few facts:
"telnet localhost 143" replies:
Code:
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
"telnet localhost 993" replies
Code:
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
Shouldnt a normal telnet to port 993 be straightly rejected?

"openssl s_client -connect localhost:993" replies
Code:
CONNECTED(00000003)
6868:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:494:
The above implies that there is a daemon running on port 993, but its not supporting the SSL protocol? I cannot currently attempt to connect through a client to it, will try that in the later afternoon.

Last edited by Traxus; 6th January 2006 at 12:10.
Reply With Quote
  #6  
Old 6th January 2006, 12:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by Traxus
A complete restart of the system did not help. Related to courier and postfix I know of the "mail" log, which contains informations about the attempted connects and disconnects, but otherwise I am a complete Linux noobie. Are the any other logs I could check, have you any recomendation? Maybe some specific log Courier notes down its actions?
No, no other logs, it's the mail log...

Quote:
Originally Posted by Traxus
Maybe I should mention that I encountered a bug in the Courier instalation on Suse 10, it does not per default assign the Courier SSL daemons to the correct ports, but to the non SSL ones. In the courier-pop3-ssl and couriter-imap-ssl daemon startup scripts were errors I fixed. I am wondering if anyone got ISPConfig working with courier on the released Suse 10, maybe there are additional glitches in there beside the wrong ports.
Thank You.
What did you change in the scripts? The ports are:
993 for IMAPS
995 for POP3S
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Setup... IMAP help??? leon HOWTO-Related Questions 7 7th August 2008 16:17
IMAP doesn't work..as i followed the Perfect Setup for Fedora 4 asokaajay Server Operation 11 10th June 2007 14:57
PostFix and or Courier IMAP question jsb Installation/Configuration 4 10th January 2006 00:46
Cyrus IMAP Configuration ?? kisong Installation/Configuration 20 26th October 2005 17:15
Courier IMAP - when does it delete deleted messages?? hagel Server Operation 3 18th August 2005 23:52


All times are GMT +2. The time now is 20:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.