Ms7 Search
Google 搜尋 翻譯
calendar
« 四月 2026 »
    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

限制 linux 帳號在 postfix 寄信或收信

2008-09-27 @ 16:42 in Linux

限制寄信:

在 /etc/postfix/main.cf 加入  smtpd_sender_restrictions = hash:/etc/postfix/access 讓 access 有作用

在 /etc/postfix/access 加入  user@   REJECT sorry,we don't provide smtp service for you 這樣 user 帳號就不能寄信

最後更新 access.db 指令   postmap /etc/postfix/access  及 重啟 postfix 指令 /etc/rc.d/init.d/postfix restart 就 OK 了

限制收信:

在 /etc/postfix/aliases 加入  user:   /dev/null  將 user 的來信丟掉,這樣  user 就收不到信

最後更新 aliases.db 指令   newaliases  及 重啟 postfix 指令 /etc/rc.d/init.d/postfix restart 就 OK 了

引用

引用本文的文章標題:限制 linux 帳號在 postfix 寄信或收信