Ms7 Search
Google 搜尋 翻譯
calendar
« 四月 2025 »
  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 設定只能收信不能寄信

2016-01-28 @ 19:36 in Linux

首先建立了一個/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 設定只能收信不能寄信 | 豬窩

Hello, everything is going well here and ofcourse every one is sharing facts, that's actually good, keep up writing.

作者 web hosting sites @ 07:28, 2020-08-14

postfix 設定只能收信不能寄信 | 豬窩

Thanks for sharing your info. I truly appreciate your efforts and I will
be waiting for your further write ups thank you
once again.

作者 web hosting service @ 09:45, 2020-08-14

postfix 設定只能收信不能寄信 | 豬窩

I amm iin fac deliyhted too read thios blog posts which includes lots of usefull information, thanks ffor prooviding
sucfh information.

作者 xnxxrush.com @ 14:07, 2024-12-25
«上一篇   1 2 3 4
發表迴響
 authimage