- Enable SOUGHT ruleset in nightly sa-update
http://wiki.apache.org/spamassassin/SoughtRules You must enable the sa-update cron job manually in /etc/cron.d/sa-update - Custom channels may be specified in these config files: /etc/mail/spamassassin/sa-update-channels.txt /etc/mail/spamassassin/sa-update-keys.txt
This commit is contained in:
parent
4bd0fc3ea6
commit
c40bdd3b5a
2
sa-update-channels.txt
Normal file
2
sa-update-channels.txt
Normal file
@ -0,0 +1,2 @@
|
||||
updates.spamassassin.org
|
||||
sought.rules.yerp.org
|
2
sa-update-keys.txt
Normal file
2
sa-update-keys.txt
Normal file
@ -0,0 +1,2 @@
|
||||
# SOUGHT anti-fraud ruleset
|
||||
6C6191E3
|
@ -1,5 +1,22 @@
|
||||
#!/bin/bash
|
||||
# *** DO NOT MODIFY THIS FILE ***
|
||||
# Edit /etc/cron.d/sa-update to enable nightly automatic updates
|
||||
# /etc/mail/spamassassin/sa-update-channels.txt
|
||||
# Specify custom channels here
|
||||
# /etc/mail/spamassassin/sa-update-keys.txt
|
||||
# Specify trusted GPG keys for custom channels here
|
||||
|
||||
# Sleep random amount of time before proceeding to avoid overwhelming the servers
|
||||
sleep $(expr $RANDOM % 7200)
|
||||
# Only restart spamd if sa-update returns 0, meaning it updated the rules
|
||||
/usr/bin/sa-update && /etc/init.d/spamassassin condrestart > /dev/null
|
||||
|
||||
# sa-update must create keyring
|
||||
if [ ! -d /etc/mail/spamassassin/sa-update-keys ]; then
|
||||
sa-update
|
||||
fi
|
||||
# Import SOUGHT key
|
||||
sa-update --import /usr/share/spamassassin/sought-pubkey.txt
|
||||
|
||||
# Update rules with sa-update, restart spamd if rules were updated
|
||||
/usr/bin/sa-update --channelfile /etc/mail/spamassassin/sa-update-channels.txt \
|
||||
--gpgkeyfile /etc/mail/spamassassin/sa-update-keys.txt && \
|
||||
/etc/init.d/spamassassin condrestart > /dev/null
|
||||
|
41
sought-pubkey.txt
Normal file
41
sought-pubkey.txt
Normal file
@ -0,0 +1,41 @@
|
||||
-----BEGIN PGP PUBLIC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HSdFbFXQWPCekx+i7OjeRSY/XTUf2zYquPNP2oU0MjgnXhnkHq+6EaQPpM59fMd
|
||||
MyLeOiUMOxpPOkeaAC8Ku0Oj2aZU/eyizuBDnhq1PAxBprSW5SSkxP4kz9BnA42x
|
||||
tkMKMzzPohdfMIRI6zSu0chr76w2UeoViSsMtmWnR6qAXbQvzR+HHxhhB/Rzp6Gc
|
||||
u9gybrv58IBkybn5ztST6NqgIgcQ/E7XIsB0Eooohfw+QiPlCdoghSxspbzwqcEZ
|
||||
B4hPBBgRAgAPBQJGv5h3AhsMBQkSzAMAAAoJENyFNB9sYZHjUh0AnA3u5TNYHGLQ
|
||||
DXLPP0qWHkTeOz8dAJ4wkrLBTaXz3CPCjoTdoBiQsNt3fw==
|
||||
=nK43
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
@ -30,8 +30,8 @@
|
||||
%define perl_devel 1
|
||||
%endif
|
||||
|
||||
# Mail::DKIM by default (F12+)
|
||||
%if 0%{?fedora} >= 12
|
||||
# Mail::DKIM by default (F11+)
|
||||
%if 0%{?fedora} >= 11
|
||||
%define dkim_deps 1
|
||||
%endif
|
||||
|
||||
@ -42,7 +42,7 @@ Summary: Spam filter for email which can be invoked from mail delivery agents
|
||||
Name: spamassassin
|
||||
Version: 3.3.0
|
||||
%define prename svn816416
|
||||
Release: 0.14.%{prename}%{?dist}
|
||||
Release: 0.18.%{prename}%{?dist}
|
||||
License: ASL 2.0
|
||||
Group: Applications/Internet
|
||||
URL: http://spamassassin.apache.org/
|
||||
@ -56,6 +56,9 @@ Source6: sa-update.logrotate
|
||||
Source7: sa-update.crontab
|
||||
Source8: sa-update.cronscript
|
||||
Source10: spamassassin-helper.sh
|
||||
Source11: sa-update-channels.txt
|
||||
Source12: sa-update-keys.txt
|
||||
Source13: sought-pubkey.txt
|
||||
# Patches 0-99 are RH specific
|
||||
# none yet
|
||||
# Patches 100+ are SVN backports (DO NOT REUSE!)
|
||||
@ -159,6 +162,7 @@ install -m 0644 %{SOURCE6} %buildroot/etc/logrotate.d/sa-update
|
||||
install -m 0644 %{SOURCE7} %buildroot/etc/cron.d/sa-update
|
||||
# installed mode 744 as non root users can't run it, but can read it.
|
||||
install -m 0744 %{SOURCE8} %buildroot%{_datadir}/spamassassin/sa-update.cron
|
||||
install -m 0644 %{SOURCE13} %buildroot%{_datadir}/spamassassin/
|
||||
|
||||
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
|
||||
|
||||
@ -184,6 +188,11 @@ find $RPM_BUILD_ROOT%{perl_vendorlib}/* -type d -print |
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/spamassassin
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/spamassassin
|
||||
|
||||
# sa-update channels and keys
|
||||
install -m 0644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/
|
||||
install -m 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/
|
||||
|
||||
|
||||
%files -f %{name}-%{version}-filelist
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE NOTICE CREDITS Changes README TRADEMARK UPGRADE
|
||||
@ -234,12 +243,19 @@ fi
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Thu Sep 24 2009 Warren Togami <wtogami@redhat.com> - 3.3.3-0.18.svn816416
|
||||
- Enable SOUGHT ruleset in nightly sa-update http://wiki.apache.org/spamassassin/SoughtRules
|
||||
You must enable the sa-update cron job manually in /etc/cron.d/sa-update
|
||||
- Custom channels may be specified in these config files:
|
||||
/etc/mail/spamassassin/sa-update-channels.txt
|
||||
/etc/mail/spamassassin/sa-update-keys.txt
|
||||
|
||||
* Thu Sep 17 2009 Warren Togami <wtogami@redhat.com> - 3.3.3-0.14.svn816416
|
||||
- 3.3.0 svn816416 snapshot, pre-alpha3
|
||||
Upstream just fixed important bug SA#6206. Many other bugs fixed since alpha2.
|
||||
|
||||
* Thu Sep 17 2009 Warren Togami <wtogami@redhat.com> - 3.3.0-0.13.alpha2
|
||||
- F12+ requires Mail::DKIM
|
||||
- F11+ requires Mail::DKIM
|
||||
|
||||
* Sun Sep 13 2009 Warren Togami <wtogami@redhat.com> - 3.3.0-0.12.alpha2
|
||||
- require perl(Mail::DKIM), useful due to USER_IN_DEF_DKIM_WL
|
||||
|
Loading…
Reference in New Issue
Block a user