Inhaltsverzeichnis
Postfix SpamAssassin
Apache SpamAssassin ist ein e-Mail Filter-Programm welches verschiedene Techniken zur Identifizierung von SPAM e-Mails zum Einsatz bringt. Z.B. werden Header- (Kopf-) und Text-Analysen, Bayesian-Filtering, DNS-Block-Listen, und gemeinschaftliche Filter- Datenbanken eingesetzt.
Ab hier werden root
-Rechte zur Ausführung der nachfolgenden Befehle benötigt. Um root
zu werden geben Sie bitte folgenden Befehl ein:
$ su - Password:
Postfix SpamAssassin installieren
Die Installation von Apache SpamAssassin kann unter CentOS einfach über den yum
-Paketmanager erfolgen, da Apache SpamAssassin teil der CentOS-Distribution der yum
-Paket-Bibliothek base
ist. Der dazu nötige Befehl lautet:
# yum install spamassassin Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile 2 packages excluded due to repository priority protections Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package spamassassin.x86_64 0:3.3.1-2.el6 will be installed --> Processing Dependency: perl(Archive::Tar) >= 1.23 for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(NetAddr::IP) >= 4.000 for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(IO::Zlib) >= 1.04 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-HTML-Parser >= 3.43 for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(Net::DNS) 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(Mail::DKIM) for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(LWP::UserAgent) for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: portreserve 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 --> Processing Dependency: perl(IO::Socket::SSL) for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(Archive::Tar) for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(Time::HiRes) for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(HTTP::Date) for package: spamassassin-3.3.1-2.el6.x86_64 --> Processing Dependency: perl(IO::Socket::INET6) for package: spamassassin-3.3.1-2.el6.x86_64 --> Running transaction check ---> Package perl-Archive-Tar.x86_64 0:1.58-119.el6_1.1 will be installed --> Processing Dependency: perl(Package::Constants) for package: perl-Archive-Tar-1.58-119.el6_1.1.x86_64 --> Processing Dependency: perl(Compress::Zlib) for package: perl-Archive-Tar-1.58-119.el6_1.1.x86_64 ---> 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_1.1 will be installed --> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64 --> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.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-Socket-INET6.noarch 0:2.56-4.el6 will be installed --> Processing Dependency: perl(Socket6) for package: perl-IO-Socket-INET6-2.56-4.el6.noarch ---> Package perl-IO-Socket-SSL.noarch 0:1.31-2.el6 will be installed --> Processing Dependency: perl(Net::SSLeay) >= 1.21 for package: perl-IO-Socket-SSL-1.31-2.el6.noarch --> Processing Dependency: perl(Net::LibIDN) for package: perl-IO-Socket-SSL-1.31-2.el6.noarch ---> Package perl-IO-Zlib.x86_64 1:1.09-119.el6_1.1 will be installed ---> Package perl-Mail-DKIM.noarch 0:0.37-2.el6 will be installed --> Processing Dependency: perl(Mail::Address) for package: perl-Mail-DKIM-0.37-2.el6.noarch --> Processing Dependency: perl(Crypt::OpenSSL::RSA) for package: perl-Mail-DKIM-0.37-2.el6.noarch --> Processing Dependency: perl(Digest::SHA) for package: perl-Mail-DKIM-0.37-2.el6.noarch ---> Package perl-Net-DNS.x86_64 0:0.65-4.el6 will be installed --> Processing Dependency: perl(Digest::HMAC_MD5) for package: perl-Net-DNS-0.65-4.el6.x86_64 ---> Package perl-NetAddr-IP.x86_64 0:4.027-7.el6 will be installed ---> Package perl-Test-Mock-LWP.noarch 0:0.05-1.el6.rf will be installed --> Processing Dependency: perl(Test::MockObject) for package: perl-Test-Mock-LWP-0.05-1.el6.rf.noarch ---> Package perl-Time-HiRes.x86_64 4:1.9721-119.el6_1.1 will be installed ---> Package perl-libwww-perl.noarch 0:5.833-2.el6 will be installed --> Processing Dependency: mailcap for package: perl-libwww-perl-5.833-2.el6.noarch --> Processing Dependency: perl(URI::URL) for package: perl-libwww-perl-5.833-2.el6.noarch --> Processing Dependency: perl(URI::Heuristic) for package: perl-libwww-perl-5.833-2.el6.noarch --> Processing Dependency: perl(URI) for package: perl-libwww-perl-5.833-2.el6.noarch ---> Package portreserve.x86_64 0:0.0.4-4.el6_1.1 will be installed ---> Package procmail.x86_64 0:3.22-25.1.el6 will be installed --> Running transaction check ---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed ---> Package perl-Compress-Zlib.x86_64 0:2.020-119.el6_1.1 will be installed --> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6_1.1.x86_64 --> Processing Dependency: perl(IO::Uncompress::Gunzip) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6_1.1.x86_64 --> Processing Dependency: perl(IO::Compress::Gzip) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6_1.1.x86_64 --> Processing Dependency: perl(IO::Compress::Base::Common) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6_1.1.x86_64 --> Processing Dependency: perl(IO::Compress::Gzip::Constants) >= 2.020 for package: perl-Compress-Zlib-2.020-119.el6_1.1.x86_64 ---> 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-Digest-HMAC.noarch 0:1.01-22.el6 will be installed --> Processing Dependency: perl(Digest::SHA1) for package: perl-Digest-HMAC-1.01-22.el6.noarch ---> Package perl-Digest-SHA.x86_64 1:5.47-119.el6_1.1 will be installed ---> Package perl-HTML-Tagset.noarch 0:3.20-4.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-LibIDN.x86_64 0:0.12-3.el6 will be installed ---> Package perl-Net-SSLeay.x86_64 0:1.35-9.el6 will be installed ---> Package perl-Package-Constants.x86_64 1:0.02-119.el6_1.1 will be installed ---> Package perl-Socket6.x86_64 0:0.23-3.el6 will be installed ---> Package perl-Test-Harness.x86_64 0:3.17-119.el6_1.1 will be installed ---> Package perl-Test-MockObject.noarch 0:1.09-3.1.el6 will be installed --> Processing Dependency: perl(UNIVERSAL::isa) for package: perl-Test-MockObject-1.09-3.1.el6.noarch --> Processing Dependency: perl(UNIVERSAL::can) for package: perl-Test-MockObject-1.09-3.1.el6.noarch --> Processing Dependency: perl(Test::Builder) for package: perl-Test-MockObject-1.09-3.1.el6.noarch ---> Package perl-URI.noarch 0:1.40-2.el6 will be installed ---> Package perl-devel.x86_64 4:5.10.1-119.el6_1.1 will be installed --> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-119.el6_1.1.x86_64 --> Running transaction check ---> Package perl-Compress-Raw-Zlib.x86_64 0:2.023-119.el6_1.1 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-Digest-SHA1.x86_64 0:2.12-2.el6 will be installed ---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-119.el6_1.1 will be installed ---> Package perl-IO-Compress-Base.x86_64 0:2.020-119.el6_1.1 will be installed ---> Package perl-IO-Compress-Zlib.x86_64 0:2.020-119.el6_1.1 will be installed ---> Package perl-Test-Simple.x86_64 0:0.92-119.el6_1.1 will be installed ---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will be installed ---> Package perl-UNIVERSAL-can.noarch 0:1.15-1.el6 will be installed ---> Package perl-UNIVERSAL-isa.noarch 0:1.03-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: spamassassin x86_64 3.3.1-2.el6 base 1.1 M Installing for dependencies: mailcap noarch 2.1.31-2.el6 base 27 k perl-Archive-Tar x86_64 1.58-119.el6_1.1 base 70 k perl-Compress-Raw-Zlib x86_64 2.023-119.el6_1.1 base 67 k perl-Compress-Zlib x86_64 2.020-119.el6_1.1 base 43 k perl-Crypt-OpenSSL-Bignum x86_64 0.04-8.1.el6 base 34 k perl-Crypt-OpenSSL-RSA x86_64 0.25-10.1.el6 base 37 k perl-Crypt-OpenSSL-Random x86_64 0.04-9.1.el6 base 22 k perl-Digest-HMAC noarch 1.01-22.el6 base 22 k perl-Digest-SHA x86_64 1:5.47-119.el6_1.1 base 61 k perl-Digest-SHA1 x86_64 2.12-2.el6 base 49 k perl-Encode-Detect x86_64 1.01-2.el6 base 80 k perl-ExtUtils-MakeMaker x86_64 6.55-119.el6_1.1 base 290 k perl-ExtUtils-ParseXS x86_64 1:2.2003.0-119.el6_1.1 base 42 k perl-HTML-Parser x86_64 3.64-2.el6 base 109 k perl-HTML-Tagset noarch 3.20-4.el6 base 17 k perl-IO-Compress-Base x86_64 2.020-119.el6_1.1 base 66 k perl-IO-Compress-Zlib x86_64 2.020-119.el6_1.1 base 133 k perl-IO-Socket-INET6 noarch 2.56-4.el6 base 17 k perl-IO-Socket-SSL noarch 1.31-2.el6 base 69 k perl-IO-Zlib x86_64 1:1.09-119.el6_1.1 base 30 k perl-Mail-DKIM noarch 0.37-2.el6 base 121 k perl-MailTools noarch 2.04-4.el6 base 101 k perl-Net-DNS x86_64 0.65-4.el6 base 232 k perl-Net-LibIDN x86_64 0.12-3.el6 base 35 k perl-Net-SSLeay x86_64 1.35-9.el6 base 173 k perl-NetAddr-IP x86_64 4.027-7.el6 base 96 k perl-Package-Constants x86_64 1:0.02-119.el6_1.1 base 24 k perl-Socket6 x86_64 0.23-3.el6 base 23 k perl-Test-Harness x86_64 3.17-119.el6_1.1 base 229 k perl-Test-Mock-LWP noarch 0.05-1.el6.rf rpmforge 18 k perl-Test-MockObject noarch 1.09-3.1.el6 base 31 k perl-Test-Simple x86_64 0.92-119.el6_1.1 base 110 k perl-Time-HiRes x86_64 4:1.9721-119.el6_1.1 base 46 k perl-TimeDate noarch 1:1.16-11.1.el6 base 34 k perl-UNIVERSAL-can noarch 1.15-1.el6 base 12 k perl-UNIVERSAL-isa noarch 1.03-1.el6 base 11 k perl-URI noarch 1.40-2.el6 base 117 k perl-devel x86_64 4:5.10.1-119.el6_1.1 base 420 k perl-libwww-perl noarch 5.833-2.el6 base 387 k portreserve x86_64 0.0.4-4.el6_1.1 base 22 k procmail x86_64 3.22-25.1.el6 base 163 k Transaction Summary ================================================================================ Install 42 Package(s) Total download size: 4.7 M Installed size: 11 M Is this ok [y/N]: y Downloading Packages: (1/42): mailcap-2.1.31-2.el6.noarch.rpm | 27 kB 00:00 (2/42): perl-Archive-Tar-1.58-119.el6_1.1.x86_64.rpm | 70 kB 00:00 (3/42): perl-Compress-Raw-Zlib-2.023-119.el6_1.1.x86_64. | 67 kB 00:00 (4/42): perl-Compress-Zlib-2.020-119.el6_1.1.x86_64.rpm | 43 kB 00:00 (5/42): perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64.rp | 34 kB 00:00 (6/42): perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64.rpm | 37 kB 00:00 (7/42): perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64.rp | 22 kB 00:00 (8/42): perl-Digest-HMAC-1.01-22.el6.noarch.rpm | 22 kB 00:00 (9/42): perl-Digest-SHA-5.47-119.el6_1.1.x86_64.rpm | 61 kB 00:00 (10/42): perl-Digest-SHA1-2.12-2.el6.x86_64.rpm | 49 kB 00:00 (11/42): perl-Encode-Detect-1.01-2.el6.x86_64.rpm | 80 kB 00:00 (12/42): perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64 | 290 kB 00:00 (13/42): perl-ExtUtils-ParseXS-2.2003.0-119.el6_1.1.x86_ | 42 kB 00:00 (14/42): perl-HTML-Parser-3.64-2.el6.x86_64.rpm | 109 kB 00:00 (15/42): perl-HTML-Tagset-3.20-4.el6.noarch.rpm | 17 kB 00:00 (16/42): perl-IO-Compress-Base-2.020-119.el6_1.1.x86_64. | 66 kB 00:00 (17/42): perl-IO-Compress-Zlib-2.020-119.el6_1.1.x86_64. | 133 kB 00:00 (18/42): perl-IO-Socket-INET6-2.56-4.el6.noarch.rpm | 17 kB 00:00 (19/42): perl-IO-Socket-SSL-1.31-2.el6.noarch.rpm | 69 kB 00:00 (20/42): perl-IO-Zlib-1.09-119.el6_1.1.x86_64.rpm | 30 kB 00:00 (21/42): perl-Mail-DKIM-0.37-2.el6.noarch.rpm | 121 kB 00:00 (22/42): perl-MailTools-2.04-4.el6.noarch.rpm | 101 kB 00:00 (23/42): perl-Net-DNS-0.65-4.el6.x86_64.rpm | 232 kB 00:00 (24/42): perl-Net-LibIDN-0.12-3.el6.x86_64.rpm | 35 kB 00:00 (25/42): perl-Net-SSLeay-1.35-9.el6.x86_64.rpm | 173 kB 00:00 (26/42): perl-NetAddr-IP-4.027-7.el6.x86_64.rpm | 96 kB 00:00 (27/42): perl-Package-Constants-0.02-119.el6_1.1.x86_64. | 24 kB 00:00 (28/42): perl-Socket6-0.23-3.el6.x86_64.rpm | 23 kB 00:00 (29/42): perl-Test-Harness-3.17-119.el6_1.1.x86_64.rpm | 229 kB 00:00 (30/42): perl-Test-Mock-LWP-0.05-1.el6.rf.noarch.rpm | 18 kB 00:00 (31/42): perl-Test-MockObject-1.09-3.1.el6.noarch.rpm | 31 kB 00:00 (32/42): perl-Test-Simple-0.92-119.el6_1.1.x86_64.rpm | 110 kB 00:00 (33/42): perl-Time-HiRes-1.9721-119.el6_1.1.x86_64.rpm | 46 kB 00:00 (34/42): perl-TimeDate-1.16-11.1.el6.noarch.rpm | 34 kB 00:00 (35/42): perl-UNIVERSAL-can-1.15-1.el6.noarch.rpm | 12 kB 00:00 (36/42): perl-UNIVERSAL-isa-1.03-1.el6.noarch.rpm | 11 kB 00:00 (37/42): perl-URI-1.40-2.el6.noarch.rpm | 117 kB 00:00 (38/42): perl-devel-5.10.1-119.el6_1.1.x86_64.rpm | 420 kB 00:00 (39/42): perl-libwww-perl-5.833-2.el6.noarch.rpm | 387 kB 00:00 (40/42): portreserve-0.0.4-4.el6_1.1.x86_64.rpm | 22 kB 00:00 (41/42): procmail-3.22-25.1.el6.x86_64.rpm | 163 kB 00:00 (42/42): spamassassin-3.3.1-2.el6.x86_64.rpm | 1.1 MB 00:00 -------------------------------------------------------------------------------- Total 7.0 MB/s | 4.7 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : perl-Compress-Raw-Zlib-2.023-119.el6_1.1.x86_64 1/42 Installing : perl-IO-Compress-Base-2.020-119.el6_1.1.x86_64 2/42 Installing : perl-IO-Compress-Zlib-2.020-119.el6_1.1.x86_64 3/42 Installing : perl-Compress-Zlib-2.020-119.el6_1.1.x86_64 4/42 Installing : 1:perl-IO-Zlib-1.09-119.el6_1.1.x86_64 5/42 Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-119.el6_1.1.x86_64 6/42 Installing : 4:perl-devel-5.10.1-119.el6_1.1.x86_64 7/42 Installing : perl-Test-Harness-3.17-119.el6_1.1.x86_64 8/42 Installing : perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64 9/42 Installing : perl-Test-Simple-0.92-119.el6_1.1.x86_64 10/42 Installing : perl-Encode-Detect-1.01-2.el6.x86_64 11/42 Installing : perl-Net-SSLeay-1.35-9.el6.x86_64 12/42 Installing : perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64 13/42 Installing : perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64 14/42 Installing : perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64 15/42 Installing : portreserve-0.0.4-4.el6_1.1.x86_64 16/42 Installing : procmail-3.22-25.1.el6.x86_64 17/42 Installing : perl-NetAddr-IP-4.027-7.el6.x86_64 18/42 Installing : perl-HTML-Tagset-3.20-4.el6.noarch 19/42 Installing : perl-HTML-Parser-3.64-2.el6.x86_64 20/42 Installing : perl-Socket6-0.23-3.el6.x86_64 21/42 Installing : perl-IO-Socket-INET6-2.56-4.el6.noarch 22/42 Installing : perl-URI-1.40-2.el6.noarch 23/42 Installing : perl-UNIVERSAL-isa-1.03-1.el6.noarch 24/42 Installing : perl-Digest-SHA1-2.12-2.el6.x86_64 25/42 Installing : perl-Digest-HMAC-1.01-22.el6.noarch 26/42 Installing : perl-Net-DNS-0.65-4.el6.x86_64 27/42 Installing : perl-UNIVERSAL-can-1.15-1.el6.noarch 28/42 Installing : perl-Test-MockObject-1.09-3.1.el6.noarch 29/42 Installing : perl-Test-Mock-LWP-0.05-1.el6.rf.noarch 30/42 Installing : mailcap-2.1.31-2.el6.noarch 31/42 Installing : perl-libwww-perl-5.833-2.el6.noarch 32/42 Installing : perl-Net-LibIDN-0.12-3.el6.x86_64 33/42 Installing : perl-IO-Socket-SSL-1.31-2.el6.noarch 34/42 Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch 35/42 Installing : perl-MailTools-2.04-4.el6.noarch 36/42 Installing : 4:perl-Time-HiRes-1.9721-119.el6_1.1.x86_64 37/42 Installing : 1:perl-Package-Constants-0.02-119.el6_1.1.x86_64 38/42 Installing : perl-Archive-Tar-1.58-119.el6_1.1.x86_64 39/42 Installing : 1:perl-Digest-SHA-5.47-119.el6_1.1.x86_64 40/42 Installing : perl-Mail-DKIM-0.37-2.el6.noarch 41/42 Installing : spamassassin-3.3.1-2.el6.x86_64 42/42 Installed: spamassassin.x86_64 0:3.3.1-2.el6 Dependency Installed: mailcap.noarch 0:2.1.31-2.el6 perl-Archive-Tar.x86_64 0:1.58-119.el6_1.1 perl-Compress-Raw-Zlib.x86_64 0:2.023-119.el6_1.1 perl-Compress-Zlib.x86_64 0:2.020-119.el6_1.1 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-Digest-HMAC.noarch 0:1.01-22.el6 perl-Digest-SHA.x86_64 1:5.47-119.el6_1.1 perl-Digest-SHA1.x86_64 0:2.12-2.el6 perl-Encode-Detect.x86_64 0:1.01-2.el6 perl-ExtUtils-MakeMaker.x86_64 0:6.55-119.el6_1.1 perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-119.el6_1.1 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_1.1 perl-IO-Compress-Zlib.x86_64 0:2.020-119.el6_1.1 perl-IO-Socket-INET6.noarch 0:2.56-4.el6 perl-IO-Socket-SSL.noarch 0:1.31-2.el6 perl-IO-Zlib.x86_64 1:1.09-119.el6_1.1 perl-Mail-DKIM.noarch 0:0.37-2.el6 perl-MailTools.noarch 0:2.04-4.el6 perl-Net-DNS.x86_64 0:0.65-4.el6 perl-Net-LibIDN.x86_64 0:0.12-3.el6 perl-Net-SSLeay.x86_64 0:1.35-9.el6 perl-NetAddr-IP.x86_64 0:4.027-7.el6 perl-Package-Constants.x86_64 1:0.02-119.el6_1.1 perl-Socket6.x86_64 0:0.23-3.el6 perl-Test-Harness.x86_64 0:3.17-119.el6_1.1 perl-Test-Mock-LWP.noarch 0:0.05-1.el6.rf perl-Test-MockObject.noarch 0:1.09-3.1.el6 perl-Test-Simple.x86_64 0:0.92-119.el6_1.1 perl-Time-HiRes.x86_64 4:1.9721-119.el6_1.1 perl-TimeDate.noarch 1:1.16-11.1.el6 perl-UNIVERSAL-can.noarch 0:1.15-1.el6 perl-UNIVERSAL-isa.noarch 0:1.03-1.el6 perl-URI.noarch 0:1.40-2.el6 perl-devel.x86_64 4:5.10.1-119.el6_1.1 perl-libwww-perl.noarch 0:5.833-2.el6 portreserve.x86_64 0:0.0.4-4.el6_1.1 procmail.x86_64 0:3.22-25.1.el6 Complete!
Nach der Installation, kann mit folgendem Befehl überprüft werden, was alles im Paket spamassassin
enthalten ist:
# rpm -qil spamassassin Name : spamassassin Relocations: (not relocatable) Version : 3.3.1 Vendor: CentOS Release : 2.el6 Build Date: Mon 23 Aug 2010 04:28:38 AM CEST Install Date: Fri 27 Jan 2012 01:50:27 PM CET Build Host: c6b2.bsys.dev.centos.org Group : Applications/Internet Source RPM: spamassassin-3.3.1-2.el6.src.rpm Size : 3253352 License: ASL 2.0 Signature : RSA/8, Sun 03 Jul 2011 07:02:17 AM CEST, Key ID 0946fca2c105b9de Packager : CentOS BuildSystem <http://bugs.centos.org> URL : http://spamassassin.apache.org/ Summary : Spam filter for email which can be invoked from mail delivery agents Description : SpamAssassin provides you with a way to reduce if not completely eliminate Unsolicited Commercial Email (SPAM) from your incoming email. It can be invoked by a MDA such as sendmail or postfix, or can be called from a procmail script, .forward file, etc. It uses a genetic-algorithm evolved scoring system to identify messages which look spammy, then adds headers to the message so they can be filtered by the user's mail reading software. This distribution includes the spamd/spamc components which create a server that considerably speeds processing of mail. To enable spamassassin, if you are receiving mail locally, simply add this line to your ~/.procmailrc: INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc To filter spam for all users, add that line to /etc/procmailrc (creating if necessary). /etc/cron.d/sa-update /etc/logrotate.d/sa-update /etc/mail/spamassassin /etc/mail/spamassassin/channel.d /etc/mail/spamassassin/channel.d/sought.conf /etc/mail/spamassassin/channel.d/spamassassin-official.conf /etc/mail/spamassassin/init.pre /etc/mail/spamassassin/local.cf /etc/mail/spamassassin/sa-update-keys /etc/mail/spamassassin/spamassassin-default.rc /etc/mail/spamassassin/spamassassin-helper.sh /etc/mail/spamassassin/spamassassin-spamc.rc /etc/mail/spamassassin/v310.pre /etc/mail/spamassassin/v312.pre /etc/mail/spamassassin/v320.pre /etc/mail/spamassassin/v330.pre /etc/portreserve/spamd /etc/rc.d/init.d/spamassassin /etc/sysconfig/sa-update /etc/sysconfig/spamassassin /usr/bin/sa-awl /usr/bin/sa-check_spamd /usr/bin/sa-compile /usr/bin/sa-learn /usr/bin/sa-update /usr/bin/spamassassin /usr/bin/spamc /usr/bin/spamd /usr/share/doc/spamassassin-3.3.1 /usr/share/doc/spamassassin-3.3.1/CREDITS /usr/share/doc/spamassassin-3.3.1/Changes /usr/share/doc/spamassassin-3.3.1/LICENSE /usr/share/doc/spamassassin-3.3.1/NOTICE /usr/share/doc/spamassassin-3.3.1/README /usr/share/doc/spamassassin-3.3.1/README.RHEL.Fedora /usr/share/doc/spamassassin-3.3.1/TRADEMARK /usr/share/doc/spamassassin-3.3.1/UPGRADE /usr/share/doc/spamassassin-3.3.1/USAGE /usr/share/doc/spamassassin-3.3.1/sample-nonspam.txt /usr/share/doc/spamassassin-3.3.1/sample-spam.txt /usr/share/man/man1/sa-compile.1.gz /usr/share/man/man1/sa-learn.1.gz /usr/share/man/man1/sa-update.1.gz /usr/share/man/man1/spamassassin-run.1.gz /usr/share/man/man1/spamassassin.1.gz /usr/share/man/man1/spamc.1.gz /usr/share/man/man1/spamd.1.gz /usr/share/man/man3/Mail::SpamAssassin.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::AICache.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::ArchiveIterator.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::AsyncLoop.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::AutoWhitelist.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Bayes.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::BayesStore.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::BayesStore::BDB.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::BayesStore::MySQL.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::BayesStore::PgSQL.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::BayesStore::SQL.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Client.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Conf.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Conf::LDAP.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Conf::Parser.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Conf::SQL.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::DnsResolver.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Logger.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Logger::File.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Logger::Stderr.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Logger::Syslog.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Message.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Message::Metadata.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Message::Node.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::PerMsgLearner.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::PerMsgStatus.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::PersistentAddrList.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::ASN.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::AWL.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::AccessDB.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::AntiVirus.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::AutoLearnThreshold.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Bayes.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::BodyRuleBaseExtractor.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Check.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::DCC.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::DKIM.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Hashcash.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::MIMEHeader.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::OneLineBodyRuleType.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::PhishTag.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Pyzor.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Razor2.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::RelayCountry.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::ReplaceTags.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Reuse.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Rule2XSBody.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::SPF.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Shortcircuit.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::SpamCop.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::Test.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::TextCat.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::URIDNSBL.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::URIDetail.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::VBounce.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Plugin::WhiteListSubject.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::PluginHandler.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::SQLBasedAddrList.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::SubProcBackChannel.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Timeout.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Util.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Util::DependencyInfo.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Util::Progress.3pm.gz /usr/share/man/man3/Mail::SpamAssassin::Util::RegistrarBoundaries.3pm.gz /usr/share/man/man3/spamassassin-run.3pm.gz /usr/share/perl5/Mail /usr/share/perl5/Mail/SpamAssassin /usr/share/perl5/Mail/SpamAssassin.pm /usr/share/perl5/Mail/SpamAssassin/AICache.pm /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm /usr/share/perl5/Mail/SpamAssassin/AutoWhitelist.pm /usr/share/perl5/Mail/SpamAssassin/Bayes /usr/share/perl5/Mail/SpamAssassin/Bayes.pm /usr/share/perl5/Mail/SpamAssassin/Bayes/CombineChi.pm /usr/share/perl5/Mail/SpamAssassin/Bayes/CombineNaiveBayes.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore /usr/share/perl5/Mail/SpamAssassin/BayesStore.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore/BDB.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore/MySQL.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore/PgSQL.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore/SDBM.pm /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm /usr/share/perl5/Mail/SpamAssassin/Client.pm /usr/share/perl5/Mail/SpamAssassin/Conf /usr/share/perl5/Mail/SpamAssassin/Conf.pm /usr/share/perl5/Mail/SpamAssassin/Conf/LDAP.pm /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm /usr/share/perl5/Mail/SpamAssassin/Conf/SQL.pm /usr/share/perl5/Mail/SpamAssassin/Constants.pm /usr/share/perl5/Mail/SpamAssassin/DBBasedAddrList.pm /usr/share/perl5/Mail/SpamAssassin/Dns.pm /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm /usr/share/perl5/Mail/SpamAssassin/HTML.pm /usr/share/perl5/Mail/SpamAssassin/Locales.pm /usr/share/perl5/Mail/SpamAssassin/Locker /usr/share/perl5/Mail/SpamAssassin/Locker.pm /usr/share/perl5/Mail/SpamAssassin/Locker/Flock.pm /usr/share/perl5/Mail/SpamAssassin/Locker/UnixNFSSafe.pm /usr/share/perl5/Mail/SpamAssassin/Locker/Win32.pm /usr/share/perl5/Mail/SpamAssassin/Logger /usr/share/perl5/Mail/SpamAssassin/Logger.pm /usr/share/perl5/Mail/SpamAssassin/Logger/File.pm /usr/share/perl5/Mail/SpamAssassin/Logger/Stderr.pm /usr/share/perl5/Mail/SpamAssassin/Logger/Syslog.pm /usr/share/perl5/Mail/SpamAssassin/MailingList.pm /usr/share/perl5/Mail/SpamAssassin/Message /usr/share/perl5/Mail/SpamAssassin/Message.pm /usr/share/perl5/Mail/SpamAssassin/Message/Metadata /usr/share/perl5/Mail/SpamAssassin/Message/Metadata.pm /usr/share/perl5/Mail/SpamAssassin/Message/Metadata/Received.pm /usr/share/perl5/Mail/SpamAssassin/Message/Node.pm /usr/share/perl5/Mail/SpamAssassin/NetSet.pm /usr/share/perl5/Mail/SpamAssassin/PerMsgLearner.pm /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm /usr/share/perl5/Mail/SpamAssassin/PersistentAddrList.pm /usr/share/perl5/Mail/SpamAssassin/Plugin /usr/share/perl5/Mail/SpamAssassin/Plugin.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/ASN.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/AWL.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/AccessDB.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/AntiVirus.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Bayes.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/BodyEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Check.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/DCC.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/DKIM.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/DNSEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/FreeMail.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/HTMLEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Hashcash.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/HeaderEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/ImageInfo.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/MIMEEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/MIMEHeader.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/OneLineBodyRuleType.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/PhishTag.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Pyzor.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/RelayCountry.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/RelayEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/ReplaceTags.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Reuse.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Rule2XSBody.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/SPF.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Shortcircuit.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/SpamCop.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/Test.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/TextCat.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/URIDNSBL.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/URIDetail.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/URIEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/VBounce.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/WLBLEval.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/WhiteListSubject.pm /usr/share/perl5/Mail/SpamAssassin/PluginHandler.pm /usr/share/perl5/Mail/SpamAssassin/Reporter.pm /usr/share/perl5/Mail/SpamAssassin/SQLBasedAddrList.pm /usr/share/perl5/Mail/SpamAssassin/SpamdForkScaling.pm /usr/share/perl5/Mail/SpamAssassin/SubProcBackChannel.pm /usr/share/perl5/Mail/SpamAssassin/Timeout.pm /usr/share/perl5/Mail/SpamAssassin/Util /usr/share/perl5/Mail/SpamAssassin/Util.pm /usr/share/perl5/Mail/SpamAssassin/Util/DependencyInfo.pm /usr/share/perl5/Mail/SpamAssassin/Util/Progress.pm /usr/share/perl5/Mail/SpamAssassin/Util/RegistrarBoundaries.pm /usr/share/perl5/Mail/SpamAssassin/Util/ScopedTimer.pm /usr/share/perl5/Mail/SpamAssassin/Util/TieOneStringHash.pm /usr/share/perl5/spamassassin-run.pod /usr/share/spamassassin /usr/share/spamassassin/10_default_prefs.cf /usr/share/spamassassin/20_advance_fee.cf /usr/share/spamassassin/20_aux_tlds.cf /usr/share/spamassassin/20_body_tests.cf /usr/share/spamassassin/20_compensate.cf /usr/share/spamassassin/20_dnsbl_tests.cf /usr/share/spamassassin/20_drugs.cf /usr/share/spamassassin/20_dynrdns.cf /usr/share/spamassassin/20_fake_helo_tests.cf /usr/share/spamassassin/20_freemail.cf /usr/share/spamassassin/20_freemail_domains.cf /usr/share/spamassassin/20_head_tests.cf /usr/share/spamassassin/20_html_tests.cf /usr/share/spamassassin/20_imageinfo.cf /usr/share/spamassassin/20_meta_tests.cf /usr/share/spamassassin/20_net_tests.cf /usr/share/spamassassin/20_phrases.cf /usr/share/spamassassin/20_porn.cf /usr/share/spamassassin/20_ratware.cf /usr/share/spamassassin/20_uri_tests.cf /usr/share/spamassassin/20_vbounce.cf /usr/share/spamassassin/23_bayes.cf /usr/share/spamassassin/25_accessdb.cf /usr/share/spamassassin/25_antivirus.cf /usr/share/spamassassin/25_asn.cf /usr/share/spamassassin/25_dcc.cf /usr/share/spamassassin/25_dkim.cf /usr/share/spamassassin/25_hashcash.cf /usr/share/spamassassin/25_pyzor.cf /usr/share/spamassassin/25_razor2.cf /usr/share/spamassassin/25_replace.cf /usr/share/spamassassin/25_spf.cf /usr/share/spamassassin/25_textcat.cf /usr/share/spamassassin/25_uribl.cf /usr/share/spamassassin/30_text_de.cf /usr/share/spamassassin/30_text_fr.cf /usr/share/spamassassin/30_text_it.cf /usr/share/spamassassin/30_text_nl.cf /usr/share/spamassassin/30_text_pl.cf /usr/share/spamassassin/30_text_pt_br.cf /usr/share/spamassassin/50_scores.cf /usr/share/spamassassin/60_adsp_override_dkim.cf /usr/share/spamassassin/60_awl.cf /usr/share/spamassassin/60_shortcircuit.cf /usr/share/spamassassin/60_whitelist.cf /usr/share/spamassassin/60_whitelist_dkim.cf /usr/share/spamassassin/60_whitelist_spf.cf /usr/share/spamassassin/60_whitelist_subject.cf /usr/share/spamassassin/72_active.cf /usr/share/spamassassin/72_scores.cf /usr/share/spamassassin/STATISTICS-set0-72_scores.cf.txt /usr/share/spamassassin/STATISTICS-set1-72_scores.cf.txt /usr/share/spamassassin/STATISTICS-set2-72_scores.cf.txt /usr/share/spamassassin/STATISTICS-set3-72_scores.cf.txt /usr/share/spamassassin/languages /usr/share/spamassassin/local.cf /usr/share/spamassassin/regression_tests.cf /usr/share/spamassassin/sa-update-pubkey.txt /usr/share/spamassassin/sa-update.cron /usr/share/spamassassin/user_prefs.template /var/lib/spamassassin /var/run/spamassassin
Postfix SpamAssassin konfigurieren
Eine besondere Konfiguration von Apache SpamAssassin ist grundsätzlich nicht notwendig. Es gibt jedoch eine Konfigurationsdatei im Verzeichnis /etc/sysconfig
mit dem Namen spamassassin
. Der Inhalt der Konfigurationsdatei sieht wie folgt aus und kann mit nachfolgendem Befehl angezeigt werden:
# cat /etc/sysconfig/spamassassin # Options to spamd SPAMDOPTIONS="-d -c -m5 -H"
* Diese Konfigurationseinstellungen sind für den Betrieb als Daemon gedacht!
Zusätzlich gibt es das Verzeichnis /etc/mail/spamassassin/
, in dem es eine spezielle Konfigurationsdatei mit dem Namen
local.cf
gibt.
Diese Konfigurationsdatei /etc/mail/spamassassin/local.cf
sieht standardmäßig, wie folgt aus:
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf # (see spamassassin(1) for details) # These should be safe assumptions and allow for simple visual sifting # without risking lost emails. required_hits 5 report_safe 0 rewrite_header Subject [SPAM]
und kann ggf. wie folgt um SAPM-Regeln wie folgt beschrieben erweitert werden:
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf # (see spamassassin(1) for details) # These should be safe assumptions and allow for simple visual sifting # without risking lost emails. required_hits 5 report_safe 0 rewrite_header Subject [SPAM] # Tachtler lock_method flock # Headercheck-Filterliste fuer die Absicherung des Postfix-Mailservers # Information aus der vorhandenen Postfixdatei /etc/postfix/header_checks # Uebernommen, da es unter gewissen Umstaenden zu Backscatter-Problemen # kommen koennte (Stand. 10-07-2009 AMaViS Version amavisd-new-2.5.4-1.el5.rf.src.rpm # Version 0.02 / 2009-08-19 # /i = i Case-Insensitivity (die Nichtbeachtung von Gross- und Kleinschreibung) einschalten # /m = m Multiline-Faehigkeit - Zeilenumbrueche ignorieren # Header-Checks für "From" (Nummerierung 1000 ...) header HEADER_FROM_CHECKS_NR1001 From =~ /^.*Porno.Seiten/im score HEADER_FROM_CHECKS_NR1001 20 tflags HEADER_FROM_CHECKS_NR1001 noautolearn header HEADER_FROM_CHECKS_NR1000 From =~ /^.*spam.de/im score HEADER_FROM_CHECKS_NR1000 20 tflags HEADER_FROM_CHECKS_NR1000 noautolearn # Header-Checks für "Subject" (Nummerierung 2000 ...) header HEADER_SUBJECT_CHECKS_NR2001 Subject =~ /.*Partnervermittlung Irgendwas.*/im score HEADER_SUBJECT_CHECKS_NR2001 20 tflags HEADER_SUBJECT_CHECKS_NR2001 noautolearn header HEADER_SUBJECT_CHECKS_NR2000 Subject =~ /.*Blaue Pillen.*/im score HEADER_SUBJECT_CHECKS_NR2000 20 tflags HEADER_SUBJECT_CHECKS_NR2000 noautolearn
Postfix SpamAssassin testen
Mit folgendem Befehl kann eine Test-Spam-e-Mail, welche im Verzeichnis /usr/share/doc/spamassassin-3.3.1
mit dem Namen sample-spam.txt
zu finden ist und mit der Installation von Apache SpamAssassin mitgeliefert wird, zum Test herangezogen werden:
# spamassassin < /usr/share/doc/spamassassin-3.3.1/sample-spam.txt Jan 27 13:58:51.557 [1383] warn: config: created user preferences file: /root/.spamassassin/user_prefs X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on rechner70.dmz.tachtler.net X-Spam-Flag: YES X-Spam-Level: ************************************************** X-Spam-Status: Yes, score=1000.0 required=5.0 tests=GTUBE,NO_RECEIVED, NO_RELAYS autolearn=no version=3.3.1 X-Spam-Report: * -0.0 NO_RELAYS Informational: message was not relayed via SMTP * 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email * -0.0 NO_RECEIVED Informational: message has no Received headers Subject: [SPAM] Test spam mail (GTUBE) Message-ID: <GTUBE1.1010101@example.net> Date: Wed, 23 Jul 2003 23:30:00 +0200 From: Sender <sender@example.net> To: Recipient <recipient@example.net> Precedence: junk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Prev-Subject: Test spam mail (GTUBE) This is the GTUBE, the Generic Test for Unsolicited Bulk Email If your spam filter supports it, the GTUBE provides a test by which you can verify that the filter is installed correctly and is detecting incoming spam. You can send yourself a test mail containing the following string of characters (in upper case and with no white spaces and line breaks): XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X You should send this test mail from an account outside of your network.
Ebenso gibt es eine Test-e-Mail, welche im Verzeichnis /usr/share/doc/spamassassin-3.3.1
mit dem Namen sample-nonspam.txt
zu finden ist und auch mit der Installation von Apache SpamAssassin mitgeliefert wird, welche zum „Gegentest“ herangezogen werden kann:
# spamassassin < /usr/share/doc/spamassassin-3.3.1/sample-nonspam.txt Return-Path: <tbtf-approval@world.std.com> X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on rechner70.dmz.tachtler.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 Delivered-To: foo@foo.com Received: from europe.std.com (europe.std.com [199.172.62.20]) by mail.netnoteinc.com (Postfix) with ESMTP id 392E1114061 for <foo@foo.com>; Fri, 20 Apr 2001 21:34:46 +0000 (Eire) Received: (from daemon@localhost) by europe.std.com (8.9.3/8.9.3) id RAA09630 for tbtf-outgoing; Fri, 20 Apr 2001 17:31:18 -0400 (EDT) Received: from sgi04-e.std.com (sgi04-e.std.com [199.172.62.134]) by europe.std.com (8.9.3/8.9.3) with ESMTP id RAA08749 for <tbtf@facteur.std.com>; Fri, 20 Apr 2001 17:24:31 -0400 (EDT) Received: from world.std.com (world-f.std.com [199.172.62.5]) by sgi04-e.std.com (8.9.3/8.9.3) with ESMTP id RAA8278330 for <tbtf@facteur.std.com>; Fri, 20 Apr 2001 17:24:31 -0400 (EDT) Received: (from dawson@localhost) by world.std.com (8.9.3/8.9.3) id RAA26781 for tbtf@world.std.com; Fri, 20 Apr 2001 17:24:31 -0400 (EDT) Received: from sgi04-e.std.com (sgi04-e.std.com [199.172.62.134]) by europe.std.com (8.9.3/8.9.3) with ESMTP id RAA07541 for <tbtf@facteur.std.com>; Fri, 20 Apr 2001 17:12:06 -0400 (EDT) Received: from world.std.com (world-f.std.com [199.172.62.5]) by sgi04-e.std.com (8.9.3/8.9.3) with ESMTP id RAA8416421 for <tbtf@facteur.std.com>; Fri, 20 Apr 2001 17:12:06 -0400 (EDT) Received: from [208.192.102.193] (ppp0c199.std.com [208.192.102.199]) by world.std.com (8.9.3/8.9.3) with ESMTP id RAA14226 for <tbtf@world.std.com>; Fri, 20 Apr 2001 17:12:04 -0400 (EDT) Mime-Version: 1.0 Message-Id: <v0421010eb70653b14e06@[208.192.102.193]> Date: Fri, 20 Apr 2001 16:59:58 -0400 To: tbtf@world.std.com From: Keith Dawson <dawson@world.std.com> Subject: TBTF ping for 2001-04-20: Reviving Content-Type: text/plain; charset="us-ascii" Sender: tbtf-approval@world.std.com Precedence: list Reply-To: tbtf-approval@europe.std.com -----BEGIN PGP SIGNED MESSAGE----- TBTF ping for 2001-04-20: Reviving T a s t y B i t s f r o m t h e T e c h n o l o g y F r o n t Timely news of the bellwethers in computer and communications technology that will affect electronic commerce -- since 1994 Your Host: Keith Dawson ISSN: 1524-9948 This issue: < http://tbtf.com/archive/2001-04-20.html > To comment on this issue, please use this forum at Quick Topic: < http://www.quicktopic.com/tbtf/H/kQGJR2TXL6H > ________________________________________________________________________ Q u o t e O f T h e M o m e n t Even organizations that promise "privacy for their customers" rarely if ever promise "continued privacy for their former customers..." Once you cancel your account with any business, their promises of keeping the information about their customers private no longer apply... you're not a customer any longer. This is in the large category of business behaviors that individuals would consider immoral and deceptive -- and businesses know are not illegal. -- "_ankh," writing on the XNStalk mailing list ________________________________________________________________________ ..TBTF's long hiatus is drawing to a close Hail subscribers to the TBTF mailing list. Some 2,000 [1] of you have signed up since the last issue [2] was mailed on 2000-07-20. This brief note is the first of several I will send to this list to excise the dead addresses prior to resuming regular publication. While you time the contractions of the newsletter's rebirth, I in- vite you to read the TBTF Log [3] and sign up for its separate free subscription. Send "subscribe" (no quotes) with any subject to tbtf-log-request@tbtf.com . I mail out collected Log items on Sun- days. If you need to stay more immediately on top of breaking stories, pick up the TBTF Log's syndication file [4] or read an aggregator that does. Examples are Slashdot's Cheesy Portal [5], Userland [6], and Sitescooper [7]. If your news obsession runs even deeper and you own an SMS-capable cell phone or PDA, sign up on TBTF's WebWire- lessNow portal [8]. A free call will bring you the latest TBTF Log headline, Jargon Scout [9] find, or Siliconium [10]. Two new columnists have bloomed on TBTF since last summer: Ted By- field's roving_reporter [11] and Gary Stock's UnBlinking [12]. Late- ly Byfield has been writing in unmatched depth about ICANN, but the roving_reporter nym's roots are in commentary at the intersection of technology and culture. Stock's UnBlinking latches onto topical sub- jects and pursues them to the ends of the Net. These writers' voices are compelling and utterly distinctive. [1] http://tbtf.com/growth.html [2] http://tbtf.com/archive/2000-07-20.html [3] http://tbtf.com/blog/ [4] http://tbtf.com/tbtf.rdf [5] http://www.slashdot.org/cheesyportal.shtml [6] http://my.userland.com/ [7] http://www.sitescooper.org/ [8] http://tbtf.com/pull-wwn/ [9] http://tbtf.com/jargon-scout.html [10] http://tbtf.com/siliconia.html [11] http://tbtf.com/roving_reporter/ [12] http://tbtf.com/unblinking/ ________________________________________________________________________ S o u r c e s > For a complete list of TBTF's email and Web sources, see http://tbtf.com/sources.html . ________________________________________________________________________ B e n e f a c t o r s TBTF is free. If you get value from this publication, please visit the TBTF Benefactors page < http://tbtf.com/the-benefactors.html > and consider contributing to its upkeep. ________________________________________________________________________ TBTF home and archive at http://tbtf.com/ . To unsubscribe send the message "unsubscribe" to tbtf-request@tbtf.com. TBTF is Copy- right 1994-2000 by Keith Dawson, <dawson@world.std.com>. Commercial use prohibited. For non-commercial purposes please forward, post, and link as you see fit. _______________________________________________ Keith Dawson dawson@world.std.com Layer of ash separates morning and evening milk. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com> iQCVAwUBOuCi3WAMawgf2iXRAQHeAQQA3YSePSQ0XzdHZUVskFDkTfpE9XS4fHQs WaT6a8qLZK9PdNcoz3zggM/Jnjdx6CJqNzxPEtxk9B2DoGll/C/60HWNPN+VujDu Xav65S0P+Px4knaQcCIeCamQJ7uGcsw+CqMpNbxWYaTYmjAfkbKH1EuLC2VRwdmD wQmwrDp70v8= =8hLB -----END PGP SIGNATURE-----
Postfix SpamAssassin starten
Um das Starten von Apache SpamAssassin auch nach einem System-(re)-start auch in Zukunft dauerhaft zu realisieren, kann folgender Befehl genutzt werden. Hier wird Apache SpamAssassin zu den Start-Scripten der einzelnen Runlevel des Betriebssystem hinzugefügt:
# chkconfig spamassassin on
Ein Überprüfung, ob Apache SpamAssassin in den einzelnen Runlevel des Betriebssystems bei einem system-(re)-start mit gestartet wird, kann mit folgenden Befehlen abgefragt werden:
# chkconfig --list | grep spamassassin spamassassin 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Abschließend kann der Start von Apache SpamAssassin durch folgenden Befehl erfolgen:
# service spamassassin start Starting spamd: [ OK ]
Folgender Befehl kann zur Überprüfung verwendet werden, ob Apache SpamAssassin auf localhost
bzw. 127.0.0.1
und Port 783
lauscht:
# netstat -tulpen | grep spam tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 0 111304 23125/spamd.pid
bzw.
# lsof -i :783 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME spamd 23125 root 5u IPv4 111304 TCP localhost.localdomain:783 (LISTEN) spamd 23129 root 5u IPv4 111304 TCP localhost.localdomain:783 (LISTEN) spamd 23130 root 5u IPv4 111304 TCP localhost.localdomain:783 (LISTEN)
sa-update
Nachfolgendes Skript, sorgt dafür, dass Apache SpamAssassin up-to-date bleibt:
/etc/cron.d/sa-update
Falls nachfolgende Fehlermeldung in der Log-Datei
/var/log/sa-update.log
erscheinen sollte:
http: GET http://daryl.dostech.ca/sa-update/asf/1387055.tar.gz request failed: 404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /sa-update/asf/1387055.tar.gz was not found on this server.</p> <hr> <address>Apache/2.2.6 (Fedora) Server at daryl.dostech.ca Port 80</address> </body></html>
kann nachfolgender Befehl dazu verwandt werden, ein manuelles Update auszulösen:
# /usr/bin/sa-update -D