postfix 如何限制使用者寄信或拒收來信
如何限制某一使用者從 Postfix 寄信
在 /etc/postfix/main.cf 中加入 smtpd_sender_restrictions = hash:/etc/postfix/access
在 /etc/postfix/access 加入 user@ REJECT sorry,we don't provide smtp service for you
更新 access.db
postmap /etc/postfix/access
重啟 postfix
/etc/rc.d/init.d/postfix restart
參考:http://tsongyao.blogspot.tw/2009/03/postfix.html
看了一些網頁解說,及自己的測試,發現 smtpd_sender_restrictions 偵測的是原始信件來源,也就是 From: 後面的位址,所以不論是我們寄信,或者是對方寄信的 email 位址都有效,假設 access 如下:
info.org.tw REJECT sorry,we don't provide smtp service for you
info.org.tw discard
info@ discard
那麼不管是我門寄信,或者是對方來信,只要來源 email 位址符合都有效,也就是 From: 後面的位址
而用 REJECT 會回一封信回去, discard 會直接丟棄,不理它
迴響
postfix 如何限制使用者寄信或拒收來信 | 豬窩
I always used to read piece of writing in news papers but now as I am
a user of internet therefore from now I am using net
for articles or reviews, thanks to web.
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Pretty nice post. I just stumbled upon your blog and wanted to say that I have truly enjoyed
browsing your blog posts. In any case I'll be subscribing
to your feed and I hope you write again soon!
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Having read this I thought it was really enlightening.
I appreciate you taking the time and energy to put this short article together.
I once again find myself personally spending a lot of time both reading
and commenting. But so what, it was still worth it!
postfix 如何限制使用者寄信或拒收來信 | 豬窩
You've made some good points there. I looked on the internet
for more info about the issue and found most individuals will go along with your views on this web site.
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog?
My website is in the very same niche as yours and my users would really benefit from a lot of the information you
provide here. Please let me know if this alright with you.
Thanks!