UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

SpamAssassinSPAM᡼륢ɥ쥹Ͽ

SpamAssassinSPAM᡼륢ɥ쥹Ͽ


  • 2009.01.19

Ϥ

ΥɥȤǤϡPerlǺե꡼󶡤ƤSPAM᡼ե륿ǤSpam Assassinˤơ᡼륢ɥ쥹ꤷSPAMȽưϿˡˤĤ롥

Spam Assassinϡ٥ե륿Bayesian FilterˤˤäƥǡϡؽƤ뤬ǽǤϤʤ١
餫SPAM᡼ȤϿ֥åꥹȤءSPAM᡼Ȥƥۥ磻ȥꥹȤؤϿԤꤹ롥

ʤѤƤΤSpam AssassionΥС3.0.1ǡMacOS X Server 10.4dzǧƤ롥

Ķγǧ

  • spamassassionޥɤΥѥǧ롥
mercury:~ root# locate spam|grep bin
/usr/bin/spamassassin
/usr/bin/spamc
/usr/bin/spamd
mercury:~ root#
  • Spam AssassinΥСǧ롥
mercury:~ root# /usr/bin/spamassassin --version
SpamAssassin version 3.0.1
running on Perl version 5.8.6

mercury:~ root#
  • Ť褦Ǥ롥

ۥ磻ȥꥹȤȥ֥åꥹȤϿ

  • ۥ磻ȥꥹȤϡlocal.cfե˳ǼƤΤǡեõ
mercury:~ server$ locate local.cf      
/private/etc/mail/spamassassin/local.cf
/private/etc/postfix/sample/sample-local.cf
mercury:~ server$

  • եȤǧ롥
mercury:~ server$ cat /private/etc/mail/spamassassin/local.cf
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
###########################################################################
#
# rewrite_subject 0
# report_safe 1
# trusted_networks 212.17.35.

# Bayesian Auto Learn
auto_learn 1

# Safe Reporting
safe_reporting 0

# Full/Terse Reporting
use_terse_report 0

# Subject Tag
subject_tag *** Warning: Junk Mail ***

# Rewrite the Subject
rewrite_subject 0

# Use Bayesian Filtering
use_bayes 1

# OK locals
ok_locales en

# OK languages
ok_languages en fr de ja

# Required hits to be marked as spam
required_hits 6
mercury:~ server$
  • SPAMȽꤵ줿ʤ᡼륢ɥ쥹whitelist_fromȤƴҤ롥
#WhiteList
whitelist_from alerts-auctions@mail.yahoo.co.jp
whitelist_from friend@nospam.jp

  • ƥꥹȤɲä륢ɥ쥹ˤϡͤꤹǥ磻ɥɤѤǤ롥
#Blacklist
Blacklist_from *@spammail.com

ͭ

  • locate.cfѹ硤Spam AssassinƵưɬפ롥
  • MacOS Xξ硤Spam Assassinϥ륹ΥեȤClam AV鵯ưͤˤʤäƤΤǡ-HUPClamavΥǡǡlocate.cfɤ߹ߤ롥
mercury:~ root# ps -aux|grep clam
clamav 16999 0.0 0.1 28528 576 ?? Ss Sun03AM 0:00.27 freshclam -d -D -pfreshcl
am.pid -c 1
clamav 17193 0.0 2.1 59836 22016 ?? Ss 1:49PM 0:03.14 amavisd (master)
clamav 17197 0.0 2.0 59128 21100 ?? S 1:49PM 0:00.50 amavisd (ch1-avail)
clamav 17198 0.0 0.1 59076 1460 ?? S 1:49PM 0:00.01 amavisd (virgin child)
root 17248 0.0 0.0 27812 4 p0 R+ 1:50PM 0:00.00 grep clam
mercury:~ root#
  • killޥɤǡ-HUP롥
mercury:~ root# kill -HUP 59836
mercury:~ root#
  • ꤬ɤ߹ޤƤ롥


広告スペース
Google