danny 2007-2-15 10:18
postfix限制某個郵件帳號只能讓管理者帳號寄
[code]vi /etc/postfix/protected_destinations [/code]
加入 你想要只能讓特定人士 寄的 mail address
ex:
[code]teacher@mydomain.edu insiders_only[/code]
然後 在 /etc/postfix/insiders
加入
[code]user1@mydomain.edu OK
user2@mydomain.edu OK [/code]
再修改 /etc/postfix/main.cf
加入
[code]
smtpd_recipient_restrictions = permit_mynetworks,
check_recipient_access hash:/etc/postfix/protected_destinations [/code]
[code]smtpd_restriction_classes = insiders_only
insiders_only = check_sender_access hash:/etc/postfix/insiders, reject [/code]
這樣 就只有 user1 和 user2 能寄信到 teacher@mydomain.edu 這個帳號 <div style="display:none;"><a href="https://seninlinkin.com">Ziyaret Et</a></div>