<div dir="ltr"><div>Yes, IO::Socket::SSL is installed (first trough apt-get and for testing through CPAN). With both versions (also with amavisd 2.7.1 and 2.10), I get the SSL error.</div><div><br></div><div>The problem doesn't happen always. One mail pass amavisd and postfix without error, the other mail stuck in the queue because of the SSL error.</div><div><br></div><div>If I deactivate SSL in amavisd/postfix everything is working fine. But amavis and postfix are running on different machines so I want to use SSL because of security reasons. A slower data throughput with activated SSL would be no problem.</div><div><br></div><div>--</div><div>Seba</div><br><div class="gmail_extra"><br><div class="gmail_quote">2015-02-02 15:58 GMT+01:00 Michael D. Wood <span dir="ltr"><<a href="mailto:mike@itsecuritypros.org" target="_blank">mike@itsecuritypros.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>And you have the perl ssl library installed through cpan?</div><div><br></div><div>IO::Socket::SSL<br><br>Sent from my iPhone</div><div><div class="h5"><div><br>On Feb 2, 2015, at 3:17 AM, Seba <<a href="mailto:free4cd@googlemail.com" target="_blank">free4cd@googlemail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>amavisd line 8392:</div><div><br></div><div><div> if (length($post) > 20) { $post = substr($post,0,15) . '[...]' }</div></div><div><br></div><div>The whole section:</div><div><br></div><div><div> $pre = substr($curr_head,0,pos($curr_head)-length($mid)) if !defined $pre;</div><div> $post = substr($curr_head,pos($curr_head)) if !defined $post;</div><div> if (defined $msg1) {</div><div> chomp($post);</div><div> if (length($mid) > 20) { $mid = substr($mid, 0,15) . '[...]' }</div><div> if (length($post) > 20) { $post = substr($post,0,15) . '[...]' }</div><div> if (length($pre)-length($field_name)-2 > 50-length($post)) {</div><div> $pre = $field_name . ': ...'</div><div> . substr($pre, length($pre) - (45-length($post)));</div><div> }</div></div><div><br></div><div>I've tried to disable the amavisd connection cache but the problem still exists.</div><div><br></div><div>Today, I get this messages in amavisd log:</div><div><br></div><div><div>Feb 2 08:31:46 filter amavis[1680]: (01680-06) (!)FWD from <<a href="mailto:xxxx@gmx.de" target="_blank">xxxx@gmx.de</a>> -> <<a href="mailto:recipient@mydomain.de" target="_blank">recipient@mydomain.de</a>>, 451 4.5.0 From MTA() during fwd-connect (Error upgrading socket to SSL: SSL connect attempt failed with unknown error error:14092110:SSL routines:SSL3_GET_SERVER_HELLO:attempt to reuse session in different context at /usr/sbin/amavisd-new line 7043.): id=01680-06</div><div>Feb 2 08:31:46 filter amavis[1680]: (01680-06) Blocked MTA-BLOCKED {TempFailedInbound}, [212.227.15.19]:55087 [94.217.67.44] <<a href="mailto:xxxx@gmx.de" target="_blank">xxxx@gmx.de</a>> -> <<a href="mailto:recipient@mydomain.de" target="_blank">recipient@mydomain.de</a>>, Queue-ID: C3E4FBFD85, Message-ID: <<a href="mailto:12EC797D-55EE-4B41-A851-0102BFABBAE9@gmx.de" target="_blank">12EC797D-55EE-4B41-A851-0102BFABBAE9@gmx.de</a>>, mail_id: Uy8tbh2N8JxD, Hits: 0, size: 3278, 2138 ms</div></div><div><br></div><div>Line 7043 of amavisd-new:</div><div><br></div><div> %params,<br></div><div><br></div><div>The whole section:</div><div><br></div><div><div> IO::Socket::SSL->start_SSL($sock, SSL_session_cache => $ssl_cache,</div><div> SSL_error_trap =></div><div> sub { my($sock,$msg)=@_; do_log(-2,"Error on socket: %s",$msg) },</div><div> %params,</div><div> ) or die "Error upgrading socket to SSL: ".IO::Socket::SSL::errstr();</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-02 0:35 GMT+01:00 Michael D. Wood <span dir="ltr"><<a href="mailto:mike@itsecuritypros.org" target="_blank">mike@itsecuritypros.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What does amavisd line 8392 say?<br>
<br>
Sent from my iPhone<br>
<br>
> On Feb 1, 2015, at 7:56 AM, Seba <<a href="mailto:free4cd@googlemail.com" target="_blank">free4cd@googlemail.com</a>> wrote:<br>
><br>
> amavisd line 8392<br>
</blockquote></div><br></div>
</div></blockquote></div></div></div></blockquote></div><br></div></div>