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 這個帳號 拿分走人呵呵,樓下繼續! 好睏啊 回帖是種美德.
頁:
[1]