博客统计信息

用户名:zhjczr
文章数:16
评论数:3
访问量:11647
无忧币:20
博客积分:506
博客等级:2
注册日期:2007-07-31

我的技术圈(1)

更多>>
postfix限定特定用户才能发送到别名的解决方法
2009-09-15 14:20:43
postfix限定特定用户才能发送到别名的解决方法

建立了staff@ibaihe.com的一个别名
只允许域内root@ibaihe.com才能发送到staff@ibaihe.com这个别名其他用户都不能发到到这个别名
设置方法如下:
1)在main.cf里定义如下的smtpd_restriction_classes:
# senders
smtpd_restriction_classes = local_only
local_only = check_sender_access hash:/etc/postfix/local_domains, reject
2)将main.cf里的smtpd_sender_restrctions定义为:
smtpd_sender_restrictions =
check_recipient_access hash:/etc/postfix/local_recipient
3)vi /etc/postfix/local_recipient:
staff@ibaihe.com    local_only
4)vi /etc/postfix/local_domains:
root@ibaihe.com    OK
5)为3,4的文件建立hash:

postmap hash:/etc/postfix/local_recipient
postmap hash:/etc/postfix/local_domains
分享至
更多
一键收藏,随时查看,分享好友!
0人
了这篇文章
类别:未分类┆技术圈()┆阅读()┆评论() ┆ 推送到技术圈返回首页

文章评论

 
 

发表评论            

【技术门诊】专家解析:软考重点难点及应试技巧
昵  称:
登录  快速注册
验证码:

请点击后输入验证码博客过2级,无需填写验证码

内  容: