extmail+dovecot+ldap收件

                                  extmail+ldap+dovecot收件web

如何用postfix發送郵件相信你們都會,那麼怎麼用dovecot收郵件呢?dom

vi /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:/home/domains/%d/%n/Maildir
mail_uid = domains
mail_gid = domains
first_valid_uid = 600


vi /etc/dovecot/conf.d/10-auth.conf
#!include auth-system.conf.ext    註釋掉系統認證
!include auth-ldap.conf.ext


vi /etc/dovecot/conf.d/auth-ldap.conf.ext
#userdb {                                        註釋掉,只留下passdb
#  driver = ldap
#  args = /etc/dovecot/dovecot-ldap.conf.ext
#}
ide

vi /etc/dovecot/dovecot-ldap.conf.ext
hosts = 127.0.0.1                        
dn =  cn=Manager,dc=westos.org
dnpass = westos
auth_bind = yes
ldap_version = 3
base = o=extmailAccount,dc=westos.org
deref = never
scope = subtree
pass_attrs = mail,userPassword
pass_filter = (&(objectClass=extmailUser)(mail=%u)(active=1))
default_pass_scheme = MD5
                      由於extmail是md5加密post

這個設置好了,可是還有一個問題,用戶經過web註冊用戶後,默認的加密是明文,也就是plain,這裏咱們須要修改ui

vi webman.cf
SYS_CRYPT_TYPE = ldap-md5
vi webmail.cf 
SYS_CRYPT_TYPE = ldap-md5       使用extmail註冊的時候密碼會變成md5加密加密

好了,你如今試試telnet登陸,沒問題,呵呵!spa

相關文章
相關標籤/搜索