From c71f1cf51e7f6e8f43b5f7afb1d8a2012fd83259 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 9 Jul 2014 23:28:21 +0200 Subject: Use $virtual_alias_domains not $virtual_mailbox_domains. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quoting postconf(5): smtpd_reject_unlisted_recipient (default: yes) Request that the Postfix SMTP server rejects mail for unknown recipient addresses, even when no explicit reject_unlisted_recipient access restriction is specified. This prevents the Postfix queue from filling up with undeliverable MAILER-DAEMON messages. An address is always considered "known" when it matches a virtual(5) alias or a canonical(5) mapping. […] * The recipient domain matches $virtual_alias_domains but the recipient is not listed in $virtual_alias_maps. * The recipient domain matches $virtual_mailbox_domains but the recipient is not listed in $virtual_mailbox_maps, and $virtual_mailbox_maps is not null. Since we alias everything under special, "invalid", domains (mda.f.o and mailman.f.o), our $virtual_mailbox_maps was null, which led to reject_unlisted_recipient not being triggered for say, "noone@fripost.org". However, replacing $virtual_mailbox_domains with $virtual_alias_domains fits into the second point above. --- roles/lists/files/etc/postfix/virtual/domains.cf | 1 + roles/lists/files/etc/postfix/virtual/mailbox_domains.cf | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 120000 roles/lists/files/etc/postfix/virtual/domains.cf delete mode 120000 roles/lists/files/etc/postfix/virtual/mailbox_domains.cf (limited to 'roles/lists/files/etc/postfix/virtual') diff --git a/roles/lists/files/etc/postfix/virtual/domains.cf b/roles/lists/files/etc/postfix/virtual/domains.cf new file mode 120000 index 0000000..320a970 --- /dev/null +++ b/roles/lists/files/etc/postfix/virtual/domains.cf @@ -0,0 +1 @@ +../../../../../MX/templates/etc/postfix/virtual/domains.cf.j2 \ No newline at end of file diff --git a/roles/lists/files/etc/postfix/virtual/mailbox_domains.cf b/roles/lists/files/etc/postfix/virtual/mailbox_domains.cf deleted file mode 120000 index 05f7ed9..0000000 --- a/roles/lists/files/etc/postfix/virtual/mailbox_domains.cf +++ /dev/null @@ -1 +0,0 @@ -../../../../../MX/templates/etc/postfix/virtual/mailbox_domains.cf.j2 \ No newline at end of file -- cgit v1.2.3