PostFix 2.3.3本域用戶轉發至本域用戶沒有驗證
如題,
如何使其本域用戶不管發送郵件至哪個域都需驗證。
《解決方案》
回復 #1 HuangXiJun 的帖子
已解決,把:mynetworks=127.0.0.1 改成mynetworks=127.0.0.1/8
就可以了。
《解決方案》
不行,加了那條,全都發不了郵件。
《解決方案》
try this
http://www.postfix.cn/documentation/postconf.5.html#reject_sender_login_mismatch
reject_sender_login_mismatch
Reject the request when $smtpd_sender_login_maps specifies an owner for the MAIL FROM address, but the client is not (SASL) logged in as that MAIL FROM address owner; or when the client is (SASL) logged in, but the client login name doesn't own the MAIL FROM address according to $smtpd_sender_login_maps.
http://www.extmail.org/forum/viewthread.php?tid=601&page=1&fromuid=3709#pid1753
[ 本帖最後由 sosogh 於 2008-12-4 20:01 編輯 ]
《解決方案》
謝謝老大,
根據老大的指引,有兩種方法可以實現:
1、reject_sender_login_mismatch方法,實現起來麻煩,得經常更新DB庫;
2、apf-postfix 方法,用GOOGLE BAIDU了一下,發現其官方的域名都在SALE。
難道POSTFIX自己沒有方法限制嗎?
鬱悶中啊!!!!!
《解決方案》
reject_sender_login_mismatch 就是postfix自帶的方法哦
lookup table使用mysql,應該就不用經常更新db
smtpd_sender_login_maps =mysql:/etc/postfix/sender_login_maps
如果你的用戶資料庫中username欄位實用戶的郵箱地址,並且sasl login name跟用戶郵箱地址是一樣,就如下面這樣寫:
user = xxxxxxx
password = xxxxxxxx
dbname = xxxxxxxxxx
table = xxxxx
select_field = username
where_field = username
hosts = xxxxxxxxx
《解決方案》
用戶用的是SHADOW驗證呢。
沒有用MYSQL做用戶資料庫。
《解決方案》
:em03: :em03: .................