濮阳杆衣贸易有限公司

主頁 > 知識(shí)庫 > freebsd9.2配置postfix的smtp認(rèn)證步驟(圖解)

freebsd9.2配置postfix的smtp認(rèn)證步驟(圖解)

熱門標(biāo)簽:信陽外呼系統(tǒng)廠家 赤峰防封電銷卡 地圖標(biāo)注多個(gè)城市 駐馬店電話自動(dòng)外呼系統(tǒng)怎么樣 南京自動(dòng)外呼系統(tǒng)有哪些 北海智能電銷機(jī)器人公司 地圖標(biāo)注山峰最低高度 地圖標(biāo)注與注記總結(jié) 人工電銷和ai機(jī)器人的區(qū)別

1:卸載sendmail

cd /usr/ports/mail/sendmail

make deinstall

make clean

2:安裝postfix

cd /usr/ports/mail/postfix

make config #開啟pcre,SASL2,BDB etc..

make install clean

安裝時(shí)候會(huì)同時(shí)安裝cyrus-sasl2庫,選擇配置時(shí)候選上BDB等..

安裝時(shí)還會(huì)提示是否替換系統(tǒng)默認(rèn)的mail程序,此處替換,因?yàn)橐呀?jīng)卸載sendmail

Would you like to activate Postfix in /etc/mail/mailer.conf [n]? Y

3:如果沒有提示安裝cyrus-sasl2庫,則需要自己手動(dòng)安裝,配置同上圖

cd /usr/ports/security/cyrus-sasl2

make install clean

4.安裝cyrus-sasl2-saslauthd程序,選擇配置時(shí)候選上BDB

cd /usr/ports/security/cyrus-sasl2-saslauthd

make install clean

添加一個(gè)系統(tǒng)用戶 test,測(cè)試認(rèn)證是否正常

testsaslauthd -u test -p pasword 命令測(cè)試時(shí),失敗提示: 0:NO “authentication failed” 成功則提示0: OK “Success.”

安裝完成后加入啟動(dòng)項(xiàng)

ee /etc/rc.conf

加入

saslauthd_enable=”YES”
postfix_enable=”YES”

5.編輯/usr/local/etc/postfix/main.cf 最下面加入

#本機(jī)郵件服務(wù)器域名,在域名里做一下mx解析,指向本機(jī)的公網(wǎng)ip,避免被識(shí)別為垃圾
myorigin = mail3.me.com
#開啟smtp
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
#白名單ip,可以不用驗(yàn)證密碼
mynetworks = 168.100.189.0/28, 127.0.0.0/8
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated permit_mx_backup reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_local_domain = $myhostname

6.打開目錄 /usr/local/lib/sasl2/里面有個(gè)Sendmail.conf,重要!

cp Sendmail.conf smtpd.conf

生成/etc/aliases.db,運(yùn)行 重要!

newaliases

標(biāo)簽:烏蘭察布 廣元 晉中 梧州 張家界 信陽 達(dá)州 德陽

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《freebsd9.2配置postfix的smtp認(rèn)證步驟(圖解)》,本文關(guān)鍵詞  freebsd9.2,配置,postfix,的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《freebsd9.2配置postfix的smtp認(rèn)證步驟(圖解)》相關(guān)的同類信息!
  • 本頁收集關(guān)于freebsd9.2配置postfix的smtp認(rèn)證步驟(圖解)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    临夏县| 义马市| 报价| 项城市| 绥江县| 乌海市| 东至县| 静安区| 曲周县| 安化县| 巨野县| 阿鲁科尔沁旗| 辛集市| 山东省| 肇源县| 珠海市| 文化| 通州市| 潼南县| 静安区| 兴安县| 萝北县| 南丹县| 平定县| 收藏| 高雄市| 额敏县| 彰化市| 新疆| 闻喜县| 桓台县| 云梦县| 庆元县| 繁峙县| 嘉峪关市| 沾益县| 桐乡市| 潜江市| 精河县| 肃宁县| 通河县|