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 設定只能收信不能寄信 | 豬窩
Appreciate this post. Let me try it out.
postfix 設定只能收信不能寄信 | 豬窩
Hi friends, its great piece of writing concerning educationand entirely defined,
keep it up all the time.
postfix 設定只能收信不能寄信 | 豬窩
Does your site have a contact page? I'm having trouble locating it but, I'd like to
send you an e-mail. I've got some recommendations for your
blog you might be interested in hearing. Either way, great site and
I look forward to seeing it expand over time.
postfix 設定只能收信不能寄信 | 豬窩
Howdy! I'm at work browsing your blog from my new apple iphone!
Just wanted to say I love reading your blog and look forward to all
your posts! Keep up the fantastic work!
postfix 設定只能收信不能寄信 | 豬窩
First of all I would like to say fantastic blog! I had a quick question in which I'd like to ask if you don't mind.
I was interested to know how you center yourself and clear
your head before writing. I have had a difficult time clearing my mind in getting my ideas out.
I truly do enjoy writing but it just seems like the
first 10 to 15 minutes are wasted simply just trying to figure out how to begin.
Any ideas or tips? Appreciate it!