*CentOS6.9にspamassassinをインストール [#y795528a]

RIGHT:更新日 &lastmod();

*CentOS6.9にspamassassinをインストール [#ue7fc735]

**CPANモジュールインストール [#mf26610f]

CPANモジュールはYAMLに依存しているので、YAMLがないと動かない。

 # yum install libyaml-devel

 # yum install gcc

-◆ssl 関係のライブラリをインストール

 # yum install openssl-devel zlib-devel readline-devel 


***perl-CPANのインストール [#oda8670c]

 # yum install perl-CPAN


***CPANモジュールインストールするための設定 [#c44f4f19]

 # perl -MCPAN -e shell
 
 CPAN is the world-wide archive of perl resources. It consists of about
 300 sites that all replicate the same contents around the globe. Many
 countries have at least one CPAN site already. The resources found on
 CPAN are easily accessible with the CPAN.pm module. If you want to use
 CPAN.pm, lots of things have to be configured. Fortunately, most of
 them can be determined automatically. If you prefer the automatic
 configuration, answer 'yes' below. 
 
 If you prefer to enter a dialog instead, you can answer 'no' to this
 question and I'll let you configure in small steps one thing after the
 other. (Note: you can revisit this dialog anytime later by typing 'o
 conf init' at the cpan prompt.)
 Would you like me to configure as much as possible automatically? [yes] ←Enter 
 
 (略)
 commit: wrote '/usr/share/perl5/CPAN/Config.pm'
 Terminal does not support AddHistory.
 
 cpan shell -- CPAN exploration and modules installation (v1.9402)
 Enter 'h' for help.
 
 cpan[1]> o conf prerequisites_policy follow  # 自動で yes と答えるため
     prerequisites_policy [follow]
 Please use 'o conf commit' to make the config permanent!
 
 cpan[2]> o conf commit  #  コミットする
 commit: wrote '/usr/share/perl5/CPAN/Config.pm'


***各種のCPANモジュールインストール [#i897d572]

-YAMLモジュールのインストール

 # perl -MCPAN -e shell
 Terminal does not support AddHistory.
 
 cpan shell -- CPAN exploration and modules installation (v1.9402)
 Enter 'h' for help.
 
 cpan[1]>  install YAML
 (略)
 
 nstalling /usr/local/share/man/man3/YAML::Node.3pm
 Installing /usr/local/share/man/man3/YAML.3pm
 Installing /usr/local/share/man/man3/YAML::Dumper.3pm
 Appending installation info to /usr/lib/perl5/perllocal.pod
   INGY/YAML-1.23.tar.gz
   /usr/bin/make install  -- OK
 CPAN: YAML loaded ok (v1.23)

-Net::DNSモジュールのインストール
 cpan[4]> install Net::DNS
 CPAN: Storable loaded ok (v2.20)
 Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tm p3679'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
   LWP not available
 
 Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
     "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
 Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
 ............................................................................DONE
 Warning: no success downloading '/root/.cpan/sources/modules/02packages.details.txt.gz.tmp3679'. \
 Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
 Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
     "http://www.perl.org/CPAN/modules/02packages.details.txt.gz"
 Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
   Database was generated on Sun, 13 Aug 2017 09:17:03 GMT
   HTTP::Date not available
 .............
   New CPAN.pm version (v2.16) available.
   [Currently running version is v1.9402]
   You might want to try
    install CPAN
    reload cpan
   to both upgrade CPAN.pm and run the new version without leaving
   the current session.
 
 
 ...............................................................DONE
 Warning: no success downloading '/root/.cpan/sources/modules/03modlist.data.gz. tmp3679'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
 
 Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
     "http://www.perl.org/CPAN/modules/03modlist.data.gz"
 Going to read '/root/.cpan/sources/modules/03modlist.data.gz'
 
 
 ppending installation info to /usr/lib/perl5/perllocal.pod
   NLNETLABS/Net-DNS-1.11.tar.gz
   /usr/bin/make install  -- OK
 Warning (usually harmless): 'YAML' not installed, will not store persistent state
 
 cpan[5]> exit
 Terminal does not support GetHistory.
 Lockfile removed.


***RazorをInstall [#s4a03c8f]

 # yum -y install spamassassin

 /usr/share/spamassassin/local.cf
 
 # chkconfig --level 345 spamassassin on
 
 # /etc/rc.d/init.d/spamassassin start


**参考 [#m9fd78ab]
-http://blog.kakakikikeke.tk/2012/10/perlcpanyaml.html

-http://linux.kororo.jp/cont/server/spamassassin.php

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS