Postfix Integrated Solution | ||
---|---|---|
<<< Previous | Postfix + OpenLDAP (Debian) 已完成 2004-9-28 | Next >>> |
其實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] |
|
<<< Previous | Home | Next >>> |
配置 Postfix | Up | amavis (anti-virus, anti-spam) |