技術討論區 > LDAP 討論區

[筆記]LDAP服務實做筆記! (二)

<< < (2/7) > >>

日京三子:
檢查你檔案的路徑. 因為你沒有把設定檔案貼上來, 所以光這樣是無法找到原因的.....

cktan981212:
now ok ready...
i forgot to do the authconfig, another thing is i must put this posixAccount as objectClass as well

thanks

cktan981212:
日京三子
do u know how to do postfix+ldap+quota ??
postfix -> LDAP -> quota

i want to control the quota for all of the users by LDAP.

thanks

日京三子:

--- 引述: "cktan981212" ---日京三子
do u know how to do postfix+ldap+quota ??
postfix -> LDAP -> quota

i want to control the quota for all of the users by LDAP.

thanks
--- 引用結尾 ---


道理一樣, 如果你能正常收發信件,應該沒甚麼困難的才對...

cktan981212:
which option should i use in /etc/postfix/main.f

my main.cf:

local_transport = virtual
virtual_mailbox_base = /
virtual_mailbox_maps = ldap:ldapvirtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_minimum_uid = 500
#virtual_mailbox_limit = 0
ldapvirtual_server_host = 127.0.0.1
ldapvirtual_server_port = 389
ldapvirtual_bind = yes
ldapvirtual_bind_dn = cn=Manager, dc=example, dc=com
ldapvirtual_bind_pw = 1234
ldapvirtual_search_base = ou=accounts, ou=postfix, dc=example, dc=com
ldapvirtual_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(|(AccountStatus=active)(accountStatus=shared)))
ldapvirtual_result_attribute = mailMessageStore




mydestination = $myhostname, localhost.$mydomain, localhost, ldap:acceptdomains
acceptdomains_server_host = 127.0.0.1
acceptdomains_server_port = 389
acceptdomains_bind = yes
acceptdomains_bind_dn = cn=Manager,  dc=example, dc=com
acceptdomains_bind_pw = 1234
acceptdomains_search_base = ou=accounts, ou=postfix, dc=example, dc=com
acceptdomains_query_filter = (associatedDomain=*)
acceptdomains_result_attribute = associatedDomain

virtual_maps = ldap:ldapalias
ldapalias_server_host = 127.0.0.1
ldapalias_server_port = 389
ldapalias_bind = yes
ldapalias_bind_dn = cn=Manager, dc=example, dc=com
ldapalias_bind_pw = 1234
ldapalias_search_base = ou=accounts, ou=postfix, dc=example, dc=com
ldapalias_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(|(AccountStatus=active)(AccountStatus=shared)))
ldapalias_result_attribute = mail

message_size_limit = 5242880

virtual_mailbox_limit_maps = ldap:ldapquota
ldapquota_server_host = 127.0.0.1
ldapquota_server_port= 389
ldapquota_bind_dn = cn=Manager, dc=example ,dc=com
ldapquota_bind_pw = 1234
ldapquota_search_base = ou=accounts, ou=postfix, dc=example, dc=com
ldapquota_query_filter = ((objectClass=posixAccount)(mail=%s))(AccountStatus=active))
ldapquota_result_attribute = mailQuotaSize
ldapquota_bind = yes
ldapquota_version = 3
ldapquota_debuglevel = 0


but this virtual_mailbox_limit_maps  seen not a option in main.cf

thanks

導覽

[0] 文章列表

[#] 下頁

[*] 上頁

前往完整版本