problem with transport map and LDAP

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

problem with transport map and LDAP

Alar Sing-3

I'm using sympa for mail list and it has two entries in

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 is:

canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps =  hash:/etc/postfix/virtual,
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport,
ldap:/etc/postfix/, ldap:/etc/postfix/,
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

server_host = ldap://
search_base = dc=err,dc=ee
query_filter =
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?