Skip to content
Snippets Groups Projects
Commit 1513c062 authored by putro's avatar putro
Browse files

fixed recipients with aliases

parent a24dbff3
Branches
No related tags found
No related merge requests found
......@@ -86,8 +86,7 @@ postscreen_cache_map = lmdb:${data_directory}/postscreen_cache
relay_domains = ${indexed}domains cdb:/etc/postfix/domains-auto
relay_recipient_maps =
${indexed}virtual,
${ldap}recipients,
${ldap}aliases,
${ldap}all-recipients,
${indexed}transport,
${indexed}mailman_transport
......
......@@ -39,11 +39,11 @@ smtpd_timeout = 1200s
# "smtp" transport for outbound mail (bounces, ...). The latter
# won't starve the former of delivery agent slots.
relay_domains = ${indexed}domains cdb:/etc/postfix/domains-auto
relay_recipient_maps = ${ldap}recipients ${ldap}aliases ${indexed}virtual ${indexed}transport ${indexed}mailman_transport
relay_recipient_maps = ${ldap}all-recipients ${indexed}virtual ${indexed}transport ${indexed}mailman_transport
relay_destination_recipient_limit = 1
# Send each message to its target backend.
transport_maps = ${ldap}recipients ${indexed}transport ${indexed}mailman_transport
transport_maps = ${ldap}all-recipients ${indexed}transport ${indexed}mailman_transport
# Message size limit.
message_size_limit = 15000000
......
# LDAP query resolving valid mailbox users
{% include "ldap.base.j2" %}
search_base = {{ postfix_ldap_base }}
query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=virtualMailUser)(|(status=active)(status=temporary)(status=readonly)))
scope = sub
result_attribute = host
result_format = relay:[%s.mail-backend.{{ domain }}]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment