From 63365fb1a8e100e8e67bdd8470c238b475805bc0 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 12 Mar 2026 12:45:38 +0100 Subject: [PATCH] postfix: document ldap map purposes --- mail-server/postfix.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail-server/postfix.nix b/mail-server/postfix.nix index d131fba..8164c3e 100644 --- a/mail-server/postfix.nix +++ b/mail-server/postfix.nix @@ -219,6 +219,7 @@ let bind_dn = ${cfg.ldap.bind.dn} ''; + # Enforce a mapping between SMTP user and envelope sender address ldapSenderLoginMap = pkgs.writeText "ldap-sender-login-map.cf" '' ${commonLdapConfig} query_filter = ${cfg.ldap.postfix.filter} @@ -233,6 +234,7 @@ let destination = ldapSenderLoginMapFile; }; + # Check whether a recipient address exists, before accepting mail for it ldapVirtualMailboxMap = pkgs.writeText "ldap-virtual-mailbox-map.cf" '' ${commonLdapConfig} query_filter = ${cfg.ldap.postfix.filter}