From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AFBDF15800A for ; Sun, 22 Dec 2024 23:59:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82822E0870; Sun, 22 Dec 2024 23:58:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E169E0867 for ; Sun, 22 Dec 2024 23:58:53 +0000 (UTC) Message-ID: Date: Mon, 23 Dec 2024 09:58:48 +1000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] strange error using courier-imapd-ssl To: gentoo-user@lists.gentoo.org References: Content-Language: en-US From: Matt Jolly In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 0d12b26f-a27a-4f23-b12f-5dc7bef9910e X-Archives-Hash: 366716837ff0ef724c9555ad2ffd6150 Hi, It's been a while since I dealt with IMAP, but the SSL errors that you're listing here are from the client side. On 23/12/24 07:02, covici@ccs.covici.com wrote: > Dec 22 15:44:10 ccs.covici.com imapd-ssl[1981705]: ip=[::ffff:65.49.1.74], couriertls: accept: error:0A000126:SSL routines::unexpected eof while reading > Dec 22 15:44:25 ccs.covici.com imapd-ssl[1981705]: Connection, ip=[::ffff:65.49.1.72], port=[20427] > Dec 22 15:44:25 ccs.covici.com imapd-ssl[1981705]: ip=[::ffff:65.49.1.72], couriertls: read: error:0A000126:SSL routines::unexpected eof while reading This is happening because your client is not cleanly closing the connection[1]. In OpenSSL you can set the `SSL_OP_IGNORE_UNEXPECTED_EOF` option to pretend that the client cleanly closed the connection. See: https://www.openssl.org/docs/man3.1/man3/SSL_set_options.html Cheers, Matt 1: https://github.com/openssl/openssl/discussions/22690