於Mandrake 9.2上安裝SASL for postfix
發表於 : 2004-04-15 18:15:38
資料來源
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
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