net-mail/sendEmail-1.56-r2 not work Apr 24 11:07:50 localhost sendEmail[12579]: ERROR => TLS setup failed: SSL connect attempt failed error:0A0C0103:SSL routines::internal error Reproducible: Always Steps to Reproduce: Following patch correct it: --- old/sendEmail 2025-04-24 11:35:43.041920589 +0200 +++ new/sendEmail 2025-04-24 11:27:12.648150848 +0200 @@ -1903,7 +1903,7 @@ if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) { printmsg("DEBUG => Starting TLS", 2); if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); } - if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1', SSL_verify_mode => 0x00)) { + if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1_3', SSL_verify_mode => 0x00)) { quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1); } printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);
Debian has: * https://sources.debian.org/patches/sendemail/1.56-5.2/fix_ssl_version.patch/ * https://sources.debian.org/patches/sendemail/1.56-5.2/fix_tls_hostname_verification.patch/
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfa22a8d91ee529cd68dfab03f91c73c8cf8ad22 commit dfa22a8d91ee529cd68dfab03f91c73c8cf8ad22 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-05-11 00:16:16 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-05-11 00:17:49 +0000 net-mail/sendEmail: fix runtime w/ newer OpenSSL; verify TLS certs * Crank up TLSv1 -> TLSv3 to support newer OpenSSL (bug #954329, similar to previous bug #698322) * Verify TLS certs (https://bugs.debian.org/1041517) Bug: https://bugs.debian.org/1041517 Bug: https://bugs.gentoo.org/698322 Closes: https://bugs.gentoo.org/954329 Signed-off-by: Sam James <sam@gentoo.org> net-mail/sendEmail/files/1.56-openssl-3.patch | 12 +++++++++ net-mail/sendEmail/files/1.56-verify-mode.patch | 16 ++++++++++++ net-mail/sendEmail/sendEmail-1.56-r4.ebuild | 33 +++++++++++++++++++++++++ 3 files changed, 61 insertions(+)