- 论坛徽章:
- 0
|
hanccy,hutao,请看过来
其实一块网卡就可以,你只要设置好antirelay就可以了,通过antirelay,你可以让所有的用户都必须通过认证才能发邮件,不管是内网还是外网。
UBE的设置如下:
UBE(Unsolicited Bulk Email)是垃圾邮件的简称,在Mail System的运行过程中,会有许多人利用我们的Mail System向外大量发垃圾邮件,以及他人向我们的Mail System发大量的垃圾邮件,以上两种情况都会造成Mail System中队列快速增长,系统的负载增加,造成Mail System的响应缓慢,这时我们就必须利用UBE来过滤掉这些垃圾邮件。
UBE filter 常常是如下的格式:
Channel-to “.*@990.net” REJECT “You don’t send mail to any one!”
2.8.1.激活UBE plug-in
由于UBE plug-in 是一个SMTP plug-in,主要是用来扩展Netscape Messaging Server的
功能。在我们进行Mail System的安装时,UBE plug-in已经被安装,但未被激活。当我们利用UBE来过滤掉垃圾邮件时,就必须激活UBE plug-in。
1)手工激活UBE Plug-in
UBE Plug-in 的配置文件都保存在/netscape/msg/server4/msg-email/smtp-bin/plugins 目录下。在该目录中有四个文件:UBEfilter.cfg、UBEfilter.opt、libUBEfilter.so、plugins.cf。
各文件所起的作用描述如下:
To make the UBE plug-in available for use, use Netscape Console to access the SMTP Plugins form. Turn on the UBE plug-in in the Plugin Configuration table. (Its name is libUBEfilter.so or libUBEfilter.sl for Unix;libUBEfilter.dll for Windows NT.)
As with all SMTP plug-ins, basic configuration of the UBE plug-in is controlled by the
contents of the configuration file plugins.cfg. Individual filter characteristics and other aspects of UBE plug-in execution are controlled by the files UBEfilter.cfg and UBEfilter.opt.
从以上我们可以看到 UBE Plug-in 是否被激活的控制文件是plugins.cfg。
当UBE Plug-in 没有被激活时,plugins.cfg文件第一行的第一个字符是一个#号, 当UBE Plug-in 需要被激活时,我们只需该#号去掉并保存文件,然后重起Netscape Messaging Server的SMTP服务即可,重起方法同上。
为了检查UBE Plug-in是否安装成功,我们需要检查SMTP log 文件。
cd /netscape/msg/server4/msg-email/log/smtp
vi smtp
如果成功,我们将在SMTP log 文件发现如下记录:
如果不成功,我们将在SMTP log 文件发现如下记录:
2.8.2. 设置UBE Plug-in 过滤规则
当 UBE Plug-in安装成功后,我们就可以设置UBE Plug-in过滤规则。
l启动Netscape Console
l选择Messaging Server管理器(双击Netscape Messaging Server)
l在Netscape Messaging Server窗口中选择 Configure Unsolicited Bulk E-mail filters
在这里,我们定义了如下一条规则:
在Mail System 进行邮件的处理时,将对进出的邮件进行检测,如果发现来自abssex@
990.net的邮件将被拒绝,并给abssex@990.net发出一封警告信,包含如下内容:You don’t send mail to anyone!!
按下OK即可完成设置。
当完成设置后,通过图形化界面所设置的规则将反映到配置文件(UBEfilter.cfg)中去。
所以,我们配置UBE filters时既可通过图形化界面也可直接修改配置文件(UBEfilter.cfg)来进行。
以下是我们在测试环境所做的UBE filters,UBEfilter.cfg中的内容如下:
:"1" User-From "jswjy@.*" REJECT "You don't send mail to anyone,are you ok?"
:"2" Channel-To "jswjy@.*" REJECT "You don't sent mail to jswjy,are you ok?"
:"3" User-From "abssex@990.net" REJECT "you don't send mail to anyone"
在本配置中,第一条和第三条规则的解释同上,第二条规则的解释如下:
在Mail System 进行邮件的处理时,将对进出的邮件进行检测,如果发现进入Mail System的邮件的E-mail Address中包含有jswjy字符串,该邮件将被系统所拒绝。
这里,我们只是对UBE filters做一个简单的介绍,更详细的解释说明请参阅
Netscape Messaging Server 4.05 Administration Guide 中的第七章和第八章。该文档可下载:
URL:http://developer.iplanet.com/docs/manuals/messaging.html
|
|