From 40ecc9de640b40a0175238fcff9929adfe537493 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 13 Jul 2014 00:54:21 +0200 Subject: Verify the validity of users before that of aliases. --- roles/MX/templates/etc/postfix/main.cf.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'roles/MX') diff --git a/roles/MX/templates/etc/postfix/main.cf.j2 b/roles/MX/templates/etc/postfix/main.cf.j2 index 09c37d9..476178a 100644 --- a/roles/MX/templates/etc/postfix/main.cf.j2 +++ b/roles/MX/templates/etc/postfix/main.cf.j2 @@ -58,10 +58,9 @@ virtual_transport = error:5.1.1 Virtual transport unavailable virtual_alias_domains = !cdb:$config_directory/virtual/transport ldap:$config_directory/virtual/domains.cf virtual_alias_maps = pcre:$config_directory/virtual/reserved_alias.pcre - # first we do the alias resolution... - ldap:$config_directory/virtual/alias.cf - # ...and unless there is matching mailbox/list... + # unless there is a matching user/alias/list... ldap:$config_directory/virtual/mailbox.cf + ldap:$config_directory/virtual/alias.cf ldap:$config_directory/virtual/list.cf # ...we resolve alias domains and catch alls ldap:$config_directory/virtual/alias_domains.cf -- cgit v1.2.3