No description
Find a file
2023-10-19 23:58:49 +02:00
debian Disable systemd sandbox option MemoryDenyWriteExecute 2022-01-28 00:32:57 +01:00
.gitlab-ci.yml CI testing for Debian Bookworm 2023-10-19 23:58:49 +02:00
.pylintrc Update pylint to v2.16.2 for python3.11 compatibility 2023-10-19 23:31:08 +02:00
cccv-archive-key.gpg Update apt repo key 2023-10-19 23:07:17 +02:00
LICENSE Renaming to uffd-socketmapd and cleanup of Debian package 2021-12-04 01:04:01 +01:00
README.md Remailer support 2022-07-20 19:48:38 +02:00
server.py Renaming to uffd-socketmapd and cleanup of Debian package 2021-12-04 01:04:01 +01:00
test_server.py Remailer support 2022-07-20 19:48:38 +02:00
uffd-socketmapd Remailer support 2022-07-20 19:48:38 +02:00

Socketmap server to integrate uffd mail aliases with postfix

uffd has features that rely on mail aliases. To make those mail aliases work, it provides an API to lookup alias addresses for a given address. uffd-socketmapd uses this API to integrate alias lookup with MTAs that support the socketmap protocol, like sendmail and postfix.

uffd-socketmapd can be run manually. For production deployments, use the provided Debian packages. Add our package mirror to /etc/sources.list:

deb https://packages.cccv.de/uffd bullseye main

Then download cccv-archive-key.gpg and add it to the trusted repository keys in /etc/apt/trusted.gpg.d/. Afterwards run apt update && apt install uffd-socketmapd to install the package.

Set the API url and secret in /etc/uffd-socketmapd-postfix.conf, enable and start uffd-socketmapd-postfix.socket. Then configure Postfix, e.g. by adding the following lines to /etc/postfix/main.cf:

# Note that postfix runs in a chroot (/var/spool/postfix) and paths are
# relative to that!
virtual_alias_maps = socketmap:unix:/uffd-socketmapd.sock:virtual
# Defaults to $virtual_alias_maps, which does not work here, so unset it
virtual_alias_domains =

# Optional: To use uffd's remailer feature, setup address rewriting. Remailer
# recipient addresses will be rewritten in both the envelope (like virtual
# aliases) and the message headers. Make sure that rewriting takes place
# before DKIM signing and that it is only applied to messages from your
# services (see local_header_rewrite_clients).
recipient_canonical_maps = socketmap:unix:/uffd-socketmapd.sock:remailer_canonical
local_header_rewrite_clients = permit_inet_interfaces permit_sasl_authenticated

Note that uffd-socketmapd requires at least uffd v1.2.0!