常見問題 登入
搜尋 個人資料
會員列表 會員群組
登入檢查您的私人訊息
會員註冊
Sendmail + SASL
發表新主題   回覆主題
UnixCafe 首頁 » BSD BBS » Sendmail + SASL
上一篇主題 :: 下一篇主題  
發表人 內容
juan
Site Admin


註冊時間: 2004-03-31
文章: 54
來自: Taiwan

 發表 發表於: 星期三 九月 26, 2007 5:47 pm    文章主題: Sendmail + SASL
引言回覆

1, 先安裝 /usr/ports/security/cyrus-sasl2

2, 再編輯 /etc/make.conf
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

3, cd /usr/src/usr.sbin/sendmail
如果有 make buildworld 過的話, 請先 make clean,
然後 make && make install

4, 在 /etc/mail/{host_name}.mc 後面加這三行
dnl The following lines are used to enable CYRUS-SASL function
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl

5, 然後去/etc/mail底下 make clean ; make all install ; make restart

_________________
This is Juan (https://juan.tw)
I'd like to be a teardrop,
To be born in your eye,
To live my life on your cheek,
And on your lips to die.
 回頂端 »
檢視會員個人資料 發送私人訊息 參觀發表人的個人網站 雅虎訊息通 MSN Messenger ICQ 號碼
juan
Site Admin


註冊時間: 2004-03-31
文章: 54
來自: Taiwan

 發表 發表於: 星期四 十月 04, 2007 2:21 pm    文章主題:
引言回覆

還少了一個 port 要安裝

#cd /usr/ports/security/cyrus-sasl2-saslauth
#make install
#/usr/local/etc/rc.d/saslauthd start

安裝並啟動後
記得修改 /etc/rc.conf 加上

saslauthd_enable="YES"

讓saslauthd 可以在開機後自動啟動

_________________
This is Juan (https://juan.tw)
I'd like to be a teardrop,
To be born in your eye,
To live my life on your cheek,
And on your lips to die.
 回頂端 »
檢視會員個人資料 發送私人訊息 參觀發表人的個人網站 雅虎訊息通 MSN Messenger ICQ 號碼
從之前的文章開始顯示:   
UnixCafe 首頁 » BSD BBS » Sendmail + SASL
發表新主題   回覆主題 所有的時間均為 台北時間 (GMT + 8 小時)
1頁(共1頁)

 
前往:  
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票
You cannot attach files in this forum
You cannot download files in this forum




Solaris phpBB theme/template by Jakob Persson
Copyright © Jakob Persson 2003



Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group
正體中文語系由 phpbb-tw 維護製作