ZhangHuangbin 写道:可否将以下两个文件里的 LDAP query 语句贴一下,
. . . .
/etc/postfix/ldap/sender_bcc_maps_domain.cf
/etc/postfix/ldap/sender_bcc_maps_user.cf
除CentOS7.3的 bind_dn及search_base 多出 dc=sub ,其他
在CentOS6.8 及 CentOS7.3 兩台內容格式皆一樣,
# cat /etc/postfix/ldap/sender_bcc_maps_domain.cf
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=mydomain,dc=com
bind_pw = VXXXXXXXXXXXXXXXXXXXXXXXX
search_base = o=domains,dc=mydomain,dc=com
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
result_attribute= domainSenderBccAddress
debuglevel = 0
# cat /etc/postfix/ldap/sender_bcc_maps_user.cf
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=mydomain,dc=com
bind_pw = VXXXXXXXXXXXXXXXXXXXXXXXX
search_base = ou=Users,domainName=%d,o=domains,dc=mydomain,dc=com
scope = one
query_filter = (&(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(objectClass=mailUser)(accountStatus=active)(!(domainStatus=disabled))(enabledService=mail)(enabledService=senderbcc))
result_attribute= userSenderBccAddress
debuglevel = 0
ps: 我的iRedMail 版本号:為0.9.6 , 我寫錯了(0.6.0)