postfix 設定只能收信不能寄信
首先建立了一個/etc/postfix/reject_user, 填入要封鎖的帳號資料, 建立該db檔.
然後編輯 vi /etc/postfix/main.cf, 並將加入check_sender_access hash:/etc/postfix/reject_user在下面兩項敘述中
#若有其它設定用逗點分隔
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/reject_user, permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/reject_user
vi /etc/postfix/reject_user
# REJECT 退信 , DISCARD 丟棄
user@test.com.tw REJECT
user2@ DISCARD
#建立map db檔
postmap hash:/etc/postfix/reject_user
重新啟動postfix
/etc/init.d/rd.d/postfix restart
迴響
postfix 設定只能收信不能寄信 | 豬窩
I know this if off topic but I'm looking into starting
my own weblog and was wondering what all is
needed to get set up? I'm assuming having a blog like yours would cost a pretty penny?
I'm not very web smart so I'm not 100% sure. Any recommendations or advice
would be greatly appreciated. Appreciate it
postfix 設定只能收信不能寄信 | 豬窩
My spouse and I absolutely love your blog and find
a lot of your post's to be what precisely I'm looking for.
Would you offer guest writers to write content for you personally?
I wouldn't mind producing a post or elaborating on a lot
of the subjects you write regarding here. Again, awesome website!
postfix 設定只能收信不能寄信 | 豬窩
Heya i'm for the primary time here. I came across this board and I find It
really useful & it helped me out a lot. I hope to present something again and aid others such as
you helped me.
postfix 設定只能收信不能寄信 | 豬窩
Excellent post. I was checking continuously this blog and I'm
impressed! Extremely useful info particularly the last part :) I care for such information much.
I was looking for this certain information for a very long time.
Thank you and best of luck.
postfix 設定只能收信不能寄信 | 豬窩
I enjoy, cause I found just what I was looking for. You've
ended my 4 day long hunt! God Bless you man. Have a
great day. Bye