diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-07-09 01:23:01 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:52:49 +0200 |
commit | 55e9b2a0ebc87a353f9c9496a77b313e41e47bd4 (patch) | |
tree | 30b5abd316a31688c494f03ee4cd2ae4fccc38f5 /roles/IMAP/templates/etc | |
parent | 368540caee8fff8aa90b1542897188e9f98ac585 (diff) |
Perform the alias resolution and address validation solely on the MX:es.
We can therefore spare some lookups on the MDA, and use static:all
instead.
Diffstat (limited to 'roles/IMAP/templates/etc')
-rw-r--r-- | roles/IMAP/templates/etc/postfix/main.cf.j2 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/roles/IMAP/templates/etc/postfix/main.cf.j2 b/roles/IMAP/templates/etc/postfix/main.cf.j2 index 5758146..5a17fe2 100644 --- a/roles/IMAP/templates/etc/postfix/main.cf.j2 +++ b/roles/IMAP/templates/etc/postfix/main.cf.j2 @@ -45,15 +45,16 @@ recipient_delimiter = + relay_transport = error:5.1.1 Relay unavailable default_transport = error:5.1.1 Transport unavailable -# Virtual transport (the alias resolution is already done by the MX:es) +# Virtual transport (the alias resolution and address validation is +# performed on the MX:es only) virtual_transport = lmtp:unix:private/dovecot-lmtpd lmtp_bind_address = 127.0.0.1 -virtual_mailbox_domains = ldap:$config_directory/virtual/mailbox_domains.cf -virtual_mailbox_maps = ldap:$config_directory/virtual/mailbox.cf -transport_maps = ldap:$config_directory/virtual/transport_content_filter.cf +virtual_mailbox_domains = static:all +virtual_mailbox_maps = static:all +#transport_maps = cdb:$config_directory/transport # Restore the original envelope recipient -relay_domains = $myhostname +relay_domains = recipient_canonical_classes = envelope_recipient recipient_canonical_maps = pcre:$config_directory/recipient_canonical.pcre |