Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

241.7. ksmtp-26.08.2

KDE PIM SMTP client library with SASL authentication, for KMail and Akonadi

26.08.2-1 · LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT AND CC0-1.0 · 1.5 SBU · 256.4 KiB, 25 files · 43_toolkits, 211 of 344 · ports/core/mail/ksmtp

Homepage: https://invent.kde.org/pim/ksmtp

KSMTP is the SMTP client library of KDE PIM: a session over plain TCP, STARTTLS or TLS, with KJobs for login and for sending one message. Authentication goes through Cyrus SASL, so every mechanism a SASL plugin provides is offered, XOAUTH2 included where a plugin adds it. kmailtransport sends mail through it, and so KMail and Akonadi’s outgoing mail agent do.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, ki18n, kio, cyrus-sasl.

Required by (1): kmailtransport.

Sources: ksmtp-26.08.2.tar.xz (63.7 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install ksmtp'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKPim6SMTP.so.

Directories: /usr/include/KPim6/KSMTP, /usr/lib/cmake/KPim6SMTP, /usr/share/licenses/ksmtp.

Upstream calls find_package(Sasl2) and then sets its type to REQUIRED, so the configure stops without cyrus-sasl and no switch is needed. The configure also requires KF6KIO and the library links KIOCore, so kio is in depends; the SSL-error prompt itself is left to the application, through the SessionUiProxy it installs.