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

241.8. kmailtransport-26.08.2

KDE PIM library that configures mail transports and sends mail over SMTP

26.08.2-1 · LGPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause AND CC0-1.0 AND MIT · 1.7 SBU · 985.6 KiB, 48 files · 43_toolkits, 213 of 344 · ports/core/mail/kmailtransport

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

KMailTransport is the KDE PIM library that keeps the list of outgoing mail servers and sends a message through one of them. It holds the transport settings, the job that hands a message to a transport, the configuration dialogs, and an SMTP plugin built on ksmtp that also signs in to Gmail and Outlook accounts over OAuth (Gmail’s tokens through libkgapi). kmail, kdepim-runtime’s mail dispatcher, korganizer’s invitations, kalarm’s email alarms and the other PIM modules that send mail link it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, kconfigwidgets, kcoreaddons, ki18n, kio, kwidgetsaddons, ksmtp, libkgapi, qtkeychain.

Required by (15): akonadi-calendar, akonadi-import-wizard, kalarm, kdepim-addons, kdepim-runtime, kleopatra, kmail, kmail-account-wizard, korganizer, libksieve, mailcommon, merkuro, messagelib, pim-data-exporter, pim-sieve-editor.

Sources: kmailtransport-26.08.2.tar.xz (197.6 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 kmailtransport'

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: libKPim6MailTransport.so.

Directories: /usr/include/KPim6/MailTransport, /usr/lib/cmake/KPim6MailTransport, /usr/share/licenses/kmailtransport.

Transport passwords are stored through qtkeychain. Upstream finds it without REQUIRED but marks it TYPE REQUIRED, and ecm_feature_summary(… FATAL_ON_MISSING_REQUIRED_PACKAGES) stops the configure when it is missing, so no flag is needed. qtkeychain stores secrets through the freedesktop Secret Service, which the session’s ksecretd from kwallet serves. When the Secret Service cannot take a password, the library offers to keep it in the transport’s configuration file, obscured but not encrypted.

The library links KF6::Wallet only when some other package has already defined that target, and nothing this configure finds does, so the build has no KWallet link and needs no kwallet at build time.