[spamassassin-iXhash2] Initial import of iXhash2
Robert Scheck
robert at fedoraproject.org
Sat Jul 14 00:29:02 UTC 2012
commit 3db40045be3cf67bfca702dfda79cf2ea8ba53c2
Author: Robert Scheck <robert at fedoraproject.org>
Date: Sat Jul 14 02:28:39 2012 +0200
Initial import of iXhash2
.gitignore | 1 +
sources | 1 +
spamassassin-iXhash2-2.05-conf.patch | 37 +++++++++++++++++++
spamassassin-iXhash2.eml | 21 +++++++++++
spamassassin-iXhash2.spec | 65 ++++++++++++++++++++++++++++++++++
5 files changed, 125 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f6ff9eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/iXhash2-2.05.tar.gz
diff --git a/sources b/sources
index e69de29..bd4b768 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3acd152c17207ae2454a35c29b41a258 iXhash2-2.05.tar.gz
diff --git a/spamassassin-iXhash2-2.05-conf.patch b/spamassassin-iXhash2-2.05-conf.patch
new file mode 100644
index 0000000..37ed7e8
--- /dev/null
+++ b/spamassassin-iXhash2-2.05-conf.patch
@@ -0,0 +1,37 @@
+Patch by Robert Scheck <robert at fedoraproject.org> for iXhash2 >= 2.05 which
+sets some useful defaults based on Mail::SpamAssassin::Plugin::iXhash2.
+
+--- iXhash2-2.05/iXhash2.cf 2012-07-08 13:29:31.000000000 +0200
++++ iXhash2-2.05/iXhash2.cf.conf 2012-07-08 14:03:16.000000000 +0200
+@@ -1,20 +1,29 @@
++# iXhash computes MD5 checksums of fragments of the body of an e-mail
++# and compares them to those of known spam using DNS queries to a RBL-
++# like name server. So it works similar to the standard plugins that
++# use the Pyzor, Razor and DCC software packages.
+
+ # Note: loadplugin should really go into local.pre or so
+-loadplugin Mail::SpamAssassin::Plugin::iXhash2 iXhash2.pm
++loadplugin Mail::SpamAssassin::Plugin::iXhash2
+
+ ifplugin Mail::SpamAssassin::Plugin::iXhash2
+
+ ixhashdnsbl GENERIC_IXHASH generic.ixhash.net.
+ body GENERIC_IXHASH eval:check_ixhash('GENERIC_IXHASH')
++describe GENERIC_IXHASH http://www.ixhash.net/listinfo.html
+ tflags GENERIC_IXHASH net
++score GENERIC_IXHASH 1.5
+
+ ixhashdnsbl NIXSPAM_IXHASH ix.dnsbl.manitu.net.
+ body NIXSPAM_IXHASH eval:check_ixhash('NIXSPAM_IXHASH')
++describe NIXSPAM_IXHASH http://www.ixhash.net/listinfo.html
+ tflags NIXSPAM_IXHASH net
++score NIXSPAM_IXHASH 1.5
+
+ ixhashdnsbl SEM_IXHASH ixhash.spameatingmonkey.net.
+ body SEM_IXHASH eval:check_ixhash('SEM_IXHASH')
++describe SEM_IXHASH http://spameatingmonkey.com/lists.html
+ tflags SEM_IXHASH net
++score SEM_IXHASH 1.5
+
+ endif
+-
diff --git a/spamassassin-iXhash2.eml b/spamassassin-iXhash2.eml
new file mode 100644
index 0000000..5b15311
--- /dev/null
+++ b/spamassassin-iXhash2.eml
@@ -0,0 +1,21 @@
+From: "iXhash plugin test mail" <spamtrap at ixhash.net>
+Message-ID: <mEsSaGeId at sOmEwHeRe.CoM>
+To: admin at testsite.com
+Subject: iXhash plugin test mail
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+<HEAD>
+<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
+</HEAD>
+<body>
+ <font face="Verdana"><strong>This is an e-mail designed to test the iXhash plugin's functionality.</strong><br>
+ <br>
+ If you run this mail through SpamAssassin (using 'spamassassin -D IXHASH < iXhash.eml', you should see the plugin score with the list 'generic.ixhash.net'.<br>
+ This is because the hashes this mail generates ( cbdc00eaaf002aad4448b75f47a9784f and 464d43b6999bdbdf6071b8b1d3f9a525 ) are permanently listed on that list.<br>
+ Apart from that this mail is of no use.<br>
+ <br>
+
+</body>
+</html>
+
diff --git a/spamassassin-iXhash2.spec b/spamassassin-iXhash2.spec
new file mode 100644
index 0000000..4939c97
--- /dev/null
+++ b/spamassassin-iXhash2.spec
@@ -0,0 +1,65 @@
+%define pkgname iXhash2
+
+Summary: SpamAssassin plugin to lookup e-mail checksums in blacklists
+Name: spamassassin-%{pkgname}
+Version: 2.05
+Release: 2%{?dist}
+License: ASL 2.0
+Group: Applications/Internet
+URL: http://mailfud.org/%{pkgname}/
+Source0: http://mailfud.org/%{pkgname}/%{pkgname}-%{version}.tar.gz
+Source1: spamassassin-iXhash2.eml
+Patch0: spamassassin-iXhash2-2.05-conf.patch
+Requires: spamassassin >= 3.2
+Provides: spamassassin-iXhash = 1.5.5-2
+Obsoletes: spamassassin-iXhash < 1.5.5-2
+BuildRequires: %{_bindir}/perldoc
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+iXhash2 is an unofficial improved version of the iXhash spam filter
+plugin for SpamAssassin, adding async DNS lookups for performance and
+removing unneeded features but fully compatible with the iXhash 1.5.5
+(http://www.ixhash.net/) implementation. It computes MD5 checksums of
+fragments of the body of an e-mail and compares them to those of known
+spam using DNS queries to a RBL-like name server. So it works similar
+to the standard plugins that use the Pyzor, Razor and DCC software
+packages from within SpamAssassin.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p1 -b .conf
+cp -pf %{SOURCE1} iXhash2.eml
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D -p -m 644 %{pkgname}.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/%{pkgname}.cf
+touch -c -r %{pkgname}.cf.conf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/%{pkgname}.cf
+install -D -p -m 644 %{pkgname}.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
+perldoc %{pkgname}.pm > $RPM_BUILD_ROOT%{_mandir}/man3/Mail::SpamAssassin::Plugin::%{pkgname}.3pm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG LICENSE README iXhash2.eml
+%config(noreplace) %{_sysconfdir}/mail/spamassassin/%{pkgname}.cf
+%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm
+%{_mandir}/man3/*.3pm*
+
+%changelog
+* Thu Jul 12 2012 Robert Scheck <robert at fedoraproject.org> 2.05-2
+- Added missing perldoc requirement (#838327 #c3)
+
+* Sun Jul 08 2012 Robert Scheck <robert at fedoraproject.org> 2.05-1
+- Switched to iXhash2 2.05 (#838327)
+
+* Fri Nov 12 2010 Robert Scheck <robert at fedoraproject.org> 1.5.5-1
+- Upgrade to 1.5.5
+- Initial spec file for Fedora and Red Hat Enterprise Linux
More information about the scm-commits
mailing list