Source: postfix Version: 3.5.1-1 Severity: normal Tags: patch Dear Maintainer,
README.Debian provides incomplete instructions for SMTP generic mapping. If the instructions as currently written are followed, the generic mappings will not work. The instructions do not specify how to load the lookup tables file ('/etc/postfix/generic_mapping' in the given example). I am attaching a patch that completes the instructions to specify how to load the lookup tables file for SMTP generic mapping. -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.5.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
>From d1a321e66f1bedaace7ebab6c71e36e5076f8877 Mon Sep 17 00:00:00 2001 From: Cody Brownstein <cbrownst...@liquidityllc.com> Date: Wed, 29 Apr 2020 14:24:48 -0700 Subject: [PATCH] Fix instructions wrt SMTP generic mapping --- debian/README.Debian | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/README.Debian b/debian/README.Debian index 2a9f02e3..cf0b9429 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -204,6 +204,14 @@ delivery of the mail via SMTP. Create an arbitrarily named file (e.g., with 'host.domain' taken from '/etc/mailname'. +After creating the file, run the command: + +postmap /etc/postfix/generic_mapping + +and add the following line to main.cf: + +sender_generic_maps = hash:/etc/postfix/generic_mapping + One advantage to using generic over canonical mapping is that the latter will be applied to local mail as well. If the system will be configured to send all mail, even mail addressed to local users, via the smarthost (e.g., via -- 2.26.2