HOWTO install SpamAssassin on Red Hat Linux 7.3
来源:互联网 发布:tera人类女捏脸数据 编辑:程序博客网 时间:2024/06/06 00:25
===============================================
by Thomas Chung <tchung@openwebmail.org>
Last Updated: 2003-05-13
1. install following rpm packages
perl-Mail-SpamAssassin-2.53-1.7.3.i386.rpm
spamassassin-2.53-1.7.3.i386.rpm
spamassassin-tools-2.53-1.7.3.i386.rpm
2. create a global spamassassin config file at
/etc/mail/spamassassin/local.cf
use SpamAssassin Configuration Generator at
http://www.yrex.com/spam/spamconfig.php
make sure to choose: Rewrite Subjects using text "*****SPAM*****"
3. start spamassassin service
service spamassassin start
4. switch to a user (su - user) then create an individual procmailrc config file
instead of global for security concern at
$HOME/.procmailrc
type following:
# filter all incoming mail through SpamAssassin and tags probable spam with a unique header
:0fw: spamassassin.lock
| /usr/bin/spamassassin
5. to see spamassassin score using spamd client - spamc:
$spamc -R < /usr/share/doc/spamassassin-2.53/sample-nonspam.txt
-6.3/5.0
PGP_SIGNATURE (-6.3 points) Contains a PGP-signed message
note: -6.3 is way low to be spam than required hits score 5.0
$spamc -R < /usr/share/doc/spamassassin-2.53/sample-spam.txt
7.4/5.0
NO_REAL_NAME (0.7 points) From: does not include a real name
INVALID_DATE (0.6 points) Invalid Date: header (not RFC 2822)
UNDISC_RECIPS (1.4 points) Valid-looking To "undisclosed-recipients"
HOME_EMPLOYMENT (1.5 points) BODY: Information on how to work at home (2)
DRASTIC_REDUCED (1.5 points) BODY: Drastically Reduced
REMOVE_SUBJ (0.8 points) BODY: List removal information
ONCE_IN_LIFETIME (0.7 points) BODY: Once in a lifetime, apparently
DATE_IN_PAST_12_24 (0.2 points) Date: is 12 to 24 hours before Received: date
INVALID_MSGID (0.4 points) Message-Id is not valid, according to RFC 2822
AWL (-0.4 points) AWL: Auto-whitelist adjustment
note: 7.4 is high enough to be spam than required hits score 5.0
6. to test spamassassin by sending a sample spam email from a user to a user
mail -s test user@domain.com < /usr/share/doc/spamassassin-2.53/sample-spam.txt
7. check the mail from the user account and look for subject as
*****SPAM***** test
ps. To make spam scanner to more sensitive, decrese the number for required_hits in
/etc/mail/spamassassin/local.cf from 5.0 to 4.0 for exmaple
and make sure to restart spamassassin service after changing config file
上一篇:HOWTO-ClamAV for Open WebMail
下一篇:统计用户SHELL
- linux 常见服务端口
- 【ROOTFS搭建】busybox的httpd...
- 什么是shell
- linux socket的bug??
- linux的线程是否受到了保护?...
- IBM DS3400 盘阵怎么查看是单...
- 启动auditd时,报错如下,怎么...
- CGSL系统中root密码正确,但无...
- 在CGSL系统中,如何为不同的用...
- CGSL系统如何设置交换分区的大...
- HOWTO install SpamAssassin on Red Hat Linux 7.3
- Install MongoDB on Red Hat Enterprise or CentOS Linux
- git install on Red Hat 5
- How To Install And Configure Ganglia On Red Hat Enterprise Linux 5---YUM 安装篇
- install oracle Oracle10gR2 on Red Hat Enterprise Linux release 5 (RHEL5) checks fail
- Install Oracle 10g on Red Hat Linux 5.3 Step by Step
- build lcc 4.2 on red hat linux 7.3
- Howto Red hat enterprise Linux 5 configure the network card
- Howto Red hat enterprise Linux 5 configure the network card
- SQL Server on Red Hat Enterprise Linux
- Install MongoDB on Red Hat Enterprise, CentOS, or Fedora
- How to Install OSSEC on Red Hat or CentOS 6
- Install MongoDB Enterprise on Red Hat Enterprise or CentOS
- Red Hat Install
- Red Hat Enterprise Linux 7.3
- Integrating Tomcat and Apache on Red Hat Linux 9 or Red Hat Enterprise Linux 3
- Installing Oracle 9i on Red Hat Enterprise Linux Advanced Server 4, 3, 2.1, and on Red Hat 9, 8.0, 7.3, 7.2, 7.1 (x86)
- Oracle 9i Installation on Red Hat Linux
- CGAffineTransform 用于视图平移,放缩,旋转
- Wireless 802.11g Access Point
- android httpclient与webview cookie同步
- 我的忧虑、困惑和挣扎
- HOWTO-ClamAV for Open WebMail
- HOWTO install SpamAssassin on Red Hat Linux 7.3
- 统计用户SHELL
- vsftpd anonymous user can't upload
- 清除IE中输入过的用户名和密码
- 邮件系统postfix安装与配置
- .htaccess网页访问限制
- 我的squid+iptables设置
- 无语
- 为什么?