Packages / postsrsd / Debian 12

Install guide · Debian 12 (bookworm)printed 29 Oct 2026, 02:20 UTC

Install PostSRSd 2.4 on Debian 12

Debian 12 ships PostSRSd 1.10. The current release is 2.4.1. freshdeb builds it for bookworm from upstream's release with Debian's packaging, so it replaces the distribution's package in place and updates with apt upgrade like the rest of the system.

Debian 12 ships
1.101.10-2+b1
main
2.4.1follows every upstream release, minors and majors included. Currently 2.4.1.
Built for
amd64 and arm64, natively

1Trust the signing key (once per machine)

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.freshdeb.com/freshdeb-archive-keyring.gpg \
  | sudo tee /etc/apt/keyrings/freshdeb-archive-keyring.gpg >/dev/null

Fingerprint 3BBD F03A 9C0B F890 F8CA 9510 7595 CC55 468F 3161. How to verify.

2Add the source for bookworm

sudo tee /etc/apt/sources.list.d/freshdeb-postsrsd.sources >/dev/null <<EOF
Types: deb
URIs: https://deb.freshdeb.com/postsrsd
Suites: bookworm
Components: main
Signed-By: /etc/apt/keyrings/freshdeb-archive-keyring.gpg
EOF

3Install

sudo apt update && sudo apt install postsrsd
apt policy postsrsd   # expect 2.4.1-2+freshdeb~deb12

Already on Debian 12's PostSRSd? The same command upgrades it: the freshdeb version sorts higher. What's different from Debian's package.

Upgrading from PostSRSd 1.10

What changed between Debian 12's 1.10 and 2.4.1 that you may notice. Configuration and data stay where Debian put them.

Since 2.0
PostSRSd 2 reads /etc/postsrsd.conf instead of /etc/default/postsrsd. The upgrade carries your settings over (domains, secret, separator, hash lengths, user, chroot) and keeps the secret, so addresses 1.x rewrote still reverse. Postfix needs a change the package can't make: 2.x answers socketmap: lookups on /var/spool/postfix/srs instead of tcp: tables on ports 10001 and 10002. In /etc/postfix/main.cf, set sender_canonical_maps = socketmap:unix:srs:forward and recipient_canonical_maps = socketmap:unix:srs:reverse, keep the classes, and reload Postfix. Until then Postfix defers mail and retries it later.

Going back to 1.10

Delete /etc/apt/sources.list.d/freshdeb-postsrsd.sources, run sudo apt update, then sudo apt install postsrsd=1.10-2+b1: apt asks before it downgrades. PostSRSd 1.x reads /etc/default/postsrsd again, which the upgrade leaves in place, and Postfix needs its tcp: lines back.

Why a package

The upstream source builds with CMake, but then the service, the user, the chroot and the AppArmor profile are yours to set up. This is Debian's package, with all of that, at upstream's current release.

PostSRSd elsewhere

Maintained by Blendbyte

Blendbyte builds cloud infrastructure, web apps, and developer tools. We've been shipping software to production for 20+ years.

These packages run in our own stack, which is why we keep them maintained. Issues and PRs get read. Good ones get merged.

Also from Blendbytenginx-modules.com: pre-built nginx dynamic modules (Brotli, GeoIP2, ModSecurity and more) for nginx.org's nginx, on the same Debian and Ubuntu releases.

Tindra: self-hosted error tracking and monitoring that works with Sentry SDKs. Packaged here, like everything else.