woff 發表於 2008-5-30 17:57:16

postfix限制某個郵件帳號只能讓管理者帳號寄

vi /etc/postfix/protected_destinations
加入 你想要只能讓特定人士 寄的 mail address
ex:teacher@mydomain.edu   insiders_only
然後 在 /etc/postfix/insiders

加入 user1@mydomain.edu   OK
user2@mydomain.eduOK
再修改 /etc/postfix/main.cf
加入 smtpd_recipient_restrictions =permit_mynetworks,
                              check_recipient_access hash:/etc/postfix/protected_destinations
smtpd_restriction_classes = insiders_only
insiders_only = check_sender_access hash:/etc/postfix/insiders, reject
這樣 就只有 user1 和 user2 能寄信到 teacher@mydomain.edu 這個帳號

sceqi 發表於 2013-11-8 01:10:16

拿分走人呵呵,樓下繼續!

82331936 發表於 2013-11-8 01:10:16

好睏啊

a88040300 發表於 2013-11-8 01:10:16

回帖是種美德.
頁: [1]
查看完整版本: postfix限制某個郵件帳號只能讓管理者帳號寄