其实SMTP SASL认证进程是可以与courier 认证守护进程使用同一个进程的.因为笔者使用了apt-get 方式安装所以不能实现这样功能.如果你兴趣,可以采用原码安装 [1]
配置 courier
debian:~# cd /etc/courier/ debian:/etc/courier# |
authdaemonrc
debian:/etc/courier# vi authdaemonrc authmodulelist="authldap" version="authdaemond.ldap" |
authldaprc
debian:/etc/courier# cp authldaprc authldaprc.old debian:/etc/courier# vi authldaprc LDAP_SERVER localhost LDAP_PORT 389 LDAP_PROTOCOL_VERSION 3 LDAP_BASEDN ou=postfix, dc=example, dc=net LDAP_BINDDN cn=admin,dc=example, dc=net LDAP_BINDPW chen LDAP_GLOB_UID postfix LDAP_GLOB_GID postfix LDAP_HOMEDIR homeDirectory LDAP_MAILDIR mailbox LDAP_DEFAULTDELIVERY defaultDelivery LDAP_MAILDIRQUOTA quota LDAP_FULLNAME cn #LDAP_CLEARPW clearPassword LDAP_CRYPTPW userPassword LDAP_DEREF never LDAP_TLS 0 注:LDAP_TLS 与Postfix 没关系.它是OpenLDAP认证TLS. |
重新启动 courier-authdaemon
debian:/etc/courier# /etc/init.d/courier-authdaemon start Starting Courier authdaemon: done. debian:/etc/courier# |
debian:/etc/courier# vi pop3d AUTHMODULES="authdaemon" AUTHMODULES_ORIG="authdaemon" DEBUG_LOGIN=3 POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1" POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1" POP3AUTH_TLS="" POP3AUTH_TLS_ORIG="LOGIN PLAIN" PORT=110 ADDRESS=0 TCPDOPTS="-nodnslookup -noidentlookup" POP3DSTART=YES MAILDIRPATH=Maildir |
[1] |
|