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 ?