C、安裝Courier-imap
# cd /usr/ports/mail/courier-imap
# make install clean
正確選擇:
安裝完成後,在/etc/rc.conf中加入:
courier_authdaemond_enable=”YES”
courier_imap_pop3d_enable=”YES”
courier_imap_imapd_enable=”YES”
增加上面的內容,作用是在系統開機就啟動courier_imap的功能模塊。
# cd /usr/local/etc/courier-imap
# cp imapd.cnf.dist imapd.cnf
# cp pop3d.cnf.dist pop3d.cnf
# /usr/local/etc/rc.d/courier-authdaemond.sh start
註:此時會在/var/run/authdaemond/下產生socket,如果沒有下面這一步下面的認證無法通過。
# chmod +x /var/run/authdaemond
D、安裝 postfix 和 cyrus-sasl
1、安裝cyrus-sasl
#cd /usr/ports/security/cyrus-sasl2
# make install WITH_AUTHDAEMON=yes
# make clean
創建/usr/local/lib/sasl2/smtpd.conf文件.
#cd /usr/local/lib/sasl2/
#vi smtpd.conf 加入下面內容:
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/run/authdaemond/socket
然後保存退出,至此認證部分基本完成。
重啟伺服器。
以下文章點擊率最高
Loading…