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 如何限制使用者寄信或拒收來信 | 豬窩
Appreciating the commitment you put into your blog and detailed information you provide.
It's awesome to come across a blog every once in a while that isn't the same out of date
rehashed material. Excellent read! I've bookmarked
your site and I'm adding your RSS feeds to my Google account.
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Cbd oil that works 2020
Aw, this was a very nice post. Spending some time and actual effort
to generate a great article… but what can I say… I procrastinate a lot
and don't manage to get nearly anything done.
best cbd oil for pain http://tinyurl.com/cbd-oil-that-works-2020 cbd oil that works 2020 http://tinyurl.com/cbd-oil-that-works-2020
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Thanks for another excellent article. Where else may just anyone get that kind of
info in such an ideal approach of writing? I've a presentation next
week, and I am at the look for such info.
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Hello, I enjoy reading all of your article. I like to write a
little comment to support you.
postfix 如何限制使用者寄信或拒收來信 | 豬窩
Hi there! Do you use Twitter? I'd like to follow you
if that would be ok. I'm definitely enjoying your blog and
look forward to new updates.