From c79f18ff9a04a7534dba3c288bc9606f17786b16 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 2 Dec 2013 23:46:01 +0100 Subject: Rename the role 'mx' into 'MX'. Other abreviations are upper case. --- roles/MX/files/etc/postfix/virtual/alias_catchall_maps.cf | 7 +++++++ roles/MX/files/etc/postfix/virtual/alias_maps.cf | 6 ++++++ roles/MX/files/etc/postfix/virtual/lists_maps.cf | 7 +++++++ roles/MX/files/etc/postfix/virtual/mailbox_domains.cf | 8 ++++++++ roles/MX/files/etc/postfix/virtual/mailbox_maps.cf | 8 ++++++++ roles/MX/files/etc/postfix/virtual/reserved_maps.pcre | 5 +++++ roles/MX/files/etc/postfix/virtual/reserved_transport_maps | 2 ++ roles/MX/files/etc/postfix/virtual/transport_lists_maps.cf | 11 +++++++++++ 8 files changed, 54 insertions(+) create mode 100644 roles/MX/files/etc/postfix/virtual/alias_catchall_maps.cf create mode 100644 roles/MX/files/etc/postfix/virtual/alias_maps.cf create mode 100644 roles/MX/files/etc/postfix/virtual/lists_maps.cf create mode 100644 roles/MX/files/etc/postfix/virtual/mailbox_domains.cf create mode 100644 roles/MX/files/etc/postfix/virtual/mailbox_maps.cf create mode 100644 roles/MX/files/etc/postfix/virtual/reserved_maps.pcre create mode 100644 roles/MX/files/etc/postfix/virtual/reserved_transport_maps create mode 100644 roles/MX/files/etc/postfix/virtual/transport_lists_maps.cf (limited to 'roles/MX/files/etc') diff --git a/roles/MX/files/etc/postfix/virtual/alias_catchall_maps.cf b/roles/MX/files/etc/postfix/virtual/alias_catchall_maps.cf new file mode 100644 index 0000000..c405f47 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/alias_catchall_maps.cf @@ -0,0 +1,7 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvd=%d,ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = base +bind = none +query_filter = (&(ObjectClass=FripostVirtualDomain)(fvd=%d)(fripostOptionalMaildrop=*)) +result_attribute = fripostOptionalMaildrop diff --git a/roles/MX/files/etc/postfix/virtual/alias_maps.cf b/roles/MX/files/etc/postfix/virtual/alias_maps.cf new file mode 100644 index 0000000..9265d0b --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/alias_maps.cf @@ -0,0 +1,6 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = base +query_filter = (&(ObjectClass=FripostVirtualAlias)(fvl=%u)) +result_attribute = fripostMaildrop diff --git a/roles/MX/files/etc/postfix/virtual/lists_maps.cf b/roles/MX/files/etc/postfix/virtual/lists_maps.cf new file mode 100644 index 0000000..b60dcf6 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/lists_maps.cf @@ -0,0 +1,7 @@ +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)(fripostLocalAlias=%u#%d)) +result_attribute = fripostLocalAlias diff --git a/roles/MX/files/etc/postfix/virtual/mailbox_domains.cf b/roles/MX/files/etc/postfix/virtual/mailbox_domains.cf new file mode 100644 index 0000000..22d6be3 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/mailbox_domains.cf @@ -0,0 +1,8 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvd=%s,ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = base +bind = none +query_filter = (&(ObjectClass=FripostVirtualDomain)(fvd=%s)) +result_attribute = fvd +result_format = OK diff --git a/roles/MX/files/etc/postfix/virtual/mailbox_maps.cf b/roles/MX/files/etc/postfix/virtual/mailbox_maps.cf new file mode 100644 index 0000000..dc97177 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/mailbox_maps.cf @@ -0,0 +1,8 @@ +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=FripostVirtualUser)(fvl=%u)) +result_attribute = fvl +result_format = OK diff --git a/roles/MX/files/etc/postfix/virtual/reserved_maps.pcre b/roles/MX/files/etc/postfix/virtual/reserved_maps.pcre new file mode 100644 index 0000000..58572d1 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/reserved_maps.pcre @@ -0,0 +1,5 @@ +# These reserved aliases will always be redirected to us and the domain +# owner. +# TODO: check 'postmaster+test@fripost.org' +/^(?:postmaster|abuse)(?:\+.*)?@fripost\.org$/ admin@fripost.org +/^((?:postmaster|abuse)(?:\+.*)?)@/ $1 diff --git a/roles/MX/files/etc/postfix/virtual/reserved_transport_maps b/roles/MX/files/etc/postfix/virtual/reserved_transport_maps new file mode 100644 index 0000000..dce8710 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/reserved_transport_maps @@ -0,0 +1,2 @@ +abuse reserved-alias: +postmaster reserved-alias: diff --git a/roles/MX/files/etc/postfix/virtual/transport_lists_maps.cf b/roles/MX/files/etc/postfix/virtual/transport_lists_maps.cf new file mode 100644 index 0000000..9a7bca0 --- /dev/null +++ b/roles/MX/files/etc/postfix/virtual/transport_lists_maps.cf @@ -0,0 +1,11 @@ +# Despite the index on 'fripostLocalAlias' it's a bit more inefficient, +# but more precise, than the alternative of using regexes here, and a +# plain hash on the list managers' side. +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = sub +bind = none +query_filter = (&(|(ObjectClass=FripostVirtualList)(ObjectClass=FripostVirtualListCommand))(fripostLocalAlias=%s)) +result_attribute = fripostLocalAlias +result_format = smtp:[127.0.0.1]:2345 -- cgit v1.2.3