Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

postfix 如何限制使用者寄信或拒收來信

2013-01-18 @ 11:07 in Linux

如何限制某一使用者從 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 如何限制使用者寄信或拒收來信 | 豬窩

Hey! I'm at work surfing around your blog from my new iphone 3gs!
Just wanted to say I love reading your blog and look forward to all
your posts! Carry on the fantastic work!

作者 best web hosting @ 13:48, 2020-07-18

postfix 如何限制使用者寄信或拒收來信 | 豬窩

These are truly impressive ideas in about
blogging. You have touched some nice points here. Any way
keep up wrinting.

作者 web hosting sites @ 10:43, 2020-07-22

postfix 如何限制使用者寄信或拒收來信 | 豬窩

Hi there to all, the contents existing at this website are in fact
awesome for people experience, well, keep up the nice work fellows.

作者 best web hosting sites @ 10:10, 2020-07-26

postfix 如何限制使用者寄信或拒收來信 | 豬窩

Thanks for sharing your info. I really appreciate your efforts
and I will be waiting for your next post thanks once again.

作者 hosting services @ 08:01, 2020-07-27

postfix 如何限制使用者寄信或拒收來信 | 豬窩

I'm more than happy to find this web site. I want to to thank you for your
time for this particularly wonderful read!! I definitely appreciated
every part of it and i also have you saved to fav to look at new information in your web site.

作者 cheap tickets @ 22:04, 2020-07-27
發表迴響
 authimage