|
Hello
I'm using sympa for mail list and it has two entries in master.cf
sympa unix - n n - - pipe
flags=R user=sympa argv=/usr/bin/queue ${recipient}
sympabounce unix - n n - - pipe
flags=R user=sympa argv=/usr/bin/bouncequeue ${recipient}
Part of main.cf is:
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual,
ldap:/etc/postfix/ldapdistlist.cf,
ldap:/etc/postfix/ldapvirtual.cf,
ldap:/etc/postfix/ldapvirtforward.cf,
pcre:/etc/postfix/sharedfolders.pcre
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport,
ldap:/etc/postfix/ldaptransport.cf, ldap:/etc/postfix/ldapsympatran.cf,
ldap:/etc/postfix/ldapsbountran.cf
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
local_recipient_maps = $virtual_alias_maps, $alias_maps
When mail is sent to test@domain list it will travel trough
ldap:/etc/postfix/ldapsympatran.cf
server_host = ldap://127.0.0.1:389
search_base = dc=err,dc=ee
query_filter =
(&(|(mail=%s)(alias=%s))(objectClass=sympa)(sympaDelivery=sympa))
result_attribute = mail
result_filter = sympa:[%s]
search_timeout = 15
scope = sub
bind = yes
version = 3
Now when mail is bounced it will be sent to test-owner@domain and will
end up
sympabounce but need to be rewrite to test@domain
Is this possible?
|