1 |
On Saturday 19 Dec 2015 10:31:09 jens wefer wrote: |
2 |
> Am Mon, 14 Dec 2015 08:50:29 +0100 |
3 |
> |
4 |
> schrieb jens wefer <jens.wefer@××××××.net>: |
5 |
> > Am Sat, 12 Dec 2015 23:09:20 +0100 |
6 |
> > |
7 |
> > schrieb jens wefer <jens.wefer@××××××.net>: |
8 |
> > > Am Sat, 12 Dec 2015 17:53:04 +0000 |
9 |
> > > |
10 |
> > > schrieb Stroller <stroller@××××××××××××××××××.uk>: |
11 |
> > > > > On Sat, 12 December 2015, at 3:08 a.m., jens wefer |
12 |
> > > > > <jens.wefer@××××××.net> wrote: |
13 |
> > > > > |
14 |
> > > > > I set up a mail server, postfix/dovecot, ssl required. |
15 |
> > > > > test with mail-client, all ok |
16 |
> > > > > when I try to copy mails with imapsync (gentoo) comes timeout, |
17 |
> > > > > and imapsync will login again. |
18 |
> > > > > with each new login, a new process imap-login is generated. |
19 |
> > > > |
20 |
> > > > Sorry if this is a dumb question, but how do you know it's timing |
21 |
> > > > out? |
22 |
> > > > |
23 |
> > > > Could it just be slow, as it has to compile loads of messages in |
24 |
> > > > its first run? |
25 |
> > > > |
26 |
> > > > Looks like dovecot has a 30 minute timeout. [1] |
27 |
> > > > |
28 |
> > > > An old message on the Dovecot mailing list [2] suggests to set |
29 |
> > > > "verbose_proctitle = yes" in config to see why each process is |
30 |
> > > > open. |
31 |
> > > > |
32 |
> > > > It also suggests using high-performance mode, rather that the |
33 |
> > > > default. |
34 |
> > > > |
35 |
> > > > Stroller. |
36 |
> > > |
37 |
> > > timeout comes from imapsync (default timeout 120 sec). |
38 |
> > > after 10 minutes then running 5 Dovecot processes which want 100% |
39 |
> > > CPU time. mail logfile: |
40 |
> > > imap-login: Login: user = .... blablub, TLS ession, .. |
41 |
> > |
42 |
> > I think that's a problem with perl. |
43 |
> > When I send an email with sendEmail comes SSLv3 Aler handshake |
44 |
> > failure. if I use a newer sendEmail version (1.56.5) comes |
45 |
> > Segnentation fault. when I start sendEmail on CentOS is everything ok. |
46 |
> |
47 |
> I send emails with email-client and sendEmail (win/centos). |
48 |
> mail.log |
49 |
> [...]: initializing the server-side TLS engine |
50 |
> [...]: connect from brumw.lxsbbshome.tld[192.168.0.15] |
51 |
> [...]: setting up TLS connection from brumw.lxsbbshome.tld[192.168.0.15] |
52 |
> [...]: brumw.lxsbbshome.tld[192.168.0.15]: TLS cipher list |
53 |
> "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH" [...]: |
54 |
> SSL_accept:before/accept initialization [...]: SSL_accept:SSLv3 read |
55 |
> client hello A [...]: SSL_accept:SSLv3 write server hello A |
56 |
> [...]: SSL_accept:SSLv3 write certificate A |
57 |
> [...]: SSL_accept:SSLv3 write server done A |
58 |
> [...]: SSL_accept:SSLv3 flush data |
59 |
> [...]: SSL_accept:SSLv3 read client certificate A |
60 |
> [...]: SSL_accept:SSLv3 read client key exchange A |
61 |
> [...]: SSL_accept:SSLv3 read certificate verify A |
62 |
> [...]: SSL_accept:SSLv3 read finished A |
63 |
> [...]: brumw.lxsbbshome.tld[192.168.0.15]: Issuing session ticket, key |
64 |
> expiration: 1450478594 [...]: SSL_accept:SSLv3 write session ticket A |
65 |
> [...]: SSL_accept:SSLv3 write change cipher spec A |
66 |
> [...]: SSL_accept:SSLv3 write finished A |
67 |
> [...]: SSL_accept:SSLv3 flush data |
68 |
> [...]: Anonymous TLS connection established from |
69 |
> brumw.lxsbbshome.tld[192.168.0.15]: TLSv1.2 with cipher |
70 |
> AES128-GCM-SHA256 (128/128 bits) [...]: AFC46282149: |
71 |
> client=brumw.lxsbbshome.tld[192.168.0.15] |
72 |
> |
73 |
> when I send email with sendEmail from gentoo-client it comes handshake |
74 |
> error mail.log |
75 |
> [...]: initializing the server-side TLS engine |
76 |
> [...]: connect from robin.lxsbbshome.tld[192.168.0.17] |
77 |
> [...]: setting up TLS connection from robin.lxsbbshome.tld[192.168.0.17] |
78 |
> [...]: robin.lxsbbshome.tld[192.168.0.17]: TLS cipher list |
79 |
> "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH" [...]: |
80 |
> SSL_accept:before/accept initialization [...]: SSL3 alert |
81 |
> write:fatal:handshake failure [...]: SSL_accept:error in error |
82 |
> [...]: SSL_accept:error in error |
83 |
> [...]: SSL_accept error from robin.lxsbbshome.tld[192.168.0.17]: -1 |
84 |
> [...]: warning: TLS library problem: error:1408A10B:SSL |
85 |
> routines:ssl3_get_client_hello:wrong version number:s3_srvr.c:960: |
86 |
> [...]: lost connection after STARTTLS from |
87 |
> robin.lxsbbshome.tld[192.168.0.17] [...]: disconnect from |
88 |
> robin.lxsbbshome.tld[192.168.0.17] ehlo=1 starttls=0/1 commands=1/2 |
89 |
> |
90 |
> sendEmail.log |
91 |
> [...]: DEBUG => Connecting to rosalie.lxsbbshome.tld:25 |
92 |
> [...]: DEBUG => My IP address is: 192.168.0.17 |
93 |
> [...]: DEBUG => evalSMTPresponse() - Checking for SMTP success or error |
94 |
> status in the message: 220 rosalie.lxsbbshome.tld ESMTP Postfix [...]: |
95 |
> DEBUG => evalSMTPresponse() - Found SMTP success code: 220 [...]: |
96 |
> SUCCESS => Received: 220 rosalie.lxsbbshome.tld ESMTP Postfix |
97 |
> [...]: INFO => Sending: EHLO robin.lxsbbshome.tld [...]: DEBUG |
98 |
> => evalSMTPresponse() - Checking for SMTP success or error status in |
99 |
> the message: 250-rosalie.lxsbbshome.tld, 250-PIPELINING, 250-SIZE |
100 |
> 10240000, 250-VRFY, 250-ETRN, 250-STARTTLS, 250-AUTH PLAIN, |
101 |
> 250-ENHANCEDSTATUSCODES, 250-8BITMIME, 250-DSN, 250 SMTPUTF8 [...]: |
102 |
> DEBUG => evalSMTPresponse() - Found SMTP success code: 250 [...]: |
103 |
> SUCCESS => Received: 250-rosalie.lxsbbshome.tld, |
104 |
> 250-PIPELINING, 250-SIZE 10240000, 250-VRFY, 250-ETRN, 250-STARTTLS, |
105 |
> 250-AUTH PLAIN, 250-ENHANCEDSTATUSCODES, 250-8BITMIME, 250-DSN, 250 |
106 |
> SMTPUTF8 [...]: DEBUG => The remote SMTP server supports TLS :) [...]: |
107 |
> DEBUG => Starting TLS [...]: INFO => Sending: STARTTLS [...]: |
108 |
> DEBUG => evalSMTPresponse() - Checking for SMTP success or error status |
109 |
> in the message: 220 2.0.0 Ready to start TLS [...]: DEBUG => |
110 |
> evalSMTPresponse() - Found SMTP success code: 220 [...]: SUCCESS => |
111 |
> Received: 220 2.0.0 Ready to start TLS [...]: ERROR => TLS |
112 |
> setup failed: SSL connect attempt failed because of handshake problems |
113 |
> error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake |
114 |
> failure |
115 |
> |
116 |
> |
117 |
> I've tried various settings but nothing has helped. |
118 |
> |
119 |
> then I install newer version of SSL.pm and SSLeay.pm with cpan, |
120 |
> and use newer version of sendEmail (1.56.5). |
121 |
> |
122 |
> Dec 19 00:50:38 rosalie postfix/smtpd[17390]: Anonymous TLS connection |
123 |
> established from robin.lxsbbshome.tld[192.168.0.17]: TLSv1.2 with |
124 |
> cipher AES128-SHA256 (128/128 bits) Dec 19 00:50:38 rosalie |
125 |
> postfix/smtpd[17390]: E332A2858CC: |
126 |
> client=robin.lxsbbshome.tld[192.168.0.17] Dec 19 00:55:38 rosalie |
127 |
> postfix/smtpd[17390]: timeout after DATA (0 bytes) from |
128 |
> robin.lxsbbshome.tld[192.168.0.17] Dec 19 00:55:58 rosalie |
129 |
> postfix/smtpd[17390]: disconnect from |
130 |
> robin.lxsbbshome.tld[192.168.0.17] ehlo=2 starttls=1 mail=1 rcpt=1 |
131 |
> data=0/1 commands=5/6 |
132 |
> |
133 |
> |
134 |
> Dec 19 00:50:38 robin sendEmail.lucia[1237]: DEBUG => Connecting to |
135 |
> rosalie.lxsbbshome.tld:25 [...] |
136 |
> Dec 19 00:50:38 robin sendEmail.lucia[1237]: SUCCESS => Received: |
137 |
> 220 2.0.0 Ready to start TLS Dec 19 00:50:38 robin |
138 |
> sendEmail.lucia[1237]: DEBUG => TLS: Using cipher: AES128-SHA256 Dec 19 |
139 |
> 00:50:38 robin sendEmail.lucia[1237]: DEBUG => TLS session |
140 |
> initialized :) Dec 19 00:50:38 robin sendEmail.lucia[1237]: INFO => |
141 |
> Sending: EHLO robin.lxsbbshome.tld [...] Dec 19 00:50:38 robin |
142 |
> sendEmail.lucia[1237]: SUCCESS => Received: 250 2.1.5 Ok Dec 19 |
143 |
> 00:50:38 robin sendEmail.lucia[1237]: INFO => Sending: DATA Dec |
144 |
> 19 00:50:38 robin sendEmail.lucia[1237]: DEBUG => evalSMTPresponse() - |
145 |
> Checking for SMTP success or error status in the message: 354 End data |
146 |
> with <CR><LF>.<CR><LF> Dec 19 00:50:38 robin sendEmail.lucia[1237]: |
147 |
> DEBUG => evalSMTPresponse() - Found SMTP success code: 354 Dec 19 |
148 |
> 00:50:38 robin sendEmail.lucia[1237]: SUCCESS => Received: 354 |
149 |
> End data with <CR><LF>.<CR><LF> Dec 19 00:50:38 robin |
150 |
> sendEmail.lucia[1237]: INFO => Sending message body |
151 |
> |
152 |
> handshake ok. |
153 |
> sendEmail hangs, I kill them after 5min. |
154 |
> my use flags on gentoo client and server: |
155 |
> USE="bindist mmx sse sse2 -mysql -mysqli -mssql maildir apache2 gd |
156 |
> vhosts postgres python sasl ssl imap unicode" |
157 |
> what else can I do? |
158 |
|
159 |
It may be a postfix bug, or it may be that gentoo's openssl ciphers are more |
160 |
up to date and won't degrade the connection to SSLv3. Can you check what you |
161 |
get on the transaction with the server using openssl_client? Google for the |
162 |
correct commands to negotiate sending messages using telnet so that you know |
163 |
what to type on the console. |
164 |
|
165 |
-- |
166 |
Regards, |
167 |
Mick |