Scientific Linux 6.1 で自宅サーバー再構築(その4)

October 3, 2011 – 9:36 am

自宅サーバーのOSをCentOS からScientific Linux 6.1 に変更し、再構築した際の作業記録、その4回目。
Mail Serverに係わる関連モジュール(postfix, dovecot, dovecot, clamAV, amavis-new)をインストール、設定した際の作業内容をメモしておいた。

Postfixのインストールと設定: Scientific Linux 6.x では、標準とするMTAとしてpostfixが採用されているようで、OSインストール時(ここではMinimal Desktop)に、既に、postfixがインストールされている。

postfixを動作させるには設定ファイル /etc/posftix/main.cf を編集すればよい。
編集内容を示すために、以下、オリジナルのconfiguration fileと編集済みのfileの差分をとったものを掲げる。なお、オリジナルのfileは **.bakというかたちで拡張子をつけている(以下、同じ)。

[root@yamasserver01 ~]# diff /etc/postfix/main.cf /etc/postfix/main.cf.bak
77d76
< myhostname = yamasserver01.yamasnet.com
85d83
< mydomain = yamasnet.com
101c99
< myorigin = $mydomain
---
> #myorigin = $mydomain
115c113
< inet_interfaces = all
---
> #inet_interfaces = all
118c116
< #inet_interfaces = localhost
---
> inet_interfaces = localhost
121,122c119
< #inet_protocols = all
< inet_protocols = ipv4
---
> inet_protocols = all
167c164
< mydestination = $myhostname, localhost.$mydomain, $mydomain 
---
> mydestination = $myhostname, localhost.$mydomain, localhost
270d266
< mynetworks = 192.168.11.0/24,127.0.0.0/8
300c296
< relay_domains = $mydestination
---
> #relay_domains = $mydestination
423c419
< home_mailbox = Maildir/
---
> #home_mailbox = Maildir/
681,692d676
< 
< # for SMTP-Auth settings
< 
< smtpd_sasl_type = dovecot
< smtpd_sasl_path = private/auth
< smtpd_sasl_auth_enable = yes
< smtpd_sasl_security_options = noanonymous
< smtpd_sasl_local_domain = $myhostname
< smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit
< smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject 
< 
< content_filter=smtp-amavis:[127.0.0.1]:10024

なお、ここで示した編集内容については、配送エージェントとしてdovecotを採用するとともに、SASL認証メカニズムを用いることを前提としている。

dovecotのインストールと設定: POP3/IMAPに対応したメール配送エージェントであるDovecotをインストール、設定する。

(1) dovecot のyum install

[root@yamasserver01 ~]#  yum install dovecot\*
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package dovecot-devel.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package dovecot-mysql.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package dovecot-pgsql.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package dovecot-pigeonhole.x86_64 1:2.0.9-2.el6_1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================
 Package                  Arch         Version                  Repository         Size
========================================================================================
Installing:
 dovecot                  x86_64       1:2.0.9-2.el6_1.1        sl-security       1.9 M
 dovecot-devel            x86_64       1:2.0.9-2.el6_1.1        sl-security       260 k
 dovecot-mysql            x86_64       1:2.0.9-2.el6_1.1        sl-security        37 k
 dovecot-pgsql            x86_64       1:2.0.9-2.el6_1.1        sl-security        39 k
 dovecot-pigeonhole       x86_64       1:2.0.9-2.el6_1.1        sl-security        97 k

Transaction Summary
========================================================================================
Install       5 Package(s)

Total download size: 2.3 M
Installed size: 6.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): dovecot-2.0.9-2.el6_1.1.x86_64.rpm                        | 1.9 MB     00:02     
(2/5): dovecot-devel-2.0.9-2.el6_1.1.x86_64.rpm                  | 260 kB     00:00     
(3/5): dovecot-mysql-2.0.9-2.el6_1.1.x86_64.rpm                  |  37 kB     00:00     
(4/5): dovecot-pgsql-2.0.9-2.el6_1.1.x86_64.rpm                  |  39 kB     00:00     
(5/5): dovecot-pigeonhole-2.0.9-2.el6_1.1.x86_64.rpm             |  97 kB     00:00     
----------------------------------------------------------------------------------------
Total                                                   640 kB/s | 2.3 MB     00:03     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                     1/5 
  Installing : 1:dovecot-pigeonhole-2.0.9-2.el6_1.1.x86_64                          2/5 
  Installing : 1:dovecot-pgsql-2.0.9-2.el6_1.1.x86_64                               3/5 
  Installing : 1:dovecot-mysql-2.0.9-2.el6_1.1.x86_64                               4/5 
  Installing : 1:dovecot-devel-2.0.9-2.el6_1.1.x86_64                               5/5 

Installed:
  dovecot.x86_64 1:2.0.9-2.el6_1.1              dovecot-devel.x86_64 1:2.0.9-2.el6_1.1  
  dovecot-mysql.x86_64 1:2.0.9-2.el6_1.1        dovecot-pgsql.x86_64 1:2.0.9-2.el6_1.1  
  dovecot-pigeonhole.x86_64 1:2.0.9-2.el6_1.1  

Complete!

(2) 設定ファイルの編集
(2-1) /etc/dovecot/dovecot.conf の編集

[root@yamasserver01 ~]# diff /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.conf.bak
26c26
< listen = *
---
> #listen = *, ::

(2-2) /etc/dovecot/conf.d/10-auth.conf の編集

[root@yamasserver01 ~]# diff /etc/dovecot/conf.d/10-auth.conf /etc/dovecot/conf.d/10-auth.conf.bak
10d9
< disable_plaintext_auth = no
98c97
< auth_mechanisms = plain login
---
> auth_mechanisms = plain

(2-3) /etc/dovecot/conf.d/10-mail.conf の編集

[root@yamasserver01 ~]# diff /etc/dovecot/conf.d/10-mail.conf /etc/dovecot/conf.d/10-mail.conf.bak
30c30
< mail_location = maildir:~/Maildir 
---
> #mail_location = 

(2-4) /etc/dovecot/conf.d/10-master.conf の編集

[root@yamasserver01 ~]#  diff /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-master.conf.bak
88,92c88,90
<   unix_listener /var/spool/postfix/private/auth {
<     mode = 0666
<     user = postfix
<     group = postfix
<   }
---
>   #unix_listener /var/spool/postfix/private/auth {
>   #  mode = 0666
>   #}

ウィルス対策のためのclamav、amavisd-new のインストールと設定:

(1) clamav の yum install

[root@yamasserver01 ~]# yum --enablerepo=epel install clamav\*
epel/metalink                                                                     | 5.5 kB     00:00     
epel                                                                              | 4.3 kB     00:00     
epel/primary_db                                                                   | 4.0 MB     00:03     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.97.2-5.el6 will be installed
---> Package clamav-db.x86_64 0:0.97.2-5.el6 will be installed
---> Package clamav-devel.x86_64 0:0.97.2-5.el6 will be installed
---> Package clamav-milter.x86_64 0:0.97.2-5.el6 will be installed
--> Processing Dependency: clamd = 0.97.2-5.el6 for package: clamav-milter-0.97.2-5.el6.x86_64
--> Processing Dependency: libmilter.so.1.0()(64bit) for package: clamav-milter-0.97.2-5.el6.x86_64
---> Package clamav-unofficial-sigs.noarch 0:3.7.1-4.el6 will be installed
--> Processing Dependency: rsync for package: clamav-unofficial-sigs-3.7.1-4.el6.noarch
--> Processing Dependency: bind-utils for package: clamav-unofficial-sigs-3.7.1-4.el6.noarch
--> Running transaction check
---> Package bind-utils.x86_64 32:9.7.3-2.el6_1.P3.2 will be installed
--> Processing Dependency: bind-libs = 32:9.7.3-2.el6_1.P3.2 for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
--> Processing Dependency: libisc.so.62()(64bit) for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
--> Processing Dependency: libisccfg.so.62()(64bit) for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
--> Processing Dependency: liblwres.so.60()(64bit) for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
--> Processing Dependency: libbind9.so.60()(64bit) for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
--> Processing Dependency: libdns.so.69()(64bit) for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
--> Processing Dependency: libisccc.so.60()(64bit) for package: 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64
---> Package clamd.x86_64 0:0.97.2-5.el6 will be installed
---> Package rsync.x86_64 0:3.0.6-5.el6_0.1 will be installed
---> Package sendmail-milter.x86_64 0:8.14.4-8.el6 will be installed
--> Running transaction check
---> Package bind-libs.x86_64 32:9.7.3-2.el6_1.P3.2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                        Arch           Version                         Repository           Size
=========================================================================================================
Installing:
 clamav                         x86_64         0.97.2-5.el6                    epel                 10 M
 clamav-db                      x86_64         0.97.2-5.el6                    epel                 29 M
 clamav-devel                   x86_64         0.97.2-5.el6                    epel                 15 k
 clamav-milter                  x86_64         0.97.2-5.el6                    epel                 77 k
 clamav-unofficial-sigs         noarch         3.7.1-4.el6                     epel                 38 k
Installing for dependencies:
 bind-libs                      x86_64         32:9.7.3-2.el6_1.P3.2           sl-security         838 k
 bind-utils                     x86_64         32:9.7.3-2.el6_1.P3.2           sl-security         176 k
 clamd                          x86_64         0.97.2-5.el6                    epel                130 k
 rsync                          x86_64         3.0.6-5.el6_0.1                 sl                  334 k
 sendmail-milter                x86_64         8.14.4-8.el6                    sl                   56 k

Transaction Summary
=========================================================================================================
Install      10 Package(s)

Total download size: 41 M
Installed size: 48 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): bind-libs-9.7.3-2.el6_1.P3.2.x86_64.rpm                                   | 838 kB     00:00     
(2/10): bind-utils-9.7.3-2.el6_1.P3.2.x86_64.rpm                                  | 176 kB     00:00     
(3/10): clamav-0.97.2-5.el6.x86_64.rpm                                            |  10 MB     00:03     
(4/10): clamav-db-0.97.2-5.el6.x86_64.rpm                                         |  29 MB     00:11     
(5/10): clamav-devel-0.97.2-5.el6.x86_64.rpm                                      |  15 kB     00:00     
(6/10): clamav-milter-0.97.2-5.el6.x86_64.rpm                                     |  77 kB     00:01     
(7/10): clamav-unofficial-sigs-3.7.1-4.el6.noarch.rpm                             |  38 kB     00:00     
(8/10): clamd-0.97.2-5.el6.x86_64.rpm                                             | 130 kB     00:00     
(9/10): rsync-3.0.6-5.el6_0.1.x86_64.rpm                                          | 334 kB     00:00     
(10/10): sendmail-milter-8.14.4-8.el6.x86_64.rpm                                  |  56 kB     00:00     
---------------------------------------------------------------------------------------------------------
Total                                                                    2.1 MB/s |  41 MB     00:19     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-5.noarch (@sl)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : sendmail-milter-8.14.4-8.el6.x86_64                                                  1/10 
  Installing : 32:bind-libs-9.7.3-2.el6_1.P3.2.x86_64                                               2/10 
  Installing : 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64                                              3/10 
  Installing : clamav-db-0.97.2-5.el6.x86_64                                                        4/10 
  Installing : clamav-0.97.2-5.el6.x86_64                                                           5/10 
  Installing : clamd-0.97.2-5.el6.x86_64                                                            6/10 
  Installing : rsync-3.0.6-5.el6_0.1.x86_64                                                         7/10 
  Installing : clamav-unofficial-sigs-3.7.1-4.el6.noarch                                            8/10 
  Installing : clamav-milter-0.97.2-5.el6.x86_64                                                    9/10 
  Installing : clamav-devel-0.97.2-5.el6.x86_64                                                    10/10 

Installed:
  clamav.x86_64 0:0.97.2-5.el6                            clamav-db.x86_64 0:0.97.2-5.el6                
  clamav-devel.x86_64 0:0.97.2-5.el6                      clamav-milter.x86_64 0:0.97.2-5.el6            
  clamav-unofficial-sigs.noarch 0:3.7.1-4.el6            

Dependency Installed:
  bind-libs.x86_64 32:9.7.3-2.el6_1.P3.2             bind-utils.x86_64 32:9.7.3-2.el6_1.P3.2            
  clamd.x86_64 0:0.97.2-5.el6                        rsync.x86_64 0:3.0.6-5.el6_0.1                     
  sendmail-milter.x86_64 0:8.14.4-8.el6             

Complete!

(2) amavisd-new の yum install

[root@yamasserver01 ~]# yum --enablerepo=epel install amavis\*
Loaded plugins: refresh-packagekit
epel/metalink                                                                             | 5.8 kB     00:00     
epel                                                                                      | 4.3 kB     00:00     
epel/primary_db                                                                           | 4.1 MB     00:01     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package amavisd-new.noarch 0:2.6.4-2.el6 will be installed
--> Processing Dependency: perl(Compress::Zlib) >= 1.35 for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Net::Server) >= 0.87 for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Mail::Header) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Convert::UUlib) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Crypt::OpenSSL::RSA) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Body) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(NetAddr::IP) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(IO::Stringy) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Decoder::NBit) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Unix::Syslog) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Head) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Decoder::QuotedPrint) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Net::DNS) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Archive::Tar) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Mail::Field) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Mail::Internet) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: altermime for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Net::LDAP) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: /usr/sbin/clamd for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Decoder::Base64) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Convert::TNEF) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: p7zip for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: cabextract for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Mail::SPF) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(IO::Socket::INET6) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: nomarch for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Entity) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Parser) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: arj for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Mail::DKIM) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Decoder::Binary) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(DBD::SQLite) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Mail::SpamAssassin) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Archive::Zip) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Digest::SHA) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Decoder::Gzip64) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Decoder::UU) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: lzop for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(BerkeleyDB) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(MIME::Words) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Razor2::Client::Version) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: perl(Socket6) for package: amavisd-new-2.6.4-2.el6.noarch
--> Processing Dependency: freeze for package: amavisd-new-2.6.4-2.el6.noarch
---> Package amavisd-new-snmp.noarch 0:2.6.4-2.el6 will be installed
--> Processing Dependency: perl(NetSNMP::default_store) for package: amavisd-new-snmp-2.6.4-2.el6.noarch
--> Processing Dependency: perl(NetSNMP::agent) for package: amavisd-new-snmp-2.6.4-2.el6.noarch
--> Processing Dependency: perl(NetSNMP::OID) for package: amavisd-new-snmp-2.6.4-2.el6.noarch
--> Processing Dependency: perl(NetSNMP::ASN) for package: amavisd-new-snmp-2.6.4-2.el6.noarch
--> Running transaction check
---> Package altermime.x86_64 0:0.3.10-3.el6 will be installed
---> Package arj.x86_64 0:3.10.22-12.el6 will be installed
---> Package cabextract.x86_64 0:1.3-3.el6 will be installed
--> Processing Dependency: libmspack.so.0()(64bit) for package: cabextract-1.3-3.el6.x86_64
---> Package clamd.x86_64 0:0.97.2-5.el6 will be installed
--> Processing Dependency: clamav = 0.97.2-5.el6 for package: clamd-0.97.2-5.el6.x86_64
--> Processing Dependency: libclamav.so.6(CLAMAV_PRIVATE)(64bit) for package: clamd-0.97.2-5.el6.x86_64
--> Processing Dependency: libclamav.so.6(CLAMAV_PUBLIC)(64bit) for package: clamd-0.97.2-5.el6.x86_64
--> Processing Dependency: libclamav.so.6()(64bit) for package: clamd-0.97.2-5.el6.x86_64
---> Package freeze.x86_64 0:2.5.0-11.el6 will be installed
---> Package lzop.x86_64 0:1.02-0.9.rc1.el6 will be installed
--> Processing Dependency: liblzo2.so.2()(64bit) for package: lzop-1.02-0.9.rc1.el6.x86_64
---> Package net-snmp-perl.x86_64 1:5.5-31.el6 will be installed
---> Package nomarch.x86_64 0:1.4-6.el6 will be installed
---> Package p7zip.x86_64 0:9.20.1-2.el6 will be installed
---> Package perl-Archive-Tar.x86_64 0:1.58-119.el6 will be installed
--> Processing Dependency: perl(IO::Zlib) for package: perl-Archive-Tar-1.58-119.el6.x86_64
--> Processing Dependency: perl(Package::Constants) for package: perl-Archive-Tar-1.58-119.el6.x86_64
---> Package perl-Archive-Zip.noarch 0:1.30-2.el6 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) for package: perl-Archive-Zip-1.30-2.el6.noarch
---> Package perl-BerkeleyDB.x86_64 0:0.43-3.el6 will be installed
---> Package perl-Compress-Zlib.x86_64 0:2.020-119.el6 will be installed
--> Processing Dependency: perl(IO::Uncompress::Gunzip) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6.x86_64
--> Processing Dependency: perl(IO::Compress::Gzip) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6.x86_64
--> Processing Dependency: perl(IO::Compress::Base::Common) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6.x86_64
--> Processing Dependency: perl(IO::Compress::Gzip::Constants) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6.x86_64
---> Package perl-Convert-TNEF.noarch 0:0.17-10.el6 will be installed
---> Package perl-Convert-UUlib.x86_64 1:1.34-1.el6 will be installed
---> Package perl-Crypt-OpenSSL-RSA.x86_64 0:0.25-10.1.el6 will be installed
--> Processing Dependency: perl(Crypt::OpenSSL::Bignum) for package: perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64
--> Processing Dependency: perl(Crypt::OpenSSL::Random) for package: perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64
---> Package perl-DBD-SQLite.x86_64 0:1.27-3.el6 will be installed
---> Package perl-Digest-SHA.x86_64 1:5.47-119.el6 will be installed
---> Package perl-IO-Socket-INET6.noarch 0:2.56-4.el6 will be installed
---> Package perl-IO-stringy.noarch 0:2.110-10.1.el6 will be installed
---> Package perl-LDAP.noarch 1:0.40-1.el6 will be installed
--> Processing Dependency: perl(LWP::MediaTypes) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(XML::SAX::Writer) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(LWP::Protocol) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(XML::SAX::Base) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(HTTP::Status) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(HTTP::Response) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(HTTP::Negotiate) for package: 1:perl-LDAP-0.40-1.el6.noarch
--> Processing Dependency: perl(Convert::ASN1) for package: 1:perl-LDAP-0.40-1.el6.noarch
---> Package perl-MIME-tools.noarch 0:5.427-4.el6 will be installed
--> Processing Dependency: perl(Convert::BinHex) for package: perl-MIME-tools-5.427-4.el6.noarch
---> Package perl-Mail-DKIM.noarch 0:0.37-2.el6 will be installed
---> Package perl-Mail-SPF.noarch 0:2.007-1.el6 will be installed
---> Package perl-MailTools.noarch 0:2.04-4.el6 will be installed
--> Processing Dependency: perl(Date::Format) for package: perl-MailTools-2.04-4.el6.noarch
--> Processing Dependency: perl(Date::Parse) for package: perl-MailTools-2.04-4.el6.noarch
---> Package perl-Net-DNS.x86_64 0:0.65-2.el6 will be installed
---> Package perl-Net-Server.noarch 0:0.97-7.el6 will be installed
--> Processing Dependency: perl(IO::Multiplex) for package: perl-Net-Server-0.97-7.el6.noarch
---> Package perl-NetAddr-IP.x86_64 0:4.027-3.el6 will be installed
---> Package perl-Razor-Agent.x86_64 0:2.85-6.el6 will be installed
---> Package perl-Socket6.x86_64 0:0.23-3.el6 will be installed
---> Package perl-Unix-Syslog.x86_64 0:1.1-3.el6 will be installed
---> Package spamassassin.x86_64 0:3.3.1-2.el6 will be installed
--> Processing Dependency: perl(HTML::Parser) >= 3.43 for package: spamassassin-3.3.1-2.el6.x86_64
--> Processing Dependency: perl-HTML-Parser >= 3.43 for package: spamassassin-3.3.1-2.el6.x86_64
--> Processing Dependency: perl(Encode::Detect) for package: spamassassin-3.3.1-2.el6.x86_64
--> Processing Dependency: procmail for package: spamassassin-3.3.1-2.el6.x86_64
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: spamassassin-3.3.1-2.el6.x86_64
--> Running transaction check
---> Package clamav.x86_64 0:0.97.2-5.el6 will be installed
--> Processing Dependency: clamav-db = 0.97.2-5.el6 for package: clamav-0.97.2-5.el6.x86_64
---> Package libmspack.x86_64 0:0.2-0.1.20100723alpha.el6 will be installed
---> Package lzo.x86_64 0:2.03-3.1.el6 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 0:2.023-119.el6 will be installed
---> Package perl-Convert-ASN1.noarch 0:0.22-1.el6 will be installed
---> Package perl-Convert-BinHex.noarch 0:1.119-10.1.el6 will be installed
---> Package perl-Crypt-OpenSSL-Bignum.x86_64 0:0.04-8.1.el6 will be installed
---> Package perl-Crypt-OpenSSL-Random.x86_64 0:0.04-9.1.el6 will be installed
---> Package perl-Encode-Detect.x86_64 0:1.01-2.el6 will be installed
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-119.el6 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.55-119.el6.x86_64
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-119.el6.x86_64
---> Package perl-HTML-Parser.x86_64 0:3.64-2.el6 will be installed
--> Processing Dependency: perl(HTML::Tagset) >= 3.03 for package: perl-HTML-Parser-3.64-2.el6.x86_64
--> Processing Dependency: perl(HTML::Tagset) for package: perl-HTML-Parser-3.64-2.el6.x86_64
---> Package perl-IO-Compress-Base.x86_64 0:2.020-119.el6 will be installed
---> Package perl-IO-Compress-Zlib.x86_64 0:2.020-119.el6 will be installed
---> Package perl-IO-Multiplex.noarch 0:1.13-1.el6 will be installed
---> Package perl-IO-Zlib.x86_64 1:1.09-119.el6 will be installed
---> Package perl-Package-Constants.x86_64 1:0.02-119.el6 will be installed
---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will be installed
---> Package perl-XML-SAX.noarch 0:0.96-7.el6 will be installed
--> Processing Dependency: perl(XML::LibXML::Common) for package: perl-XML-SAX-0.96-7.el6.noarch
--> Processing Dependency: perl(XML::NamespaceSupport) for package: perl-XML-SAX-0.96-7.el6.noarch
--> Processing Dependency: perl(XML::LibXML) for package: perl-XML-SAX-0.96-7.el6.noarch
---> Package perl-XML-SAX-Writer.noarch 0:0.50-8.el6 will be installed
--> Processing Dependency: perl(Text::Iconv) for package: perl-XML-SAX-Writer-0.50-8.el6.noarch
--> Processing Dependency: perl(XML::Filter::BufferText) for package: perl-XML-SAX-Writer-0.50-8.el6.noarch
---> Package perl-libwww-perl.noarch 0:5.833-2.el6 will be installed
---> Package procmail.x86_64 0:3.22-25.1.el6 will be installed
--> Running transaction check
---> Package clamav-db.x86_64 0:0.97.2-5.el6 will be installed
---> Package perl-HTML-Tagset.noarch 0:3.20-4.el6 will be installed
---> Package perl-Test-Harness.x86_64 0:3.17-119.el6 will be installed
---> Package perl-Text-Iconv.x86_64 0:1.7-6.el6 will be installed
---> Package perl-XML-Filter-BufferText.noarch 0:1.01-8.el6 will be installed
---> Package perl-XML-LibXML.x86_64 1:1.70-5.el6 will be installed
---> Package perl-XML-NamespaceSupport.noarch 0:1.10-3.el6 will be installed
---> Package perl-devel.x86_64 4:5.10.1-119.el6 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-119.el6.x86_64
--> Running transaction check
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-119.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================
 Package                              Arch             Version                              Repository      Size
=================================================================================================================
Installing:
 amavisd-new                          noarch           2.6.4-2.el6                          epel           734 k
 amavisd-new-snmp                     noarch           2.6.4-2.el6                          epel            22 k
Installing for dependencies:
 altermime                            x86_64           0.3.10-3.el6                         epel            52 k
 arj                                  x86_64           3.10.22-12.el6                       epel           161 k
 cabextract                           x86_64           1.3-3.el6                            epel            40 k
 clamav                               x86_64           0.97.2-5.el6                         epel            10 M
 clamav-db                            x86_64           0.97.2-5.el6                         epel            29 M
 clamd                                x86_64           0.97.2-5.el6                         epel           130 k
 freeze                               x86_64           2.5.0-11.el6                         epel            27 k
 libmspack                            x86_64           0.2-0.1.20100723alpha.el6            epel            50 k
 lzo                                  x86_64           2.03-3.1.el6                         sl              54 k
 lzop                                 x86_64           1.02-0.9.rc1.el6                     epel            50 k
 net-snmp-perl                        x86_64           1:5.5-31.el6                         sl             314 k
 nomarch                              x86_64           1.4-6.el6                            epel            18 k
 p7zip                                x86_64           9.20.1-2.el6                         epel           624 k
 perl-Archive-Tar                     x86_64           1.58-119.el6                         sl              69 k
 perl-Archive-Zip                     noarch           1.30-2.el6                           sl             106 k
 perl-BerkeleyDB                      x86_64           0.43-3.el6                           epel           159 k
 perl-Compress-Raw-Zlib               x86_64           2.023-119.el6                        sl              66 k
 perl-Compress-Zlib                   x86_64           2.020-119.el6                        sl              41 k
 perl-Convert-ASN1                    noarch           0.22-1.el6                           sl              42 k
 perl-Convert-BinHex                  noarch           1.119-10.1.el6                       sl              42 k
 perl-Convert-TNEF                    noarch           0.17-10.el6                          epel            20 k
 perl-Convert-UUlib                   x86_64           1:1.34-1.el6                         epel           217 k
 perl-Crypt-OpenSSL-Bignum            x86_64           0.04-8.1.el6                         sl              33 k
 perl-Crypt-OpenSSL-RSA               x86_64           0.25-10.1.el6                        sl              37 k
 perl-Crypt-OpenSSL-Random            x86_64           0.04-9.1.el6                         sl              21 k
 perl-DBD-SQLite                      x86_64           1.27-3.el6                           sl              82 k
 perl-Digest-SHA                      x86_64           1:5.47-119.el6                       sl              60 k
 perl-Encode-Detect                   x86_64           1.01-2.el6                           sl              80 k
 perl-ExtUtils-MakeMaker              x86_64           6.55-119.el6                         sl             289 k
 perl-ExtUtils-ParseXS                x86_64           1:2.2003.0-119.el6                   sl              41 k
 perl-HTML-Parser                     x86_64           3.64-2.el6                           sl             108 k
 perl-HTML-Tagset                     noarch           3.20-4.el6                           sl              15 k
 perl-IO-Compress-Base                x86_64           2.020-119.el6                        sl              65 k
 perl-IO-Compress-Zlib                x86_64           2.020-119.el6                        sl             132 k
 perl-IO-Multiplex                    noarch           1.13-1.el6                           epel            24 k
 perl-IO-Socket-INET6                 noarch           2.56-4.el6                           sl              16 k
 perl-IO-Zlib                         x86_64           1:1.09-119.el6                       sl              29 k
 perl-IO-stringy                      noarch           2.110-10.1.el6                       sl              67 k
 perl-LDAP                            noarch           1:0.40-1.el6                         sl             353 k
 perl-MIME-tools                      noarch           5.427-4.el6                          sl             246 k
 perl-Mail-DKIM                       noarch           0.37-2.el6                           sl             120 k
 perl-Mail-SPF                        noarch           2.007-1.el6                          epel           136 k
 perl-MailTools                       noarch           2.04-4.el6                           sl             100 k
 perl-Net-DNS                         x86_64           0.65-2.el6                           sl             231 k
 perl-Net-Server                      noarch           0.97-7.el6                           epel           142 k
 perl-NetAddr-IP                      x86_64           4.027-3.el6                          sl              94 k
 perl-Package-Constants               x86_64           1:0.02-119.el6                       sl              23 k
 perl-Razor-Agent                     x86_64           2.85-6.el6                           epel           119 k
 perl-Socket6                         x86_64           0.23-3.el6                           sl              22 k
 perl-Test-Harness                    x86_64           3.17-119.el6                         sl             228 k
 perl-Text-Iconv                      x86_64           1.7-6.el6                            sl              21 k
 perl-TimeDate                        noarch           1:1.16-11.1.el6                      sl              33 k
 perl-Unix-Syslog                     x86_64           1.1-3.el6                            epel            28 k
 perl-XML-Filter-BufferText           noarch           1.01-8.el6                           sl             8.5 k
 perl-XML-LibXML                      x86_64           1:1.70-5.el6                         sl             363 k
 perl-XML-NamespaceSupport            noarch           1.10-3.el6                           sl              16 k
 perl-XML-SAX                         noarch           0.96-7.el6                           sl              77 k
 perl-XML-SAX-Writer                  noarch           0.50-8.el6                           sl              23 k
 perl-devel                           x86_64           4:5.10.1-119.el6                     sl             419 k
 perl-libwww-perl                     noarch           5.833-2.el6                          sl             386 k
 procmail                             x86_64           3.22-25.1.el6                        sl             161 k
 spamassassin                         x86_64           3.3.1-2.el6                          sl             1.1 M

Transaction Summary
=================================================================================================================
Install      64 Package(s)

Total download size: 47 M
Installed size: 66 M
Is this ok [y/N]: y
Downloading Packages:
(1/64): altermime-0.3.10-3.el6.x86_64.rpm                                                 |  52 kB     00:00     
(2/64): amavisd-new-2.6.4-2.el6.noarch.rpm                                                | 734 kB     00:00     
(3/64): amavisd-new-snmp-2.6.4-2.el6.noarch.rpm                                           |  22 kB     00:00     
(4/64): arj-3.10.22-12.el6.x86_64.rpm                                                     | 161 kB     00:00     
(5/64): cabextract-1.3-3.el6.x86_64.rpm                                                   |  40 kB     00:00     
(6/64): clamav-0.97.2-5.el6.x86_64.rpm                                                    |  10 MB     00:03     
(7/64): clamav-db-0.97.2-5.el6.x86_64.rpm                                                 |  29 MB     00:11     
(8/64): clamd-0.97.2-5.el6.x86_64.rpm                                                     | 130 kB     00:00     
(9/64): freeze-2.5.0-11.el6.x86_64.rpm                                                    |  27 kB     00:00     
(10/64): libmspack-0.2-0.1.20100723alpha.el6.x86_64.rpm                                   |  50 kB     00:00     
(11/64): lzo-2.03-3.1.el6.x86_64.rpm                                                      |  54 kB     00:00     
(12/64): lzop-1.02-0.9.rc1.el6.x86_64.rpm                                                 |  50 kB     00:00     
(13/64): net-snmp-perl-5.5-31.el6.x86_64.rpm                                              | 314 kB     00:01     
(14/64): nomarch-1.4-6.el6.x86_64.rpm                                                     |  18 kB     00:00     
(15/64): p7zip-9.20.1-2.el6.x86_64.rpm                                                    | 624 kB     00:00     
(16/64): perl-Archive-Tar-1.58-119.el6.x86_64.rpm                                         |  69 kB     00:00     
(17/64): perl-Archive-Zip-1.30-2.el6.noarch.rpm                                           | 106 kB     00:00     
(18/64): perl-BerkeleyDB-0.43-3.el6.x86_64.rpm                                            | 159 kB     00:00     
(19/64): perl-Compress-Raw-Zlib-2.023-119.el6.x86_64.rpm                                  |  66 kB     00:00     
(20/64): perl-Compress-Zlib-2.020-119.el6.x86_64.rpm                                      |  41 kB     00:00     
(21/64): perl-Convert-ASN1-0.22-1.el6.noarch.rpm                                          |  42 kB     00:00     
(22/64): perl-Convert-BinHex-1.119-10.1.el6.noarch.rpm                                    |  42 kB     00:00     
(23/64): perl-Convert-TNEF-0.17-10.el6.noarch.rpm                                         |  20 kB     00:00     
(24/64): perl-Convert-UUlib-1.34-1.el6.x86_64.rpm                                         | 217 kB     00:00     
(25/64): perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64.rpm                                |  33 kB     00:00     
(26/64): perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64.rpm                                  |  37 kB     00:00     
(27/64): perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64.rpm                                |  21 kB     00:00     
(28/64): perl-DBD-SQLite-1.27-3.el6.x86_64.rpm                                            |  82 kB     00:00     
(29/64): perl-Digest-SHA-5.47-119.el6.x86_64.rpm                                          |  60 kB     00:00     
(30/64): perl-Encode-Detect-1.01-2.el6.x86_64.rpm                                         |  80 kB     00:00     
(31/64): perl-ExtUtils-MakeMaker-6.55-119.el6.x86_64.rpm                                  | 289 kB     00:01     
(32/64): perl-ExtUtils-ParseXS-2.2003.0-119.el6.x86_64.rpm                                |  41 kB     00:00     
(33/64): perl-HTML-Parser-3.64-2.el6.x86_64.rpm                                           | 108 kB     00:01     
(34/64): perl-HTML-Tagset-3.20-4.el6.noarch.rpm                                           |  15 kB     00:00     
(35/64): perl-IO-Compress-Base-2.020-119.el6.x86_64.rpm                                   |  65 kB     00:00     
(36/64): perl-IO-Compress-Zlib-2.020-119.el6.x86_64.rpm                                   | 132 kB     00:01     
(37/64): perl-IO-Multiplex-1.13-1.el6.noarch.rpm                                          |  24 kB     00:00     
(38/64): perl-IO-Socket-INET6-2.56-4.el6.noarch.rpm                                       |  16 kB     00:00     
(39/64): perl-IO-Zlib-1.09-119.el6.x86_64.rpm                                             |  29 kB     00:00     
(40/64): perl-IO-stringy-2.110-10.1.el6.noarch.rpm                                        |  67 kB     00:00     
(41/64): perl-LDAP-0.40-1.el6.noarch.rpm                                                  | 353 kB     00:01     
(42/64): perl-MIME-tools-5.427-4.el6.noarch.rpm                                           | 246 kB     00:00     
(43/64): perl-Mail-DKIM-0.37-2.el6.noarch.rpm                                             | 120 kB     00:00     
(44/64): perl-Mail-SPF-2.007-1.el6.noarch.rpm                                             | 136 kB     00:00     
(45/64): perl-MailTools-2.04-4.el6.noarch.rpm                                             | 100 kB     00:00     
(46/64): perl-Net-DNS-0.65-2.el6.x86_64.rpm                                               | 231 kB     00:00     
(47/64): perl-Net-Server-0.97-7.el6.noarch.rpm                                            | 142 kB     00:00     
(48/64): perl-NetAddr-IP-4.027-3.el6.x86_64.rpm                                           |  94 kB     00:00     
(49/64): perl-Package-Constants-0.02-119.el6.x86_64.rpm                                   |  23 kB     00:00     
(50/64): perl-Razor-Agent-2.85-6.el6.x86_64.rpm                                           | 119 kB     00:00     
(51/64): perl-Socket6-0.23-3.el6.x86_64.rpm                                               |  22 kB     00:00     
(52/64): perl-Test-Harness-3.17-119.el6.x86_64.rpm                                        | 228 kB     00:01     
(53/64): perl-Text-Iconv-1.7-6.el6.x86_64.rpm                                             |  21 kB     00:00     
(54/64): perl-TimeDate-1.16-11.1.el6.noarch.rpm                                           |  33 kB     00:00     
(55/64): perl-Unix-Syslog-1.1-3.el6.x86_64.rpm                                            |  28 kB     00:00     
(56/64): perl-XML-Filter-BufferText-1.01-8.el6.noarch.rpm                                 | 8.5 kB     00:00     
(57/64): perl-XML-LibXML-1.70-5.el6.x86_64.rpm                                            | 363 kB     00:02     
(58/64): perl-XML-NamespaceSupport-1.10-3.el6.noarch.rpm                                  |  16 kB     00:00     
(59/64): perl-XML-SAX-0.96-7.el6.noarch.rpm                                               |  77 kB     00:00     
(60/64): perl-XML-SAX-Writer-0.50-8.el6.noarch.rpm                                        |  23 kB     00:00     
(61/64): perl-devel-5.10.1-119.el6.x86_64.rpm                                             | 419 kB     00:03     
(62/64): perl-libwww-perl-5.833-2.el6.noarch.rpm                                          | 386 kB     00:02     
(63/64): procmail-3.22-25.1.el6.x86_64.rpm                                                | 161 kB     00:01     
(64/64): spamassassin-3.3.1-2.el6.x86_64.rpm                                              | 1.1 MB     00:06     
-----------------------------------------------------------------------------------------------------------------
Total                                                                            750 kB/s |  47 MB     01:04     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-5.noarch (@sl)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-Net-DNS-0.65-2.el6.x86_64                                                               1/64 
  Installing : perl-NetAddr-IP-4.027-3.el6.x86_64                                                           2/64 
  Installing : perl-IO-stringy-2.110-10.1.el6.noarch                                                        3/64 
  Installing : perl-XML-NamespaceSupport-1.10-3.el6.noarch                                                  4/64 
  Installing : perl-Compress-Raw-Zlib-2.023-119.el6.x86_64                                                  5/64 
  Installing : perl-IO-Compress-Base-2.020-119.el6.x86_64                                                   6/64 
  Installing : perl-Unix-Syslog-1.1-3.el6.x86_64                                                            7/64 
  Installing : perl-Socket6-0.23-3.el6.x86_64                                                               8/64 
  Installing : perl-IO-Socket-INET6-2.56-4.el6.noarch                                                       9/64 
  Installing : 1:perl-Digest-SHA-5.47-119.el6.x86_64                                                       10/64 
  Installing : perl-BerkeleyDB-0.43-3.el6.x86_64                                                           11/64 
  Installing : perl-IO-Compress-Zlib-2.020-119.el6.x86_64                                                  12/64 
  Installing : perl-Compress-Zlib-2.020-119.el6.x86_64                                                     13/64 
  Installing : 1:perl-IO-Zlib-1.09-119.el6.x86_64                                                          14/64 
  Installing : perl-Archive-Zip-1.30-2.el6.noarch                                                          15/64 
  Installing : 1:perl-XML-LibXML-1.70-5.el6.x86_64                                                         16/64 
  Installing : perl-XML-SAX-0.96-7.el6.noarch                                                              17/64 
  Installing : perl-XML-Filter-BufferText-1.01-8.el6.noarch                                                18/64 
  Installing : perl-Mail-SPF-2.007-1.el6.noarch                                                            19/64 
  Installing : perl-Razor-Agent-2.85-6.el6.x86_64                                                          20/64 
  Installing : perl-ExtUtils-MakeMaker-6.55-119.el6.x86_64                                                 21/64 
  Installing : perl-Test-Harness-3.17-119.el6.x86_64                                                       22/64 
  Installing : 4:perl-devel-5.10.1-119.el6.x86_64                                                          23/64 
  Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-119.el6.x86_64                                             24/64 
  Installing : perl-Encode-Detect-1.01-2.el6.x86_64                                                        25/64 
  Installing : clamav-db-0.97.2-5.el6.x86_64                                                               26/64 
  Installing : clamav-0.97.2-5.el6.x86_64                                                                  27/64 
  Installing : clamd-0.97.2-5.el6.x86_64                                                                   28/64 
  Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch                                                        29/64 
  Installing : perl-MailTools-2.04-4.el6.noarch                                                            30/64 
  Installing : perl-Convert-BinHex-1.119-10.1.el6.noarch                                                   31/64 
  Installing : perl-MIME-tools-5.427-4.el6.noarch                                                          32/64 
  Installing : perl-Convert-TNEF-0.17-10.el6.noarch                                                        33/64 
  Installing : perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64                                               34/64 
  Installing : altermime-0.3.10-3.el6.x86_64                                                               35/64 
  Installing : perl-HTML-Tagset-3.20-4.el6.noarch                                                          36/64 
  Installing : perl-HTML-Parser-3.64-2.el6.x86_64                                                          37/64 
  Installing : perl-libwww-perl-5.833-2.el6.noarch                                                         38/64 
  Installing : 1:perl-Convert-UUlib-1.34-1.el6.x86_64                                                      39/64 
  Installing : freeze-2.5.0-11.el6.x86_64                                                                  40/64 
  Installing : 1:perl-Package-Constants-0.02-119.el6.x86_64                                                41/64 
  Installing : perl-Archive-Tar-1.58-119.el6.x86_64                                                        42/64 
  Installing : perl-DBD-SQLite-1.27-3.el6.x86_64                                                           43/64 
  Installing : 1:net-snmp-perl-5.5-31.el6.x86_64                                                           44/64 
  Installing : libmspack-0.2-0.1.20100723alpha.el6.x86_64                                                  45/64 
  Installing : cabextract-1.3-3.el6.x86_64                                                                 46/64 
  Installing : procmail-3.22-25.1.el6.x86_64                                                               47/64 
  Installing : perl-Convert-ASN1-0.22-1.el6.noarch                                                         48/64 
  Installing : p7zip-9.20.1-2.el6.x86_64                                                                   49/64 
  Installing : lzo-2.03-3.1.el6.x86_64                                                                     50/64 
  Installing : lzop-1.02-0.9.rc1.el6.x86_64                                                                51/64 
  Installing : perl-IO-Multiplex-1.13-1.el6.noarch                                                         52/64 
  Installing : perl-Net-Server-0.97-7.el6.noarch                                                           53/64 
  Installing : arj-3.10.22-12.el6.x86_64                                                                   54/64 
  Installing : nomarch-1.4-6.el6.x86_64                                                                    55/64 
  Installing : perl-Text-Iconv-1.7-6.el6.x86_64                                                            56/64 
  Installing : perl-XML-SAX-Writer-0.50-8.el6.noarch                                                       57/64 
  Installing : 1:perl-LDAP-0.40-1.el6.noarch                                                               58/64 
  Installing : perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64                                               59/64 
  Installing : perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64                                                 60/64 
  Installing : perl-Mail-DKIM-0.37-2.el6.noarch                                                            61/64 
  Installing : spamassassin-3.3.1-2.el6.x86_64                                                             62/64 
  Installing : amavisd-new-2.6.4-2.el6.noarch                                                              63/64 
  Installing : amavisd-new-snmp-2.6.4-2.el6.noarch                                                         64/64 

Installed:
  amavisd-new.noarch 0:2.6.4-2.el6                     amavisd-new-snmp.noarch 0:2.6.4-2.el6                    

Dependency Installed:
  altermime.x86_64 0:0.3.10-3.el6                         arj.x86_64 0:3.10.22-12.el6                            
  cabextract.x86_64 0:1.3-3.el6                           clamav.x86_64 0:0.97.2-5.el6                           
  clamav-db.x86_64 0:0.97.2-5.el6                         clamd.x86_64 0:0.97.2-5.el6                            
  freeze.x86_64 0:2.5.0-11.el6                            libmspack.x86_64 0:0.2-0.1.20100723alpha.el6           
  lzo.x86_64 0:2.03-3.1.el6                               lzop.x86_64 0:1.02-0.9.rc1.el6                         
  net-snmp-perl.x86_64 1:5.5-31.el6                       nomarch.x86_64 0:1.4-6.el6                             
  p7zip.x86_64 0:9.20.1-2.el6                             perl-Archive-Tar.x86_64 0:1.58-119.el6                 
  perl-Archive-Zip.noarch 0:1.30-2.el6                    perl-BerkeleyDB.x86_64 0:0.43-3.el6                    
  perl-Compress-Raw-Zlib.x86_64 0:2.023-119.el6           perl-Compress-Zlib.x86_64 0:2.020-119.el6              
  perl-Convert-ASN1.noarch 0:0.22-1.el6                   perl-Convert-BinHex.noarch 0:1.119-10.1.el6            
  perl-Convert-TNEF.noarch 0:0.17-10.el6                  perl-Convert-UUlib.x86_64 1:1.34-1.el6                 
  perl-Crypt-OpenSSL-Bignum.x86_64 0:0.04-8.1.el6         perl-Crypt-OpenSSL-RSA.x86_64 0:0.25-10.1.el6          
  perl-Crypt-OpenSSL-Random.x86_64 0:0.04-9.1.el6         perl-DBD-SQLite.x86_64 0:1.27-3.el6                    
  perl-Digest-SHA.x86_64 1:5.47-119.el6                   perl-Encode-Detect.x86_64 0:1.01-2.el6                 
  perl-ExtUtils-MakeMaker.x86_64 0:6.55-119.el6           perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-119.el6        
  perl-HTML-Parser.x86_64 0:3.64-2.el6                    perl-HTML-Tagset.noarch 0:3.20-4.el6                   
  perl-IO-Compress-Base.x86_64 0:2.020-119.el6            perl-IO-Compress-Zlib.x86_64 0:2.020-119.el6           
  perl-IO-Multiplex.noarch 0:1.13-1.el6                   perl-IO-Socket-INET6.noarch 0:2.56-4.el6               
  perl-IO-Zlib.x86_64 1:1.09-119.el6                      perl-IO-stringy.noarch 0:2.110-10.1.el6                
  perl-LDAP.noarch 1:0.40-1.el6                           perl-MIME-tools.noarch 0:5.427-4.el6                   
  perl-Mail-DKIM.noarch 0:0.37-2.el6                      perl-Mail-SPF.noarch 0:2.007-1.el6                     
  perl-MailTools.noarch 0:2.04-4.el6                      perl-Net-DNS.x86_64 0:0.65-2.el6                       
  perl-Net-Server.noarch 0:0.97-7.el6                     perl-NetAddr-IP.x86_64 0:4.027-3.el6                   
  perl-Package-Constants.x86_64 1:0.02-119.el6            perl-Razor-Agent.x86_64 0:2.85-6.el6                   
  perl-Socket6.x86_64 0:0.23-3.el6                        perl-Test-Harness.x86_64 0:3.17-119.el6                
  perl-Text-Iconv.x86_64 0:1.7-6.el6                      perl-TimeDate.noarch 1:1.16-11.1.el6                   
  perl-Unix-Syslog.x86_64 0:1.1-3.el6                     perl-XML-Filter-BufferText.noarch 0:1.01-8.el6         
  perl-XML-LibXML.x86_64 1:1.70-5.el6                     perl-XML-NamespaceSupport.noarch 0:1.10-3.el6          
  perl-XML-SAX.noarch 0:0.96-7.el6                        perl-XML-SAX-Writer.noarch 0:0.50-8.el6                
  perl-devel.x86_64 4:5.10.1-119.el6                      perl-libwww-perl.noarch 0:5.833-2.el6                  
  procmail.x86_64 0:3.22-25.1.el6                         spamassassin.x86_64 0:3.3.1-2.el6                      

Complete!

(3) clamd, amavisd-new 導入に係わる設定

(3-1) /etc/clamd.conf の編集

[root@yamasserver01 ~]# diff /etc/clamd.conf /etc/clamd.conf.bak
96c96
< #TCPSocket 3310
---
> TCPSocket 3310
189c189
< #User clam
---
> User clam

(3-2) /etc/clamd.d/amavisd.conf の編集

[root@yamasserver01 ~]# 
diff /etc/clamd.d/amavisd.conf /etc/clamd.d/amavisd.conf.bak
20,21c20
< #LocalSocket /var/spool/amavisd/clamd.sock
< LocalSocket /var/run/clamav/clamd.sock
---
> LocalSocket /var/spool/amavisd/clamd.sock

(3-3) /etc/amavisd/amavisd.conf の編集

[root@yamasserver01 ~]# diff /etc/amavisd/amavisd.conf /etc/amavisd/amavisd.conf.bak
21,22c21
< #$mydomain = 'example.com';   # a convenient default for other settings
< $mydomain = 'yamasnet.com';
---
> $mydomain = 'example.com';   # a convenient default for other settings
154d152
< $myhostname = 'yamasserver01.yamasnet.com';
159,160c157
< #$final_virus_destiny      = D_DISCARD;
< $final_virus_destiny      = D_REJECT;
---
> $final_virus_destiny      = D_DISCARD;
162,163c159
< #$final_spam_destiny       = D_DISCARD;
< $final_spam_destiny       = D_PASS;
---
> $final_spam_destiny       = D_DISCARD;
368c364
<   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
---
>   \&ask_daemon, ["CONTSCAN {}\n", "/var/spool/amavisd/clamd.sock"],

(3-4) /etc/postfix/master.cf の編集

[root@yamasserver01 ~]# diff /etc/postfix/master.cf /etc/postfix/master.cf.bak
12c12
< submission inet n       -       n       -       -       smtpd
---
> #submission inet n       -       n       -       -       smtpd
14,15c14,15
<   -o smtpd_sasl_auth_enable=yes
<   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
---
> #  -o smtpd_sasl_auth_enable=yes
> #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
105,123d104
< 
< smtp-amavis unix -    -    n    -    2  smtp
<     -o smtp_data_done_timeout=1200
<     -o smtp_send_xforward_command=yes
<     -o disable_dns_lookups=yes
< 127.0.0.1:10025 inet n    -    n    -    -  smtpd
<     -o content_filter=
<     -o local_recipient_maps=
<     -o relay_recipient_maps=
<     -o smtpd_restriction_classes=
<     -o smtpd_client_restrictions=
<     -o smtpd_helo_restrictions=
<     -o smtpd_sender_restrictions=
<     -o smtpd_recipient_restrictions=permit_mynetworks,reject
<     -o mynetworks=127.0.0.0/8
<     -o strict_rfc821_envelopes=yes
<     -o smtpd_error_sleep_time=0
<     -o smtpd_soft_error_limit=1001
<     -o smtpd_hard_error_limit=1000

Mail サーバーの起動と自動起動: 以上で関連モジュールのインストール/設定を終了したところで、サーバーの起動ならびに自動起動の設定を行う。

(1) 関連サービスの立ち上げ

[root@yamasserver01 ~]# service postfix start
Starting postfix:                                          [  OK  ]
[root@yamasserver01 ~]# service dovecot start
Starting Dovecot Imap:                                     [  OK  ]
[root@yamasserver01 ~]# service clamd start
Starting Clam AntiVirus Daemon: Bytecode: Security mode set to "TrustSigned".
                                                           [  OK  ]
[root@yamasserver01 ~]# service amavisd start
Starting amavisd:                                          [  OK  ]
[root@yamasserver01 ~]# service spamassassin start
Starting spamd:                                            [  OK  ]

(2) 自動起動の設定

[root@yamasserver01 ~]# chkconfig postfix on
[root@yamasserver01 ~]# chkconfig dovecot on
[root@yamasserver01 ~]# chkconfig clamd on
[root@yamasserver01 ~]# chkconfig amavisd on
[root@yamasserver01 ~]# chkconfig spamassassin on

  1. 1 Trackback(s)

  2. Jun 9, 2015: Postfix(SMTP)へのアタックにhashlimitで対処 | Yama's Memorandum

Post a Comment