Chinaunix首页 | 论坛 | 博客
  • 博客访问: 44702
  • 博文数量: 19
  • 博客积分: 720
  • 博客等级: 上士
  • 技术积分: 231
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-21 15:19
文章分类

全部博文(19)

文章存档

2012年(2)

2011年(15)

2010年(2)

我的朋友

分类: 项目管理

2011-07-08 16:27:27

邮件组限定修改手顺

1)在main.cf里定义如下的smtpd_restriction_classes:引用:
# restrictions--mail police
smtpd_restriction_classes = local_out_only local_in_only
local_out_only = check_recipient_access hash:/etc/postfix/local_domains, reject
local_in_only = check_sender_access hash:/etc/postfix/local_domains, reject

2)将main.cf里的smtpd_recipient_restrctions定义为:引用:
smtpd_recipient_restrictions =
  check_sender_access hash:/etc/postfix/local_out_senders
  check_recipient_access hash:/etc/postfix/local_in_senders
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining,
  reject_invalid_hostname
  check_policy_service inet:127.0.0.1:10030

3)编辑/etc/postfix/local_in_senders:引用(每一行为一个邮件组):
  local_in_only
  local_in_only


4)编辑/etc/postifx/local_out_senders:引用:
目前对于出去的组还没有限定,故为空!!此选项的意思是在oxoxoox邮件组里面有非oxoxoox.com.cn的邮箱

时,比如有oxoxoox.com的邮箱,如果做了限定将会无法收到。

5)编辑/etc/postfix/local_domains:引用:
oxoxoox.com.cn OK
oxoxoox.com OK


6)为3,4,5建立对应的hash文件: 引用:

# postmap hash:/etc/postfix/local_in_senders
# postmap hash:/etc/postfix/local_out_senders
# postmap hash:/etc/postfix/local_domains

阅读(852) | 评论(0) | 转发(0) |
0

上一篇:网站优化

下一篇:keepalive 安装

给主人留下些什么吧!~~