Chinaunix首页 | 论坛 | 博客
  • 博客访问: 598088
  • 博文数量: 129
  • 博客积分: 6240
  • 博客等级: 准将
  • 技术积分: 1765
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-18 15:42
文章分类

全部博文(129)

文章存档

2015年(1)

2012年(3)

2011年(6)

2010年(14)

2009年(105)

我的朋友

分类: LINUX

2010-08-05 12:02:06

邮件系统使用的是iredmail5.0
 
使用起来,一切正常,由于使用了灰名单机制,没有收到过垃圾邮件。可是有一个问题出现,就是一些重要的邮件也会延迟,这样使用起来有的不方便。
我测试了好长时间,现在延迟的问题基本解决了。
现在我把白名单的添加过程贴出来。
vi /etc/policyd.conf
#####################################################################
#                            WHITELISTING              (functional) #
#####################################################################
#
# whitelisting:                                       default: on
#
#   this enables whitelisting of ip/netblocks. this is needed
#   if you want to allow any of the whitelisting features.
#
#                                                     1=on  0=off
WHITELISTING=1
#
# whitelist null sender:                              default: off
#
#   null senders are normally used for bounce messages. many
#   viruses use null senders so its wise to leave this disabled.
#
#                                                     1=on  0=off
WHITELISTNULL=0
#
# whitelist sender address/domain
#
#   this allows you to do whitelisting based on envelope sender
#   address or envelope sender domain. a number of people have
#   been asking for this. please AVOID using this as spammers
#   forge senders and domains a lot.
#
#                                                     1=on  0=off
WHITELISTSENDER=1

#
# whitelist client dns name
#
#   this allows you whitelist clients that have proper resolving
#   records. for example, i could whitelist 'bulk.scd.yahoo.com'.
#   so any connections from n6a.bulk.scd.yahoo.com or
#   n6b.bulk.scd.yahoo.com would be whitelisted. this type of
#   whitelisting gives far greater power when it comes to
#   whitelisting ISPs or big companies which you know do not
#   house spammers. please note. this table must NOT have more
#   than 10 000 -> 15 000 entries.
#
#                                                     1=on  0=off
WHITELISTDNSNAME=1
#
# automatic whitelisting                              default: off
#
#   this allows whitelisting of remote networks who have sent
#   more than AUTO_WHITELIST_NUMBER of authenticated triplets.
#
#                                                     1=on  0=off
AUTO_WHITE_LISTING=1
#
# auto whitelist number:                              default: 500
#
#   how many succesfull triplets does it require before a
#   network is automatically whitelisted
#
AUTO_WHITELIST_NUMBER=10
保存,退出。
 
向数据库中添加信任的域,用户。
mysql> use policyd;
mysql> insert into whitelist_sender (_whitelist,_description) values();   添加整个邮件域,如果是单个邮件地址,则输入邮件地址。
mysql> quit
 
重起服务
# service policyd restart
Stopping policyd:                                          [  OK  ]
Starting policyd:                                          [  OK  ]
 
阅读(1902) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~