dbb15f4
# This package uses systemd init from Fedora 16, but can use it for
dbb15f4
# Fedora 15 if built using --with systemd
f60f79c
%if !((0%{?rhel} && 0%{?rhel} <= 6) || (0%{?fedora} && 0%{?fedora} <= 15))
dbb15f4
%global _with_systemd --with-systemd
dbb15f4
%endif
dbb15f4
%global use_systemd %{!?_with_systemd:0}%{?_with_systemd:1}
dbb15f4
f60f79c
# The runtime directory is on tmpfs from Fedora 15 regardless of whether or not we're using systemd init
f60f79c
%if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?fedora} && 0%{?fedora} <= 14)
dbb15f4
%global rundir %{_localstatedir}/run
f60f79c
%global rundir_tmpfs 0
f60f79c
%else
f60f79c
%global rundir /run
f60f79c
%global rundir_tmpfs 1
dbb15f4
%endif
dbb15f4
f60f79c
# systemd-units merged into systemd at Fedora 17
f60f79c
%if (0%{?fedora} && 0%{?fedora} <= 16)
f60f79c
%global systemd_units systemd-units
f60f79c
%else
f60f79c
%global systemd_units systemd
f60f79c
%endif
dbb15f4
f60f79c
# Support systemd presets and drop support for SysV migration from Fedora 18, RHEL 7
f60f79c
%if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?fedora} && 0%{?fedora} <= 17)
f60f79c
%global preset_support 0
f60f79c
%global sysv_to_systemd %{use_systemd}
dbb15f4
# Flag file for SysV-to-systemd migration
dbb15f4
%global migrfile /run/%{name}-%{version}-%{release}-%{_arch}.systemd-migration
f60f79c
# This macro not defined until Fedora 18
f60f79c
%global _tmpfilesdir %{_prefix}/lib/tmpfiles.d
f60f79c
%else
f60f79c
%global preset_support 1
f60f79c
%global sysv_to_systemd 0
f60f79c
%endif
6fc154e
bcacd73
# Milter header files package name
f60f79c
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} <= 25)
bcacd73
%global milter_devel_package sendmail-devel
f60f79c
%else
f60f79c
%global milter_devel_package sendmail-milter-devel
bcacd73
%endif
bcacd73
f60f79c
# Do a hardened build where possible
f60f79c
%global _hardened_build 1
f60f79c
f273b15
Summary:	Milter (mail filter) for spamassassin
621b919
Name:		spamass-milter
dee6449
Version:	0.4.0
b1343a2
Release:	21%{?dist}
621b919
License:	GPLv2+
621b919
URL:		http://savannah.nongnu.org/projects/spamass-milt/
dee6449
Source0:	http://savannah.nongnu.org/download/spamass-milt/spamass-milter-%{version}.tar.gz
dbb15f4
Source1:	spamass-milter.README.Postfix
dbb15f4
Source2:	spamass-milter-tmpfs.conf
dbb15f4
Source3:	spamass-milter-postfix-tmpfs.conf
dbb15f4
# SysV init
dbb15f4
Source10:	spamass-milter.sysv
dbb15f4
Source11:	spamass-milter-sysconfig.sysv
dbb15f4
# systemd
dbb15f4
Source20:	spamass-milter.service
dbb15f4
Source21:	spamass-milter-root.service
dbb15f4
Source22:	spamass-milter-sysconfig.systemd
dbb15f4
Source23:	spamass-milter-postfix-sysconfig.systemd
3c1d9fa
# Patches submitted upstream:
3c1d9fa
# http://savannah.nongnu.org/bugs/?29326
dee6449
Patch2:		spamass-milter-0.4.0-authuser.patch
dee6449
Patch3:		spamass-milter-0.4.0-rcvd.patch
dee6449
Patch4:		spamass-milter-0.4.0-bits.patch
dee6449
Patch5:		spamass-milter-0.4.0-group.patch
281ea73
# Patches not yet submitted upstream
dee6449
Patch8:		spamass-milter-0.4.0-auth-no-ssf.patch
3c1d9fa
# Fedora-specific patches
dee6449
Patch10:	spamass-milter-0.4.0-pathnames.patch
dee6449
Patch11:	spamass-milter-0.4.0-rundir.patch
f60f79c
BuildRequires:	coreutils
f60f79c
BuildRequires:	gcc-c++
f60f79c
BuildRequires:	make
f60f79c
BuildRequires:	%milter_devel_package
f60f79c
BuildRequires:	spamassassin
f273b15
Requires:	spamassassin, /usr/sbin/sendmail
dbb15f4
%if %{rundir_tmpfs}
f60f79c
# Needed for ownership of %%{_tmpfilesdir}
f60f79c
Requires:	%{systemd_units}
4163651
%endif
621b919
302acc5
Requires(pre): glibc-common, shadow-utils
f60f79c
%if %{sysv_to_systemd}
302acc5
Requires(pre): chkconfig, coreutils, systemd-sysv
f60f79c
%endif
f60f79c
%if %{use_systemd}
f60f79c
BuildRequires: %{systemd_units}
f60f79c
Requires(post): coreutils, %{systemd_units}
f60f79c
Requires(preun): %{systemd_units}
f60f79c
Requires(postun): %{systemd_units}
dbb15f4
%else
302acc5
Requires(post): chkconfig
302acc5
Requires(preun): chkconfig, initscripts
9e3201c
Requires(postun): initscripts
dbb15f4
%endif
8372c2c
8372c2c
%description
f273b15
A milter (Mail Filter) application that pipes incoming mail (including things
f273b15
received by rmail/UUCP) through SpamAssassin, a highly customizable spam
f273b15
filter. A milter-compatible MTA such as Sendmail or Postfix is required.
f273b15
f273b15
%package postfix
f273b15
Summary:	Postfix support for spamass-milter
f273b15
Requires:	%{name} = %{version}-%{release}
f273b15
Requires(pre):	postfix
f9cb412
Requires(post):	shadow-utils, %{name} = %{version}-%{release}
f9cb412
BuildArch:	noarch
f273b15
f273b15
%description postfix
f273b15
This package adds support for running spamass-milter using a Unix-domain
f273b15
socket to communicate with the Postfix MTA.
8372c2c
8372c2c
%prep
8372c2c
%setup -q
06225df
dbb15f4
# Copy in general support files
dbb15f4
cp -p %{SOURCE1} README.Postfix
dbb15f4
cp -p %{SOURCE2} spamass-milter-tmpfs.conf
dbb15f4
cp -p %{SOURCE3} spamass-milter-postfix-tmpfs.conf
dbb15f4
06225df
# Fix Received-header generation (#496763)
dee6449
%patch3 -b .rcvd
06225df
06225df
# Add authentication info to dummy Received-header (#496769)
dee6449
%patch4 -b .bits
06225df
3c1d9fa
# Add -g option for group-writable socket for Postfix support (#452248)
dee6449
%patch5 -b .group
1bbf067
281ea73
# Help for users authenticating to Postfix (#730308)
dee6449
%patch8 -b .postfix-auth
281ea73
3c1d9fa
# Local patch for initscript and socket paths
dee6449
%patch10 -b .pathnames
dee6449
dee6449
# Add -I option to ignore (don't check) mail from authenticated users
dee6449
# (#437506, #496767) http://savannah.nongnu.org/bugs/?21046
dee6449
# Note: upstream introduced a similar -a option in version 0.4.0, so this
dee6449
# option is retained only in builds prior to Fedora 22 for compatibility
f60f79c
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} <= 21)
dee6449
%patch2 -b .authuser
dee6449
%endif
06225df
dbb15f4
# With systemd, the runtime directory is /run rather than /var/run
f60f79c
%if %{rundir_tmpfs}
dee6449
%patch11 -b .rundir
dbb15f4
%endif
dbb15f4
dbb15f4
# Copy in SysV init files
dbb15f4
%if !%{use_systemd}
dbb15f4
cp -p %{SOURCE10} %{SOURCE11} .
dbb15f4
%endif
dbb15f4
dbb15f4
# Copy in systemd files
dbb15f4
%if %{use_systemd}
dbb15f4
cp -p %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} .
dbb15f4
%endif
8372c2c
8372c2c
%build
6da5fea
export SENDMAIL=/usr/sbin/sendmail
8372c2c
%configure
ba6bd57
make %{?_smp_mflags}
8372c2c
8372c2c
%install
ba6bd57
make DESTDIR=%{buildroot} install
8372c2c
ba6bd57
install -m 755 -d %{buildroot}%{_localstatedir}/lib/spamass-milter
dbb15f4
install -m 711 -d %{buildroot}%{rundir}/spamass-milter
dbb15f4
install -m 750 -d %{buildroot}%{rundir}/spamass-milter/postfix
dbb15f4
%if %{use_systemd}
dbb15f4
install -m 644 -D spamass-milter.service \
dbb15f4
	%{buildroot}%{_unitdir}/spamass-milter.service
dbb15f4
install -m 644 -D spamass-milter-root.service \
dbb15f4
	%{buildroot}%{_unitdir}/spamass-milter-root.service
dbb15f4
install -m 644 -D spamass-milter-sysconfig.systemd \
dbb15f4
	%{buildroot}%{_sysconfdir}/sysconfig/spamass-milter
dbb15f4
install -m 644 -D spamass-milter-postfix-sysconfig.systemd \
dbb15f4
	%{buildroot}%{_sysconfdir}/sysconfig/spamass-milter-postfix
dbb15f4
%else
dbb15f4
install -m 755 -D spamass-milter.sysv \
f60f79c
	%{buildroot}%{_initddir}/spamass-milter
dbb15f4
install -m 644 -D spamass-milter-sysconfig.sysv \
dbb15f4
	%{buildroot}%{_sysconfdir}/sysconfig/spamass-milter
dbb15f4
%endif
8372c2c
dbb15f4
# Make sure %%{rundir}/spamass-milter{,/postfix} exist at boot time for systems
dbb15f4
# with %%{rundir} on tmpfs (#656692)
dbb15f4
%if %{rundir_tmpfs}
f60f79c
install -m 755 -d %{buildroot}%{_tmpfilesdir}
dbb15f4
install -m 644 spamass-milter-tmpfs.conf \
f60f79c
	%{buildroot}%{_tmpfilesdir}/spamass-milter.conf
dbb15f4
install -m 644 spamass-milter-postfix-tmpfs.conf \
f60f79c
	%{buildroot}%{_tmpfilesdir}/spamass-milter-postfix.conf
14e0781
%endif
14e0781
dbb15f4
# Create dummy sockets for %%ghost-ing
dbb15f4
: > %{buildroot}%{rundir}/spamass-milter/spamass-milter.sock
dbb15f4
: > %{buildroot}%{rundir}/spamass-milter/postfix/sock
dbb15f4
8372c2c
%pre
302acc5
getent group sa-milt >/dev/null || groupadd -r sa-milt
302acc5
getent passwd sa-milt >/dev/null || \
302acc5
	useradd -r -g sa-milt -d %{_localstatedir}/lib/spamass-milter \
621b919
		-s /sbin/nologin -c "SpamAssassin Milter" sa-milt
9e3201c
# Fix homedir for upgrades
302acc5
usermod --home %{_localstatedir}/lib/spamass-milter sa-milt &>/dev/null
f60f79c
%if %{sysv_to_systemd}
dbb15f4
# Start SysV-to-systemd migration
302acc5
rm -f %{migrfile} &>/dev/null
f60f79c
if [ $1 -gt 1 -a ! -e %{_unitdir}/spamass-milter.service -a -e %{_initddir}/spamass-milter ]; then
302acc5
	systemd-sysv-convert --save spamass-milter &>/dev/null
302acc5
	chkconfig --del spamass-milter &>/dev/null
302acc5
	touch %{migrfile} &>/dev/null
dbb15f4
fi
dbb15f4
%endif
621b919
exit 0
8372c2c
8372c2c
%post
dbb15f4
if [ $1 -eq 1 ]; then
dbb15f4
	# Initial installation
dbb15f4
%if %{use_systemd}
302acc5
	systemctl daemon-reload &>/dev/null || :
dbb15f4
%else
302acc5
	chkconfig --add spamass-milter || :
dbb15f4
%endif
f60f79c
%if %{preset_support}
302acc5
	systemctl preset spamass-milter.service &>/dev/null || :
302acc5
	systemctl preset spamass-milter-root.service &>/dev/null || :
3d0443d
%endif
dbb15f4
fi
8372c2c
8372c2c
%preun
8372c2c
if [ $1 -eq 0 ]; then
dbb15f4
	# Package removal, not upgrade
dbb15f4
%if %{use_systemd}
302acc5
	systemctl --no-reload disable spamass-milter.service &>/dev/null || :
302acc5
	systemctl stop spamass-milter.service &>/dev/null || :
302acc5
	systemctl --no-reload disable spamass-milter-root.service &>/dev/null || :
302acc5
	systemctl stop spamass-milter-root.service &>/dev/null || :
dbb15f4
%else
f60f79c
	%{_initddir}/spamass-milter stop &>/dev/null || :
302acc5
	chkconfig --del spamass-milter || :
dbb15f4
%endif
8372c2c
fi
8372c2c
8372c2c
%postun
dbb15f4
%if %{use_systemd}
302acc5
systemctl daemon-reload &>/dev/null || :
dbb15f4
%endif
dbb15f4
if [ $1 -ge 1 ]; then
dbb15f4
	# Package upgrade, not uninstall
dbb15f4
%if %{use_systemd}
302acc5
	systemctl try-restart spamass-milter.service &>/dev/null || :
302acc5
	systemctl try-restart spamass-milter-root.service &>/dev/null || :
dbb15f4
%else
f60f79c
	%{_initddir}/spamass-milter condrestart &>/dev/null || :
dbb15f4
%endif
dbb15f4
fi
dbb15f4
f60f79c
%if %{sysv_to_systemd}
dbb15f4
%triggerpostun -- spamass-milter
dbb15f4
# Complete the SysV-to-system migration started in %%pre
dbb15f4
if [ $1 -gt 0 -a -e %{migrfile} ]; then
302acc5
	systemctl daemon-reload &>/dev/null || :
302acc5
	systemctl try-restart spamass-milter.service &>/dev/null
dbb15f4
fi
302acc5
rm -f %{migrfile} &>/dev/null || :
dbb15f4
%endif
8372c2c
f273b15
%post postfix
f273b15
# This is needed because the milter needs to "give away" the MTA communication
f273b15
# socket to the postfix group, and it needs to be a member of the group to do
f273b15
# that.
302acc5
usermod -a -G postfix sa-milt || :
f273b15
8372c2c
%files
8372c2c
%doc AUTHORS ChangeLog NEWS README
f893c6e
%{_mandir}/man1/spamass-milter.1*
8372c2c
%config(noreplace) %{_sysconfdir}/sysconfig/spamass-milter
dbb15f4
%if %{rundir_tmpfs}
f60f79c
%{_tmpfilesdir}/spamass-milter.conf
14e0781
%endif
dbb15f4
%if %{use_systemd}
dbb15f4
%{_unitdir}/spamass-milter.service
dbb15f4
%{_unitdir}/spamass-milter-root.service
dbb15f4
%else
f60f79c
%{_initddir}/spamass-milter
dbb15f4
%endif
8372c2c
%{_sbindir}/spamass-milter
9e3201c
%dir %attr(-,sa-milt,sa-milt) %{_localstatedir}/lib/spamass-milter/
dbb15f4
%dir %attr(-,sa-milt,sa-milt) %{rundir}/spamass-milter/
dbb15f4
%ghost %{rundir}/spamass-milter/spamass-milter.sock
8372c2c
f273b15
%files postfix
f273b15
%doc README.Postfix
dbb15f4
%if %{rundir_tmpfs}
f60f79c
%{_tmpfilesdir}/spamass-milter-postfix.conf
14e0781
%endif
dbb15f4
%if %{use_systemd}
dbb15f4
%config(noreplace) %{_sysconfdir}/sysconfig/spamass-milter-postfix
dbb15f4
%endif
dbb15f4
%dir %attr(-,sa-milt,postfix) %{rundir}/spamass-milter/postfix/
dbb15f4
%ghost %{rundir}/spamass-milter/postfix/sock
f273b15
8372c2c
%changelog
b1343a2
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-21
b1343a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b1343a2
729d3b5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-20
729d3b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
729d3b5
802d263
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-19
802d263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
802d263
d47a361
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-18
d47a361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d47a361
0a2b071
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-17
0a2b071
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0a2b071
9acada5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-16
9acada5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9acada5
29e29cd
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-15
29e29cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
29e29cd
05fb643
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-14
05fb643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
05fb643
32c74e6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-13
32c74e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
32c74e6
f60f79c
* Mon Jan 29 2018 Paul Howarth <paul@city-fan.org> - 0.4.0-12
f60f79c
- Account for systemd-units being merged into systemd at Fedora 17
f60f79c
- Drop support for SysV-to-systemd migration from Fedora 18, RHEL 7
f60f79c
- Use forward-looking conditionals
f60f79c
- One build requirement per line
f60f79c
302acc5
* Wed Nov 15 2017 Paul Howarth <paul@city-fan.org> - 0.4.0-11
302acc5
- Replace /bin/* dependencies with coreutils etc. (#1512898)
302acc5
- Drop explicit paths for commands to aid spec readability
302acc5
- Drop EL-5 support
302acc5
  - Drop legacy Group: and BuildRoot: tags
302acc5
  - Drop explicit buildroot cleaning in %%install section
302acc5
  - Drop explicit %%clean section
302acc5
  - Noarch sub-packages are always available now
302acc5
0eec5fd
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-10
0eec5fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0eec5fd
85f035d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-9
85f035d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
85f035d
898c810
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-8
898c810
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
898c810
329c157
* Mon Aug 22 2016 Paul Howarth <paul@city-fan.org> - 0.4.0-7
329c157
- Document expected warning message when used with Postfix (#1368645)
329c157
bcacd73
* Fri Aug  5 2016 Paul Howarth <paul@city-fan.org> - 0.4.0-6
bcacd73
- sendmail-devel renamed to sendmail-milter-devel from Fedora 26
bcacd73
- Specify all build requirements
bcacd73
9e9a23c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5
9e9a23c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9e9a23c
a3bbc33
* Wed Jan  6 2016 Paul Howarth <paul@city-fan.org> - 0.4.0-4
a3bbc33
- Document macro requirements for Postfix (#1294245)
a3bbc33
4f8be32
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
4f8be32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4f8be32
ae43ba8
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.4.0-2
ae43ba8
- Rebuilt for GCC 5 C++11 ABI change
ae43ba8
dee6449
* Thu Feb 26 2015 Paul Howarth <paul@city-fan.org> - 0.4.0-1
dee6449
- Update to 0.4.0
dee6449
  - New options:
dee6449
    -C option to change the default reject code
dee6449
    -S option to specify a path to sendmail (for the -x option)
dee6449
    -R option to specify the rejection message
dee6449
    -a option to skip messages that were authenticated
dee6449
  - IPv6 address support
dee6449
  - Syntax clean-ups
dee6449
- Drop upstreamed syntax, rejection text and IPv6 patches
dee6449
- Update authuser patch: note that upstream has introduced a -a option that
dee6449
  does pretty much the same as the -I option added by this patch, so this
dee6449
  patch is deprecated and will not be included in builds for Fedora 22 onwards
dee6449
- Clean up other patches to apply cleanly
dee6449
4f77148
* Tue Feb 24 2015 Paul Howarth <paul@city-fan.org> - 0.3.2-15
4f77148
- Add -R option to specify SMTP rejection text (#1131667)
4f77148
- Drop %%defattr, redundant since rpm 4.4
4f77148
abb4f6c
* Thu Aug 21 2014 Kevin Fenzi <kevin@scrye.com> - 0.3.2-14
abb4f6c
- Rebuild for rpm bug 1131960
abb4f6c
76ae2f2
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-13
76ae2f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
76ae2f2
729d6a5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-12
729d6a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
729d6a5
746e0cf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-11
746e0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
746e0cf
c96abd9
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-10
c96abd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c96abd9
4f77148
* Wed Sep  5 2012 Paul Howarth <paul@city-fan.org> - 0.3.2-9
3d0443d
- Add systemd preset support (#850321)
3d0443d
4f77148
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-8
fbbf4d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fbbf4d5
4f77148
* Wed Jul  4 2012 Paul Howarth <paul@city-fan.org> - 0.3.2-7
6f3e606
- Move the tmpfiles.d config from %%{_sysconfdir} to %%{_prefix}/lib
6f3e606
4f77148
* Mon Apr 16 2012 Paul Howarth <paul@city-fan.org> - 0.3.2-6
6fc154e
- Do a hardened (PIE) build where possible
6fc154e
4f77148
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.3.2-5
a3026ff
- Rebuild for gcc 4.7 in Rawhide
a3026ff
4f77148
* Wed Aug 24 2011 Paul Howarth <paul@city-fan.org> - 0.3.2-4
dbb15f4
- Add systemd init support, on by default from Fedora 16
dbb15f4
- %%ghost the sockets for clean uninstalls
dbb15f4
4f77148
* Thu Aug 18 2011 Paul Howarth <paul@city-fan.org> - 0.3.2-3
281ea73
- Help for users authenticating to Postfix (#730308)
281ea73
4f77148
* Mon Jul 18 2011 Paul Howarth <paul@city-fan.org> - 0.3.2-2
f2b1981
- Drop the wrapper, which hasn't been needed since 0.3.1 was released
ba6bd57
- Nobody else likes macros for commands
ba6bd57
4f77148
* Tue Feb 15 2011 Paul Howarth <paul@city-fan.org> - 0.3.2-1
bc5694b
- Update to 0.3.2 (upstream fix for popen unsanitized input vulnerability:
bc5694b
  CVE-2010-1132, #572117, #572119, http://savannah.nongnu.org/bugs/?29136)
bc5694b
- Drop popen patch, now upstream
bc5694b
- Rework syntax, rcvd and bits patches to apply against new codebase
bc5694b
b930b0c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-25
b930b0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b930b0c
4f77148
* Tue Nov 30 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-24
4163651
- Require systemd-units for ownership of /etc/tmpfiles.d directory
ee4481b
- Add Default-Stop LSB keyword in initscript
4163651
4f77148
* Fri Nov 26 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-23
14e0781
- Make sure /var/run/spamass-milter and /var/run/spamass-milter/postfix exist
14e0781
  at boot time for systems with /var/run on tmpfs (#656692)
14e0781
Jesse Keating 0717d01
* Wed Sep 29 2010 jkeating - 0.3.1-22
Jesse Keating 0717d01
- Rebuilt for gcc bug 634757
Jesse Keating 0717d01
4f77148
* Thu Sep 23 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-21
1bbf067
- Add IPv6 whitelisting support (#630263)
1bbf067
4f77148
* Tue Jun  8 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-20
96125f0
- RHEL-6 onwards have noarch subpackages, so make spamass-milter-postfix one
96125f0
4f77148
* Mon Apr 19 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-19
fbcc1a3
- Fix patch for CVE-2010-1132 to not create a zombie process per email when
fbcc1a3
  the -x or -b options are used (#583523)
fbcc1a3
4f77148
* Tue Mar 23 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-18
3c1d9fa
- Add patch to get rid of compiler warnings
3c1d9fa
- Reorder and re-base patches to optimize chances of upstream accepting them
3c1d9fa
- Improve Received-header patch (#496763) incorporating additional fix from
3c1d9fa
  upstream update (http://savannah.nongnu.org/bugs/?17178)
3c1d9fa
4f77148
* Fri Mar 12 2010 Paul Howarth <paul@city-fan.org> - 0.3.1-17
06225df
- Update initscript to support running the milter as root, which is needed
06225df
  for the -x (expand aliases) option; note that the milter does not run as
06225df
  root by default
06225df
- Add patch for popen unsanitized input vulnerability
ee60255
  (CVE-2010-1132, #572117, #572119, http://savannah.nongnu.org/bugs/?29136)
06225df
- Rebase authuser patch
06225df
- Update patch adding auth info to dummy Received-header so that it doesn't
06225df
  generate spurious warnings about missing macros (#532266), and update and
06225df
  merge the macro documentation patch into this patch
06225df
- Document patch usage in spec file
06225df
4f77148
* Tue Aug 11 2009 Paul Howarth <paul@city-fan.org> - 0.3.1-16
146c739
- Switch to bzipped source tarball
146c739
4f77148
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-15
e4661e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e4661e5
4f77148
* Fri Apr 24 2009 Paul Howarth <paul@city-fan.org> - 0.3.1-14
a7373e8
- Fix Received-header generation (#496763)
a7373e8
- Add authentication info to dummy Received-header (#496769)
a7373e8
- Add option to skip checks for authenticated senders (#437506, #496767)
a7373e8
  (thanks to Habeeb J. Dihu for the reports and patches)
a7373e8
4f77148
* Wed Mar 18 2009 Paul Howarth <paul@city-fan.org> - 0.3.1-13
9e3201c
- Call initscripts directly instead of via /sbin/service and fine-tune scriptlet
9e3201c
  dependencies
9e3201c
- Change sa-milt user's home directory from
9e3201c
  %%{_localstatedir}/run/spamass-milter to %%{_localstatedir}/lib/spamass-milter
9e3201c
  so as to retain directory contents across a reboot (#489995), and fix the home
9e3201c
  directory of any existing sa-milt account on upgrades
9e3201c
4f77148
* Fri Feb 27 2009 Paul Howarth <paul@city-fan.org> - 0.3.1-12
f9cb412
- Subpackage for postfix is now noarch for Fedora 10 onwards
f9cb412
- Fix scriptlet deps to ensure that sa-milt user exists before we attempt to
f9cb412
  add it to the postfix group
f9cb412
4f77148
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-11
ba051c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ba051c6
4f77148
* Fri Feb 13 2009 Paul Howarth <paul@city-fan.org> - 0.3.1-10
397eecd
- Rebuild for shared libmilter in Fedora 11 development
397eecd
4f77148
* Thu Jul  3 2008 Paul Howarth <paul@city-fan.org> - 0.3.1-9
f273b15
- Require /usr/sbin/sendmail (for -b/-B/-x options) rather than sendmail pkg
f273b15
- Make summary and description less Sendmail-specific
f273b15
- Add patch to support group-writable socket for MTA communication, needed
f273b15
  to be able to use a Unix-domain socket with Postfix (#452248)
f273b15
- Add subpackage with group-writable directory for Postfix support
f273b15
- Tweak initscript to change default options when Postfix socket directory is
f273b15
  present
f273b15
- Document additional ENVRCPT macros to provide
f273b15
4f77148
* Tue May 20 2008 Paul Howarth <paul@city-fan.org> - 0.3.1-8
241305f
- Fix initscript failure to start with SELinux in enforcing mode (#447247)
241305f
  (needs selinux-policy >= 3.3.1-55 on F9)
241305f
4f77148
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.1-7
87fa420
- Autorebuild for GCC 4.3
87fa420
4f77148
* Mon Feb 18 2008 Paul Howarth <paul@city-fan.org> - 0.3.1-6
86114a6
- Rebuild with gcc 4.3.0 for Fedora 9
86114a6
4f77148
* Fri Oct 12 2007 Paul Howarth <paul@city-fan.org> - 0.3.1-5
621b919
- Split initscript and config out from being here documents in the spec and
621b919
  have them as separate source files instead
621b919
- Unexpand tabs
621b919
- Clarify license as GPL v2 or later (GPLv2+)
621b919
- Use the standard scriptlet for user/group creation in %%pre
621b919
4f77148
* Wed Aug 30 2006 Paul Howarth <paul@city-fan.org> - 0.3.1-4
172dadf
- Use make/DESTDIR instead of deprecated %%makeinstall macro
172dadf
- Expand tabs and clean up changelog entries
172dadf
4f77148
* Mon May 15 2006 Paul Howarth <paul@city-fan.org> - 0.3.1-3
c6a7699
- Use upstream default settings (#191602)
c6a7699
  This change re-enables by default Subject/Content-Type header modification
c6a7699
  (which may have a performance impact for large messages) and disables by
c6a7699
  default the rejection of emails with a spam score of 15 or more. To re-enable
c6a7699
  these options, uncomment the line:
c6a7699
  EXTRA_FLAGS="-m -r 15"
172dadf
  in %%{_sysconfdir}/sysconfig/spamass-milter
c6a7699
  
4f77148
* Sun May  7 2006 Paul Howarth <paul@city-fan.org> - 0.3.1-2
4d2f8e6
- Fix race condition in "stop" clause of initscript (#190894)
4d2f8e6
4f77148
* Thu Apr  6 2006 Paul Howarth <paul@city-fan.org> - 0.3.1-1
6b5eb15
- Update to 0.3.1
6b5eb15
4f77148
* Wed Feb 15 2006 Paul Howarth <paul@city-fan.org> - 0.3.0-9
6da5fea
- Don't use macros in command paths, hardcode them instead
6da5fea
4f77148
* Mon Aug  1 2005 Paul Howarth <paul@city-fan.org> - 0.3.0-8
621b919
- Run the milter in a wrapper script that restarts it if it crashes
f893c6e
4f77148
* Thu Jun 16 2005 Paul Howarth <paul@city-fan.org> - 0.3.0-7
5396d2b
- Bump and rebuild due to transient build system failure
5396d2b
4f77148
* Wed Jun 15 2005 Paul Howarth <paul@city-fan.org> - 0.3.0-6
3ee53b0
- Adjust initscript chkconfig values so it starts before sendmail
3ee53b0
4f77148
* Mon Jun 13 2005 Paul Howarth <paul@city-fan.org> - 0.3.0-5
2116af9
- Help the configure script find sendmail
2116af9
4f77148
* Mon Jun 13 2005 Paul Howarth <paul@city-fan.org> - 0.3.0-4
2116af9
- Bump and rebuild
2116af9
4f77148
* Mon Jun 06 2005 Paul Howarth <paul@city-fan.org> - 0.3.0-3
8372c2c
- Use Extras standard buildroot
8372c2c
- Unpack tarball quietly
8372c2c
- Create account sa-milt and run the milter using that instead of root
8372c2c
- Fix socket name in README
8372c2c
- Initscript not %%config
8372c2c
4f77148
* Sun Jun 05 2005 Warren Togami <wtogami@redhat.com> - 0.3.0-2
8372c2c
- Extras
8372c2c
4f77148
* Tue Feb 08 2005 Dag Wieers <dag@wieers.com> - 0.3.0-1
4f77148
- Updated to release 0.3.0
8372c2c
4f77148
* Wed Sep 01 2004 Dag Wieers <dag@wieers.com> - 0.2.0-1
4f77148
- Fixed variables in sysconfig file (mator)
8372c2c
4f77148
* Tue Feb 17 2004 Dag Wieers <dag@wieers.com> - 0.2.0-0
4f77148
- Initial package (using DAR)