webbuilder_pel7ppc64bebuilder0
6 years ago
3 changed files with 150 additions and 0 deletions
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
Patch by Robert Scheck <robert@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 2017-12-05 23:44:34.000000000 +0100 |
||||
@@ -1,20 +1,17 @@ |
||||
+# 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') |
||||
-tflags GENERIC_IXHASH net |
||||
- |
||||
ixhashdnsbl NIXSPAM_IXHASH ix.dnsbl.manitu.net. |
||||
body NIXSPAM_IXHASH eval:check_ixhash('NIXSPAM_IXHASH') |
||||
+describe NIXSPAM_IXHASH http://www.nixspam.org/ |
||||
tflags NIXSPAM_IXHASH net |
||||
- |
||||
-ixhashdnsbl SEM_IXHASH ixhash.spameatingmonkey.net. |
||||
-body SEM_IXHASH eval:check_ixhash('SEM_IXHASH') |
||||
-tflags SEM_IXHASH net |
||||
+score NIXSPAM_IXHASH 3.0 |
||||
|
||||
endif |
||||
- |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
From: "iXhash plugin test mail" <spamtrap@ixhash.net> |
||||
Message-ID: <mEsSaGeId@sOmEwHeRe.CoM> |
||||
To: admin@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> |
||||
|
@ -0,0 +1,96 @@
@@ -0,0 +1,96 @@
|
||||
%global pkgname iXhash2 |
||||
|
||||
Summary: SpamAssassin plugin to lookup e-mail checksums in blacklists |
||||
Name: spamassassin-%{pkgname} |
||||
Version: 2.05 |
||||
Release: 14%{?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 |
||||
BuildRequires: perl-generators |
||||
BuildArch: noarch |
||||
|
||||
%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 |
||||
(https://sourceforge.net/projects/ixhash/) 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 |
||||
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 |
||||
|
||||
%files |
||||
%license LICENSE |
||||
%doc CHANGELOG README iXhash2.eml |
||||
%config(noreplace) %{_sysconfdir}/mail/spamassassin/%{pkgname}.cf |
||||
%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm |
||||
%{_mandir}/man3/*.3pm* |
||||
|
||||
%changelog |
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-14 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-13 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
||||
|
||||
* Wed Dec 06 2017 Robert Scheck <robert@fedoraproject.org> 2.05-12 |
||||
- Remove retired iXhash blacklists from default configuration |
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-11 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-10 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-9 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05-8 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05-7 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05-6 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
||||
|
||||
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 2.05-5 |
||||
- Perl 5.18 rebuild |
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
||||
|
||||
* Thu Jul 12 2012 Robert Scheck <robert@fedoraproject.org> 2.05-2 |
||||
- Added missing perldoc requirement (#838327 #c3) |
||||
|
||||
* Sun Jul 08 2012 Robert Scheck <robert@fedoraproject.org> 2.05-1 |
||||
- Switched to iXhash2 2.05 (#838327) |
||||
|
||||
* Fri Nov 12 2010 Robert Scheck <robert@fedoraproject.org> 1.5.5-1 |
||||
- Upgrade to 1.5.5 |
||||
- Initial spec file for Fedora and Red Hat Enterprise Linux |
Loading…
Reference in new issue