Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954329 - net-mail/sendEmail-1.56-r3 - ERROR => TLS setup failed: SSL connect attempt failed error:0A0C0103:SSL routines::internal error
Summary: net-mail/sendEmail-1.56-r3 - ERROR => TLS setup failed: SSL connect attempt f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-04-24 09:44 UTC by Petr Bahula
Modified: 2025-05-11 00:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Bahula 2025-04-24 09:44:00 UTC
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);
Comment 2 Larry the Git Cow gentoo-dev 2025-05-11 00:18:26 UTC
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(+)