CentOS 6.5中Zimbra8.5反垃圾病毒邮件配置

以下配置在zimbra8.5中测试,未在其他版本中测试过,不能保证是否有效。

安装如下:

系统环境:CentOS 6.5 x86_64

Zimbra版本:zimbra 8.5.0

1.zimbra官网:http://www.zimbra.com/ 进入官网下载开源版本,

我此时下载的为http://files2.zimbra.com/downloads/8.5.0_GA/zcs-8.5.0_GA_3042.RHEL6_64.20140828192005.tgz

2.zimbra不支持32位系统安装,请使用64为系统;

3.zimbra在安装时要检测MX,所以要在之前配置好dns MX解析;

4.安装会安装到/opt目录,请确保/opt目录由足够空间

安装前:

1.关闭selinux,编辑/etc/selinux/config

SELINUX=disabled

2.开放防火墙端口,编辑/etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 7071 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8087 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 995 -j ACCEPT

 

3.配置主机名,编辑/etc/sysconfig/network

HOSTNAME=mail.domain.com

4.配置hosts,编辑/etc/hosts

10.172.250.121 mail.domain.com

5.关闭sendmail或postfix服务,避免25端口被占用

/etc/init.d/sendmail stop

chkconfig sendmail off

/etc/init.d/postfix stop

chkconfig postfix off

6.重启服务器,确保所有配置生效

# reboot

一、安装dnsmasq

1.安装dnsmasq

# yum install dnsmasq bind-utils

2.配置dnsmasq

# cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak

添加以下到/etc/dnsmasq.conf

no-resolv

server=127.0.0.1

domain=domain.com

mx-host=domain.com,mail.domain.com,5

添加以下到/etc/resolv.conf

nameserver 127.0.0.1

启动dnsmasq

# /etc/init.d/dnsmasq start

测试:

[root@mail ~]# dig domian.com MX

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> domain.com MX

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38013

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:

;domain.com.                     IN      MX

;; ANSWER SECTION:

domain.com.              0       IN      MX      5 mail.domain.com.

;; ADDITIONAL SECTION:

mail.domain.com.         0       IN      A       10.172.250.121

;; Query time: 0 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Wed Oct 22 14:20:02 2014

;; MSG SIZE  rcvd: 73

[root@mail ~]#

测试成功。

二、安装zimbra

1.解压

# tar -zxvf zcs-8.5.0_GA_3042.RHEL6_64.20140828192005.tgz

# cd zcs-8.5.0_GA_3042.RHEL6_64.20140828192005

2.运行安装脚本

# ./install.sh

到此处填写y,继续

Do you agree with the terms of the software license agreement? [N] y

到下面发现少包:

Checking for prerequisites...

     FOUND: NPTL

     MISSING: nc

     FOUND: sudo-1.8.6p3-12

     FOUND: libidn-1.18-2

     FOUND: gmp-4.3.1-7

     FOUND: libaio-0.3.107-10

     FOUND: libstdc++-4.4.7-4

     FOUND: unzip-6.0-1

Checking for suggested prerequisites...

     FOUND: perl-5.10.1

     FOUND: sysstat

     FOUND: sqlite

###ERROR###

One or more prerequisite packages are missing.

Please install them before running this installer.

Installation cancelled.

安装缺失的包nc:# yum -y install nc

再次运行安装脚本,安装日志如下:

[root@mail zcs-8.5.0_GA_3042.RHEL6_64.20140828192005]# ./install.sh

Operations logged to /tmp/install.log.28012

Checking for existing installation...

    zimbra-ldap...NOT FOUND

    zimbra-logger...NOT FOUND

    zimbra-mta...NOT FOUND

    zimbra-dnscache...NOT FOUND

    zimbra-snmp...NOT FOUND

    zimbra-store...NOT FOUND

    zimbra-apache...NOT FOUND

    zimbra-spell...NOT FOUND

    zimbra-convertd...NOT FOUND

    zimbra-memcached...NOT FOUND

    zimbra-proxy...NOT FOUND

    zimbra-archiving...NOT FOUND

    zimbra-cluster...NOT FOUND

    zimbra-core...NOT FOUND

 

PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.

ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU

FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING

THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY

THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS

AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:

  http://www.zimbra.com/license/zimbra-public-eula-2-5.html

 

Do you agree with the terms of the software license agreement? [N] y

 

Checking for prerequisites...

     FOUND: NPTL

     FOUND: nc-1.84-22

     FOUND: sudo-1.8.6p3-12

     FOUND: libidn-1.18-2

     FOUND: gmp-4.3.1-7

     FOUND: libaio-0.3.107-10

     FOUND: libstdc++-4.4.7-4

     FOUND: unzip-6.0-1

Checking for suggested prerequisites...

     FOUND: perl-5.10.1

     FOUND: sysstat

     FOUND: sqlite

Prerequisite check complete.

Checking for installable packages

Found zimbra-core

Found zimbra-ldap

Found zimbra-logger

Found zimbra-mta

Found zimbra-dnscache

Found zimbra-snmp

Found zimbra-store

Found zimbra-apache

Found zimbra-spell

Found zimbra-memcached

Found zimbra-proxy

 

Select the packages to install

Install zimbra-ldap [Y] y

Install zimbra-logger [Y] y

Install zimbra-mta [Y] y

Install zimbra-dnscache [Y] y

Install zimbra-snmp [Y] y

Install zimbra-store [Y] y

Install zimbra-apache [Y] y

Install zimbra-spell [Y] y

Install zimbra-memcached [Y] y

Install zimbra-proxy [Y] y

Checking required space for zimbra-core

Checking space for zimbra-store

Checking required packages for zimbra-store

zimbra-store package check complete.

Installing:

    zimbra-core

    zimbra-ldap

    zimbra-logger

    zimbra-mta

    zimbra-dnscache

    zimbra-snmp

    zimbra-store

    zimbra-apache

    zimbra-spell

    zimbra-memcached

    zimbra-proxy

The system will be modified.  Continue? [N] y

Removing /opt/zimbra

Removing zimbra crontab entry...done.

Cleaning up zimbra init scripts...done.

Cleaning up /etc/ld.so.conf...done.

Cleaning up /etc/prelink.conf...done.

Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-ldap......zimbra-ldap-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-logger......zimbra-logger-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-mta......zimbra-mta-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-dnscache......zimbra-dnscache-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-snmp......zimbra-snmp-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-store......zimbra-store-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-apache......zimbra-apache-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-spell......zimbra-spell-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-memcached......zimbra-memcached-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-proxy......zimbra-proxy-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

Operations logged to /tmp/zmsetup10222014-145244.log

Installing LDAP configuration database...done.

Setting defaults.../opt/zimbra/postfix/sbin/postconf: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol

 

DNS ERROR resolving MX for mail.domain.com

It is suggested that the domain name have an MX record configured in DNS

Change domain name? [Yes] yes

Create domain: [mail.domain.com] domain.com

        MX: mail.domain.com (10.172.250.121)

        Interface: 10.172.250.121

        Interface: 127.0.0.1

done.

Checking for port conflicts

Port conflict detected: 53 (zimbra-dnscache)

Port conflicts detected! - Press Enter/Return key to continue

Main menu

   1) Common Configuration:                                                 

   2) zimbra-ldap:                             Enabled                      

   3) zimbra-logger:                           Enabled                      

   4) zimbra-mta:                              Enabled                      

   5) zimbra-dnscache:                         Enabled                      

   6) zimbra-snmp:                             Enabled                      

   7) zimbra-store:                            Enabled                      

        +Create Admin User:                    yes                          

        +Admin user to create:                 admin@domain.com              

******* +Admin Password                        UNSET                        

        +Anti-virus quarantine user:           virus-quarantine.oubc28u8@domain.com

        +Enable automated spam training:       yes                          

        +Spam training user:                   spam.bhvuzvy91@domain.com     

        +Non-spam(Ham) training user:          ham.kj839rhlb@domain.com      

        +SMTP host:                            mail.domain.com               

        +Web server HTTP port:                 8080                         

        +Web server HTTPS port:                8443                         

        +Web server mode:                      https                        

        +IMAP server port:                     7143                         

        +IMAP server SSL port:                 7993                         

        +POP server port:                      7110                         

        +POP server SSL port:                  7995                         

        +Use spell check server:               yes                          

        +Spell server URL:                     http://mail.domain.com:7780/aspell.php

        +Enable version update checks:         TRUE                         

        +Enable version update notifications:  TRUE                         

        +Version update notification email:    admin@domain.com              

        +Version update source email:          admin@domain.com              

        +Install mailstore (service webapp):   yes                          

        +Install UI (zimbra,zimbraAdmin webapps): yes                          

   8) zimbra-spell:                            Enabled                      

   9) zimbra-proxy:                            Enabled                      

  10) Default Class of Service Configuration:                               

   s) Save config to file                                                   

   x) Expand menu                                                           

   q) Quit                                   

Address unconfigured (**) items  (? - help) 7

 

Store configuration

   1) Status:                                  Enabled                      

   2) Create Admin User:                       yes                          

   3) Admin user to create:                    admin@domain.com              

** 4) Admin Password                           UNSET                        

   5) Anti-virus quarantine user:              virus-quarantine.oubc28u8@domain.com

   6) Enable automated spam training:          yes                          

   7) Spam training user:                      spam.bhvuzvy91@domain.com     

   8) Non-spam(Ham) training user:             ham.kj839rhlb@domain.com      

   9) SMTP host:                               mail.domain.com               

  10) Web server HTTP port:                    8080                         

  11) Web server HTTPS port:                   8443                         

  12) Web server mode:                         https                        

  13) IMAP server port:                        7143                         

  14) IMAP server SSL port:                    7993                         

  15) POP server port:                         7110                         

  16) POP server SSL port:                     7995                         

  17) Use spell check server:                  yes                          

  18) Spell server URL:                        http://mail.domain.com:7780/aspell.php

  19) Enable version update checks:            TRUE                         

  20) Enable version update notifications:     TRUE                         

  21) Version update notification email:       admin@domain.com              

  22) Version update source email:             admin@domain.com              

  23) Install mailstore (service webapp):      yes                          

  24) Install UI (zimbra,zimbraAdmin webapps): yes                          

Select, or 'r' for previous menu [r] 4

Password for admin@domain.com (min 6 characters): [yJVm9XbfhU] yJVm9XbfhU

Store configuration

   1) Status:                                  Enabled                      

   2) Create Admin User:                       yes                          

   3) Admin user to create:                    admin@domain.com              

   4) Admin Password                           set                          

   5) Anti-virus quarantine user:              virus-quarantine.oubc28u8@domain.com

   6) Enable automated spam training:          yes                          

   7) Spam training user:                      spam.bhvuzvy91@domain.com     

   8) Non-spam(Ham) training user:             ham.kj839rhlb@domain.com      

   9) SMTP host:                               mail.domain.com               

  10) Web server HTTP port:                    8080                         

  11) Web server HTTPS port:                   8443                         

  12) Web server mode:                         https                        

  13) IMAP server port:                        7143                         

  14) IMAP server SSL port:                    7993                         

  15) POP server port:                         7110                         

  16) POP server SSL port:                     7995                         

  17) Use spell check server:                  yes                          

  18) Spell server URL:                        http://mail.domain.com:7780/aspell.php

  19) Enable version update checks:            TRUE                         

  20) Enable version update notifications:     TRUE                         

  21) Version update notification email:       admin@domain.com              

  22) Version update source email:             admin@domain.com              

  23) Install mailstore (service webapp):      yes                          

  24) Install UI (zimbra,zimbraAdmin webapps): yes                          

Select, or 'r' for previous menu [r] r

Main menu

   1) Common Configuration:                                                 

   2) zimbra-ldap:                             Enabled                      

   3) zimbra-logger:                           Enabled                      

   4) zimbra-mta:                              Enabled                      

   5) zimbra-dnscache:                         Enabled                      

   6) zimbra-snmp:                             Enabled                      

   7) zimbra-store:                            Enabled                      

   8) zimbra-spell:                            Enabled                      

   9) zimbra-proxy:                            Enabled                      

  10) Default Class of Service Configuration:                               

   s) Save config to file                                                   

   x) Expand menu                                                           

   q) Quit                                   

*** CONFIGURATION COMPLETE - press 'a' to apply

Select from menu, or press 'a' to apply config (? - help) a

Save configuration data to a file? [Yes] yes

Save config in file: [/opt/zimbra/config.5533]

Saving config in /opt/zimbra/config.5533...done.

The system will be modified - continue? [No] yes

Operations logged to /tmp/zmsetup10222014-145244.log

Setting local config values...done.

Initializing core config...Setting up CA...done.

Deploying CA to /opt/zimbra/conf/ca ...done.

Creating SSL zimbra-store certificate...done.

Creating new zimbra-ldap SSL certificate...done.

Creating new zimbra-mta SSL certificate...done.

Creating new zimbra-proxy SSL certificate...done.

Installing mailboxd SSL certificates...done.

Installing MTA SSL certificates...done.

Installing LDAP SSL certificate...done.

Installing Proxy SSL certificate...done.

Initializing ldap...done.

Setting replication password...done.

Setting Postfix password...done.

Setting amavis password...done.

Setting nginx password...done.

Setting BES searcher  password...done.

Creating server entry for mail.domain.com...done.

Setting Zimbra IP Mode...done.

Saving CA in ldap ...done.

Saving SSL Certificate in ldap ...done.

Setting spell check URL...done.

Setting service ports on mail.domain.com...done.

Setting zimbraFeatureTasksEnabled=TRUE...done.

Setting zimbraFeatureBriefcasesEnabled=TRUE...done.

Setting Master DNS IP address(es)...done.

Setting DNS cache tcp lookup preference...done.

Setting DNS cache udp lookup preference...done.

Setting DNS tcp upstream preference...done.

Setting MTA auth host...done.

Setting TimeZone Preference...done.

Initializing mta config...done.

Setting services on mail.domain.com...done.

Adding mail.domain.com to zimbraMailHostPool in default COS...done.

Creating domain domain.com...done.

Setting default domain name...done.

Creating domain domain.com...already exists.

Creating admin account admin@domain.com...done.

Creating root alias...done.

Creating postmaster alias...done.

Creating user spam.bhvuzvy91@domain.com...done.

Creating user ham.kj839rhlb@domain.com...done.

Creating user virus-quarantine.oubc28u8@domain.com...done.

Setting spam training and Anti-virus quarantine accounts...done.

Initializing store sql database...done.

Setting zimbraSmtpHostname for mail.domain.com...done.

Configuring SNMP...done.

Setting up syslog.conf...done.

Starting servers...done.

Installing common zimlets...

        com_zimbra_webex...done.

        com_zimbra_phone...done.

        com_zimbra_ymemoticons...done.

        com_zimbra_attachcontacts...done.

        com_zimbra_clientuploader...done.

        com_zimbra_linkedinimage...done.

        com_zimbra_proxy_config...done.

        com_zimbra_tooltip...done.

        com_zimbra_viewmail...done.

        com_zimbra_attachmail...done.

        com_zimbra_mailarchive...done.

        com_zimbra_adminversioncheck...done.

        com_zimbra_cert_manager...done.

        com_zimbra_date...done.

        com_zimbra_bulkprovision...done.

        com_zimbra_url...done.

        com_zimbra_email...done.

        com_zimbra_srchhighlighter...done.

Finished installing common zimlets.

Restarting mailboxd...done.

Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.

This helps us to track the uptake of the Zimbra Collaboration Server.

The only information that will be transmitted is:

        The VERSION of zcs installed (8.5.0_GA_3042_RHEL6_64)

        The ADMIN EMAIL ADDRESS created (admin@domain.com)

Notify Zimbra of your installation? [Yes] yes

Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.5.0_GA_3042_RHEL6_64&MAIL=admin@domain.com

ERROR: Notification failed

Setting up zimbra crontab...done.

 

Moving /tmp/zmsetup10222014-145244.log to /opt/zimbra/log

 

Configuration complete - press return to exit

 

[root@mail zcs-8.5.0_GA_3042.RHEL6_64.20140828192005]#

一、反垃圾病毒邮件配置

1.增加权值

在文件/opt/zimbra/conf/amavisd.conf.in中找到#  read_hash("/var/amavis/sender_scores_sitewide"),部分,大概在340行左右,将你要信任或不信任的域或邮箱名按照格式填入下面,赋予合适的分值,分值越大表示不信任,分值越小表示信任(可理解为-10.0为信任,+10.0为阻断)。

如:我需要信任123@abc这个邮箱,可以这样添加

'123@abc.com'        => -10.0,   (不要忘了后面的逗号,将其分值减少增加被信任的机率)

如:我不信任333@bbb.com这个邮箱,可以这样添加

'333@bbb.com'        => +10.0,   (不要忘了后面的逗号,将其分值增加就会判为垃圾邮件)  

重启服务:

[zimbra@mail ~]$ zmamavisdctl reload

2.添加黑白名单

在文件/opt/zimbra/conf/amavisd.conf.in末尾添加以下:

read_hash(%whitelist_sender,'/opt/zimbra/conf/whitelist');

read_hash(%blacklist_sender,'/opt/zimbra/conf/blacklist');

创建黑白名单文件:

# touch /opt/zimbra/conf/{whitelist,blacklist}

授予拥有者为zimbra用户:

# chown zimbra /opt/zimbra/conf/whitelist

# chown zimbra /opt/zimbra/conf/blacklist

分别在文件中添加你需要设为白名单或黑名单的邮箱名或域名(一行一个),如:

# cat /opt/zimbra/conf/whitelist

gmail.com

111@abc.com

# cat /opt/zimbra/conf/blacklist

currantcantaloupechef.com

musicroyalties.net

mapleleafmail.com

重启服务:

[zimbra@mail ~]$ zmamavisdctl reload

3.使用RBL列表

可使用中国反垃圾邮件联盟(http://www.anti-spam.org.cn/ )的RBL,在邮件管理后台 主页--配置--全局设置--MTA 的RBL列表项中填入 cblless.anti-spam.org.cn 然后保存。

查看/opt/zimbra/postfix/conf/main.cf文件中的smtpd_recipient_restrictions项有没有 reject_rbl_client cblless.anti-spam.org.cn 这个内容,如果没有的话说明还没生效,在root用户下执行/opt/zimbra/postfix/sbin/postfix reload

说明:

我遇到的情况:使用此方法确实能阻断掉许多垃圾邮件,但使用我的gmail邮箱给我发送的时候也被阻断了,目前没有找到解决办法,阻断的日志内容如下:

Nov 30 00:06:16 mail postfix/smtpd[13458]: connect from mail-ie0-f175.google.com[209.85.223.175]

Nov 30 00:06:18 mail postfix/smtpd[13458]: Anonymous TLS connection established from mail-ie0-f175.google.com[209.85.223.175]: TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)

Nov 30 00:06:19 mail postfix/smtpd[13458]: NOQUEUE: filter: RCPT from mail-ie0-f175.google.com[209.85.223.175]: <chenxie168@gmail.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<chenxie168@gmail.com> to=<x.chen@mydomain.com> proto=ESMTP helo=<mail-ie0-f175.google.com>

Nov 30 00:06:19 mail postfix/smtpd[13458]: NOQUEUE: filter: RCPT from mail-ie0-f175.google.com[209.85.223.175]: <chenxie168@gmail.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10024; from=<chenxie168@gmail.com> to=<x.chen@mydomain.com> proto=ESMTP helo=<mail-ie0-f175.google.com>

Nov 30 00:06:19 mail postfix/smtpd[13458]: NOQUEUE: reject: RCPT from mail-ie0-f175.google.com[209.85.223.175]: 554 5.7.1 Service unavailable; Client host [209.85.223.175] blocked using cblless.anti-spam.org.cn; Mail from 209.85.223.175 refused, see http://www.anti-spam.org.cn/rbl_search.action?ip=209.85.223.175; from=<chenxie168@gmail.com> to=<x.chen@mydomain.com> proto=ESMTP helo=<mail-ie0-f175.google.com>

Nov 30 00:06:19 mail postfix/smtpd[13458]: disconnect from mail-ie0-f175.google.com[209.85.223.175]

4.关键字过滤

在/opt/zimbra/data/spamassassin/localrules/目录下新建规则文件custom_spam_rules.cf

可在网上找其他组织已经做好的规则文件,如http://www.ccert.edu.cn/spam/sa/Chinese_rules.cf(此链接已失效)

内容如下:

加入你要过滤的关键字(中文或英文都行),第1行表示主题为“my new photo”,第2行表示描述主题中包含“my new photo”,第3行表示遇到这类的邮件则为这封邮件加20分(就直接判断为垃圾邮件给删除了),如果不想被直接删除,建议分值设低点,也避免误判,我这里是已经确定这样的为垃圾邮件就这样设了。

还有注意文中的CN_SUBJECT_1,CN_SUBJECT_2,CN_SUBJECT_3,CN_SUBJECT_4 ... 如需要继续设置则按此规则设置,我最开始没注意直接拷贝添加新的规则,结果只有最后一组规则生效,原因就是因为这个没修改。
header CN_SUBJECT_1 Subject =~ /my new photo/
describe CN_SUBJECT_1 Subject contains "my new photo"
score CN_SUBJECT_1 20.0
 
header CN_SUBJECT_2 Subject =~ /my photo/
describe CN_SUBJECT_2 Subject contains "my photo"
score CN_SUBJECT_2 20.0
 
header CN_SUBJECT_3 Subject =~ /my icc/
describe CN_SUBJECT_3 Subject contains "my icc"
score CN_SUBJECT_3 20.0
 
header CN_SUBJECT_4 Subject =~ /优惠/
describe CN_SUBJECT_4 Subject contains "优惠"
score CN_SUBJECT_4 1.523
 
header CN_SUBJECT_5 Subject =~ /发票/
describe CN_SUBJECT_5 Subject contains "发票"
score CN_SUBJECT_5 1.324

重启服务:

[zimbra@mail ~]$ zmamavisdctl reload

时间: 2024-09-20 10:32:59

CentOS 6.5中Zimbra8.5反垃圾病毒邮件配置的相关文章

Turbogate邮件网关垃圾病毒邮件的防范技巧

市场经济下,信息安全领域的矛盾尤其突出.病毒与反病毒.黑客与反黑客.垃圾邮件与反垃圾邮件总是相互交错,此消彼长,推动安全产业车轮向前撵行. 随着云计算与虚拟技术的不断应用,垃圾病毒邮件也冲破了传统发送形式的束缚,逐渐把攻击目标锁定在企业邮箱.面对这样的形式,企业用户更加期待专业的反垃圾反病毒邮件安全网关的出现. 1.分析企业邮箱垃圾病毒侵害的根源 安全意识淡薄成为企业垃圾病毒邮件的"隐形zhadan",一方面企业没有安全防范意识,使用安全系数低的免费邮箱,缺乏专业的垃圾病毒防范机制:另

Centos 5.5中安装OpenVPN完整版:客户端配置及其客户端证书吊销

一 OpenVPN客户端的安装及其配置 1.到OpenVPN官方网站 http://openvpn.net下载OpenVPN GUI,客户端的版本要和服务器的版本保持一致. 2.安装OpenVPN GUI,默认安装路径在C:\Program Files\OpenVPN下面 3.把OpenVPN 服务端/etc/openvpn目录下面的ca.crt,sfzhang.crt,sfzhang.crs,sfzhang.key四个文件拷贝到GUI安装目录下面的config目录里面,并且把C:\Progra

掌握反垃圾邮件“秘笈”治标又治本

中介交易 SEO诊断 淘宝客 云主机 技术大厅 从互联网诞生之日起,似乎就与垃圾邮件有了"不解之缘".中国仅次美国之后,是全球第二大垃圾邮件受害国,其危害举不胜举.垃圾邮件以其数量多.反复性.强制性.欺骗性.不健康性和传播速度快等特点,占用大量传输.存储和运算资源,造成邮件服务器拥堵,严重影响正常的邮件服务. 垃圾邮件忍无可忍 防御骚扰已成共识 自从垃圾邮件在我国大规模蔓延以来,网民好像就被拖进了一场看不见对手的较量中,各种各样的广告.花边新闻等总是能通过层层防护,钻进我们的邮箱.据美

2007年反垃圾邮件市场谁主沉浮

中介交易 SEO诊断 淘宝客 云主机 技术大厅 2006年全球垃圾邮件发送数量比2005年同期的增长率飙升67%,图片垃圾邮件增长了超过500%,随着垃圾邮件数量的飙升,全球反垃圾邮件市场也取得了大幅度增长, 2006年全球反垃圾邮件市场整体规模达到了10亿美元,据说到2008年全球反垃圾邮件市场将近17.4亿美金,中国市场则占到2-5%左右的份额. 所有产业的发展都离不开一个起步.发展.繁荣到整合的过程,反垃圾邮件市场亦如是.该产业刚刚兴起的时候,全球总计有超过100家各类公司投身到这个行业当

梭子鱼助力中科科仪成功实施反垃圾邮件系统

客户背景: 北京中科科仪技术发展有限责任公司的前身是中国科学院北京科学仪器研制中心,始建于1958年.在国有应用型科研机构进行现代企业制度改造的形势下,作为中国科学院知识创新工程的重要内容,科仪中心率先完成企业化转制工作,中科科仪于2000年成立. 在方兴未艾的中国仪器制造领域,中科科仪是一颗异常闪耀的明星,地处北京中关村海淀园腹地,紧邻北京大学.清华大学.科学院三大教科研单位,置身于浓厚的科技创新氛围之中. 应用背景: 作为仪器制造业的龙头企业,中科科仪在生产研究方面从不松懈,任何一个技术难题

反垃圾邮件中的云网络

面对新型态垃圾邮件威胁急速增长的时代,传统的垃圾邮件安全网关将面对严重挑战,在此情况下,使用云安全网络将会是一个应对威胁的好办法. 云的进化 此前本报专门对云计算进行过研讨,云计算本身是一种具备动态延展能力的运算方式,通过网络将庞大的运算处理程序自动分拆成无数个较小的子程序,再交由多部服务器所组成的庞大系统,经搜寻.运算分析之后将处理结果回传给使用者.通过这项技术,服务提供商可以在数秒之内,处理数以千万甚至亿万的信息.目前云计算通常以虚拟的型式,把计算.储存.带宽.服务,通过Internet提供

中美互联网对话机制将首谈反垃圾邮件

4月9日消息,近日,中美互联网 对话机制中方专家组第一次会议在国家互联网应急中心(CNCERT)总部召开.来自清华大学.北京邮电大学.263网络通信等企业以及行业协会在内的十几位专家应邀出席,围绕以反垃圾邮件为代表的网络安全议题展开讨论.这也是中美互联网对话机制建立之后中方专家组的第一次筹备会议,标志着该机制即将进入实质性阶段. 据了解,中美互联网对话机制是在美国知名智库--东西方研究所(EastWest Insitute)提议下,经工业和信息化部.国务院新闻办推荐,由中国互联网协会和东西方研究

反垃圾邮件技术已转移到云计算中

反垃圾邮件已经逐渐商品化,大多数供应商都是使用混杂的技术来实现反垃圾邮件功能,包括过滤不必要的电子邮件,识别和阻止包含恶意代码的邮件等. "很难区分反垃圾邮件供应商,"位于美国马塞诸塞州的Forrester研究公司的首席分析师 Chenxi Wang表示,"每个供应商都有96%到98%的检测率,根本没有新技术可言." 自从10年前在邮箱系统肆虐的Lovebug病毒出现以来,目前电子邮件过滤技术已经大部分转移到云计算中.这种Lovebug能在几天内感染了5000万台计

反垃圾邮件防火墙与防毒墙

目前,计算机安全领域新的名词越来越多,防火墙,防毒墙--随着垃圾邮件越来越猖獗,美国最大的反垃圾邮件厂商博威特网络公司推出了梭子鱼垃圾邮件防火墙产品,这个产品不仅能够准确地阻断垃圾邮件,而且能够很好地实现邮件防毒墙的作用,同时还具有抵御攻击的能力,成为国际上最畅销的反垃圾邮件硬件产品.而这个产品与防火墙及防毒墙到底有何异同呢? 垃圾邮件防火墙 垃圾邮件防火墙,就是只对邮件数据包进行过滤的防火墙.它关心的只是邮件,只负责侦听25端口(SMTP协议也就是邮件协议的端口)的数据包.有些垃圾邮件防火墙还