diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-01-14 05:58:33 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:51:33 +0200 |
commit | 0853c2afdc2ddba11692ef17bb859104d47071e0 (patch) | |
tree | 38060243978193fe71090deee666a70ae9ac21db /roles/MX/templates/etc/postfix/virtual/transport_lists_maps.cf.j2 | |
parent | 677c9e95b331290fe09aa78ddd8fd6896dfce94d (diff) |
Fix catchall resolution.
It has to be performed last, to give a chance to be accepted as a
regular mailbox.
We introduce a new, dedicated, smtpd daemon whose only purpose is to
resolve catch-alls.
Diffstat (limited to 'roles/MX/templates/etc/postfix/virtual/transport_lists_maps.cf.j2')
-rw-r--r-- | roles/MX/templates/etc/postfix/virtual/transport_lists_maps.cf.j2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/MX/templates/etc/postfix/virtual/transport_lists_maps.cf.j2 b/roles/MX/templates/etc/postfix/virtual/transport_lists_maps.cf.j2 new file mode 100644 index 0000000..6a0965f --- /dev/null +++ b/roles/MX/templates/etc/postfix/virtual/transport_lists_maps.cf.j2 @@ -0,0 +1,12 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = base +bind = none +query_filter = (&(|(objectClass=FripostVirtualList)(objectClass=FripostVirtualListCommand))(fvl=%u)) +result_attribute = fvl +{% if 'lists' in group_names %} +result_format = smtpl:[127.0.0.1]:{{ lists.port }} +{% else %} +result_format = smtps:[{{ lists.host }}]:{{ lists.port }} +{% endif %} |