• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

HOWTO install SpamAssassin on Red Hat Linux 7.3

发布: 2007-7-04 12:06 | 作者: admin | 来源:  网友评论 | 查看: 9次 | 进入软件测试论坛讨论

领测软件测试网 HOWTO install SpamAssassin on Red Hat Linux 7.3
===============================================
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
 

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网