extmail+dovecot+ldap收件

                                  extmail+ldap+dovecot收件

如何用postfix发送邮件相信大家都会,那么怎么用dovecot收邮件呢?

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
#}

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加密

这个设置好了,但是还有一个问题,用户通过web注册用户后,默认的加密是明文,也就是plain,这里我们需要修改

vi webman.cf
SYS_CRYPT_TYPE = ldap-md5
vi webmail.cf 
SYS_CRYPT_TYPE = ldap-md5       使用extmail注册的时候密码会变成md5加密

好了,你现在试试telnet登录,没问题,呵呵!

你可能感兴趣的:(Dovecot,ExtMail,ldap收邮件)