LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2006, 07:29 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
Squirrelmail SSL operation failed


hi

on debian sarge stable, I have postfix with TLS/SASL:
Code:
# cat /etc/postfix/main.cf

biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

myhostname = ext.mydomain.net
mydomain= mydomain.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, $mydomain
smtpd_banner = $myhostname ESMTP Mailserver
mailbox_size_limit = 51200000
message_size_limit = 10240000
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_doma in, permit_sasl_authenticated, reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_address
smtpd_client_restrictions = reject_invalid_hostname, reject_rbl_client relays.o rdb.org
strict_rfc821_envelopes = yes
home_mailbox = Maildir/

# TLS
smtpd_tls_cert_file = /etc/postfix/mail.cert
smtpd_tls_key_file = /etc/postfix/mail.key
smtpd_use_tls = yes
smtpd_enforce_tls = no
smtpd_tls_auth_only = no

# SASL (Simple Authentication and Security Layer)
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtp_sasl_auth_enable = no
broken_sasl_auth_clients = yes

mailbox_command =
recipient_delimiter = +

mynetworks = 127.0.0.0/8 
relayhost =
recipient_delimiter = +
inet_interfaces = all
Code:
ext:/# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.
and I've installed Courier-IMAP/Courier-POP3:

apt-get install courier-imap courier-imap-ssl courier-pop courier-pop-ssl
<- No

Code:
# postconf -e 'home_mailbox = Maildir/'
# postconf -e 'mailbox_command ='
Code:
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.
as IMAP reader I've installed Squirrelmail:
Code:
# cat /etc/squirrelmail/config.php
$provider_uri = 'http://mydomain.net/squirrelmail';
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$imapServerAddress = 'localhost';
$imapPort = 143;
$imap_server_type = 'courier';
$use_imap_tls = true;
$use_smtp_tls = true;
$smtp_auth_mech = 'none';
$imap_auth_mech = 'login';
$optional_delimiter = 'detect';
$pop_before_smtp = false;
$default_folder_prefix = '';
$show_prefix_option = false;
if I do a test now, I'm getting this error:
Code:
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in /usr/share/squirrelmail/src/configtest.php on line 205

Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in /usr/share/squirrelmail/src/configtest.php on line 205

Warning: fsockopen(): failed to activate SSL mode 2 in /usr/share/squirrelmail/src/configtest.php on line 205

 ERROR: Error connecting to SMTP server "localhost:25".Server error: (115) Operation now in progress
knows someone howto solve this problem ?

Last edited by cccc; 09-19-2006 at 10:26 AM.
 
Old 09-18-2006, 06:12 AM   #2
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
I don't think Squirrelmail supports STARTTLS. Have you tried the built in Courier sqwebmail? It's pretty nice. Try:
Code:
http://localhost/cgi-bin/sqwebmail
(You may need to install a courier webmail package, but it may already be installed.)

Last edited by kmoffat; 09-18-2006 at 06:14 AM.
 
Old 09-19-2006, 10:26 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I changed in /etc/squirrelmail/config.php:
Code:
$use_imap_tls = false;
$use_smtp_tls = false;
$default_folder_prefix = 'INBOX.';
and now it seems to work !
 
Old 12-25-2006, 10:37 PM   #4
trotterlg
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Squirrelmail

I fixed the problem by entering 127.0.0.1 as
Primary Interface Alias 0 in the tcpip settings
for the server. Larry
 
Old 01-12-2007, 01:39 AM   #5
poweredbydodge
Member
 
Registered: Oct 2006
Location: Buffalo, NY
Distribution: Servers: Scientific Linux 5.x // Desktops: Fedora Core (latest)
Posts: 110

Rep: Reputation: 15
The same can be accomplished (and possibly easier) by simply running squirrelmail through HTTPS rather than HTTP.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error connecting to IMAP server 111 : Connection refused dolay Linux - Newbie 2 03-02-2010 05:09 AM
Squirrelmail - ERROR : Connection dropped by imap-server. luca2005 Linux - Software 2 06-10-2008 06:25 AM
Squirrelmail: Connection dropped by imap-server debuser Debian 2 11-23-2004 05:10 AM
imap server works using squirrelmail but problems with sylpheed esteeven Linux - Software 6 01-13-2004 03:19 PM
IMAP works but IMAP TLS doesn't under PHP (Horde IMP) theparadigm Linux - Software 0 11-17-2003 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration