I have a virtual table working in postfix but I would like to equivalent
in exim but I have been struggling for a few weeks now and just can't get
it right and I was wondering if anyone on the list can please point me in
the right direction I am not very good at router writing. I really want to
move off postfix because it seems to corrupt some emails but I need this
router working before I can do so. I am going to inlcude my attempt at
the router and maybe someone can help me further. The special result
attribute is a ldap search url that is extracted and then run to produce
output of a bunch of email addressess that can then be sent to.
Postfix Config that does work
virtual_server_host = ldap.domain.com
virtual_server_port = 389
virtual_search_base = o=msp
virtual_bind = no
virtual_timeout = 30000
virtual_query_filter = (|(mail=%s)(mailAlternateaddress=%s))
virtual_special_result_attribute = mgrpdeliverto
virtual_result_attribute = mail
virtual_domain = domain.com
Exim config that doesn't (it may be completely wrong)
group_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup ldap {ldap://ldap.domain.com/\
o=base?mgrpdeliverto?sub?\
(|(mail=$local_part@$domain)(mailAlternateAddress=$local_part@$domain))}{$value}fail}
condition = ${if match {$local_part}{extract{uid}{$address_data}}}
file_transport = address_file
pipe_transport = address_pipe