於Mandrake 9.2上安裝SASL for postfix

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

於Mandrake 9.2上安裝SASL for postfix

文章 yehlu »

資料來源
http://www.php5.idv.tw/modules.php?mod= ... &shid=2515

於Mandrake 9.2上安裝SASL for postfix
首先檢查套件
rpm -qa |grep sasl

cyrus-sasl-2.1.15-4mdk
libsasl2-plug-crammd5-2.1.15-4mdk
libsasl2-plug-ntlm-2.1.15-4mdk
libsasl2-devel-2.1.15-4mdk
libsasl2-2.1.15-4mdk
libsasl2-plug-anonymous-2.1.15-4mdk
libsasl2-plug-digestmd5-2.1.15-4mdk
libsasl2-plug-login-2.1.15-4mdk
libsasl2-plug-otp-2.1.15-4mdk
libsasl2-plug-sasldb-2.1.15-4mdk
libsasl2-plug-srp-2.1.15-4mdk
libsasl2-plug-gssapi-2.1.15-4mdk
libsasl2-plug-plain-2.1.15-4mdk

作SASL的設定
1.cd /usr/lib/sasl2
2.echo \'pwcheck_method: saslauthd\' > smtpd.conf
3.echo \'mech_list:plain login\' >> smtpd.conf
4.vi /etc/man.config
5.加上 MANPATH /usr/lib/sasl2/man
6.mkdir /usr/lib/sasl2/man
7.vi /etc/rc.d/rc.local
8.加上 /usr/sbin/saslauthd -a shadow
9./etc/rc.d/rc.local
10.service saslauthd start

pam的設定
1. cd /etc/pam.d
2. ln -s imap smtp
3. ln -s imap mail

POSTFIX 的設定
1. vi /etc/postfix/master.cf
將 smtp inet n - y - - smtpd
改為 smtp inet n - n - - smtpd

2.
vi /etc/postfix/main.cf

broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_recipient_restrictions = permit_mynetworks ,permit_sasl_authenticated, check_relay_domains
smtpd_sasl_security_options = noanonymous

啟動&測試

1. /etc/rc.d/init.d/postfix restart
2. telnet localhost 25
3. ehlo localhost

*產生密碼
printf \'testabc\' | mmencode
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

mdk 10.1

文章 yehlu »

RPM 安裝
[root@www postfix]# rpm -qa | grep sasl
libsasl2-plug-plain-2.1.19-5mdk
libsasl2-plug-login-2.1.19-5mdk
libsasl2-2.1.19-5mdk
cyrus-sasl-2.1.19-5mdk

設定檔
/usr/lib/sasl2/smtpd.conf
[root@www sasl2]# cat smtpd.conf
pwcheck_method: saslauthd
mech_list:plain login


要把 main.cf
#smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
關掉才會正常
回覆文章

回到「Mandriva」