答案1
好的,开始工作吧,之前我从错误的角度处理它。这是获胜的配置:
/etc/postfix/main.cf
relay_domains = $mydestination, student.domain.ac.uk
virtual_alias_maps = hash:/etc/postfix/virtual.map, ldap:/etc/postfix/vstudent.map
/etc/postfix/vstudent.map
# postmap /etc/postfix/vstudent.map
server_host = ldap.domain.ac.uk
server_port = 389
bind = no
search_base = dc=domain,dc=ac,dc=uk
query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(businessCategory=student)(eduPersonEntitlement=http://entitlement.domain.ac.uk/gmail))
result_filter = %[email protected]
result_attribute = mail
我希望这能帮助其他遇到同样问题的人。
谢谢 Mike Dixson