濮阳杆衣贸易有限公司

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

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

熱門標簽:信陽外呼系統(tǒng)廠家 赤峰防封電銷卡 地圖標注多個城市 駐馬店電話自動外呼系統(tǒng)怎么樣 南京自動外呼系統(tǒng)有哪些 北海智能電銷機器人公司 地圖標注山峰最低高度 地圖標注與注記總結(jié) 人工電銷和ai機器人的區(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

安裝時候會同時安裝cyrus-sasl2庫,選擇配置時候選上BDB等..

安裝時還會提示是否替換系統(tǒng)默認的mail程序,此處替換,因為已經(jīng)卸載sendmail

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

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

cd /usr/ports/security/cyrus-sasl2

make install clean

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

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

make install clean

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

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

安裝完成后加入啟動項

ee /etc/rc.conf

加入

saslauthd_enable=”YES”
postfix_enable=”YES”

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

#本機郵件服務(wù)器域名,在域名里做一下mx解析,指向本機的公網(wǎng)ip,避免被識別為垃圾
myorigin = mail3.me.com
#開啟smtp
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
#白名單ip,可以不用驗證密碼
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/里面有個Sendmail.conf,重要!

cp Sendmail.conf smtpd.conf

生成/etc/aliases.db,運行 重要!

newaliases

標簽:烏蘭察布 廣元 晉中 梧州 張家界 信陽 達州 德陽

巨人網(wǎng)絡(luò)通訊聲明:本文標題《freebsd9.2配置postfix的smtp認證步驟(圖解)》,本文關(guān)鍵詞  freebsd9.2,配置,postfix,的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《freebsd9.2配置postfix的smtp認證步驟(圖解)》相關(guān)的同類信息!
  • 本頁收集關(guān)于freebsd9.2配置postfix的smtp認證步驟(圖解)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    通道| 无棣县| 嘉兴市| 博白县| 深圳市| 班玛县| 乌审旗| 亚东县| 郑州市| 吉林省| 从江县| 南昌县| 金阳县| 上虞市| 乳山市| 陆丰市| 白城市| 九寨沟县| 涟水县| 蒙阴县| 云龙县| 大英县| 本溪市| 三原县| 雅安市| 炎陵县| 平利县| 望谟县| 永顺县| 扶绥县| 新昌县| 伊宁市| 绥阳县| 新河县| 辉南县| 五华县| 尚义县| 平和县| 昆山市| 隆安县| 通城县|