Bug 488405

Summary: Kontact/Kmail can no longer send email org.kde.pim.ksmtp: SMTP Socket error
Product: [Frameworks and Libraries] ksmtp Reporter: Félim Whiteley <felim>
Component: generalAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: grave CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Félim Whiteley 2024-06-12 09:18:17 UTC
SUMMARY
Upgrade from 
kpim6-ksmtp:amd64 (24.02.2-0xneon+22.04+jammy+release+build28, 24.05.0-0xneon+22.04+jammy+release+build29)
Broke mail sending. Receiving woirks fine.

STEPS TO REPRODUCE
1. Send an email using SMTP in a previously wokring machine
2. Upgrade the packages
3. Can no longer send email with an error.

OBSERVED RESULT
Running Kontact from a terminal you get the following
org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::ConnectionRefusedError "Connection refused"


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-35-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600X Six-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Comment 1 Jeffrey Bouter 2024-06-12 21:36:32 UTC
Can confirm, emails remain stuck in outbox. Happens on OpenSUSE Tumbleweed, ksmtp-24.05.0-1.1.x86_64
Comment 2 Jeffrey Bouter 2024-06-16 17:27:18 UTC
Nevermind, I can no longer reproduce this issue on OpenSUSE Tumbleweed (ksmtp-24.05.0-1.1.x86_64)
Comment 3 Félim Whiteley 2024-06-24 09:12:15 UTC
Update today 2024-06-24

kpim6-ksmtp:amd64 (24.05.0-0xneon+22.04+jammy+release+build29, 24.05.1-0xneon+22.04+jammy+release+build30)

Still an issue:

org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::ConnectionRefusedError "Connection refused"
Comment 4 Félim Whiteley 2024-06-24 09:24:16 UTC
Just to make sure it wasn't a config file that was mangled I reset the password in Kmail for that account. No luck, but receiving works fine.
Comment 5 Félim Whiteley 2024-06-24 12:02:44 UTC
Ok solved it, after looking at the sending settings in kmail for the 50003rd time spotted it had changed the outgoing STARTTLS port to 587, it should be 25 for me mail server. So not sure where or how that has taken place, but it did during the first upgrade.