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

110.3. msmtp-1.8.34

SMTP client — sends a message from standard input to an SMTP server

1.8.34-1 · GPL-3.0-or-later · 0.4 SBU · 296.6 KiB, 6 files · 41_system, 732 of 1047 · ports/core/mail/msmtp

Homepage: https://marlam.de/msmtp/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/mail.txt:

The transport. sendmail on this image is a symlink to msmtp, so aerc, cron and a shell script hand a message to one program instead of three settings.

Depends on: gnutls, libidn2, pkgconf.

Required by: no port names it.

Sources: msmtp-1.8.34.tar.xz (453.1 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install msmtp'

build.sh:

./configure \
	--prefix=/usr \
	--sysconfdir=/etc \
	--with-tls=gnutls \
	--with-libidn \
	--without-libgsasl \
	--without-libsecret \
	--without-msmtpd \
	--disable-nls
make
make DESTDIR=$PKG install

install -d "$PKG/usr/sbin"
ln -sf ../bin/msmtp "$PKG/usr/sbin/sendmail"
ln -sf msmtp "$PKG/usr/bin/sendmail"

Programs: msmtp, sendmail.

Directories: /usr/share/licenses/msmtp.