Name: spampd Version: 2.20 Release: 1mdk Summary: Spam Proxy Daemon Source: http://www.wdg.us/Content/rd/mta/%{name}/%{name}-%{version}.tar.bz2 Patch: spampd-2.20-mdk.patch.bz2 URL: http://www.wdg.us/index.cfm/rd/mta/spampd.htm License: GPL Group: Networking/Mail BuildArch: noarch BuildRequires: perl BuildRoot: %_tmppath/%name-%version-buildroot Prereq: rpm-helper %description spampd is an SMTP/LMTP proxy that marks (or tags) spam using SpamAssassin (http://www.SpamAssassin.org/). The proxy is designed to be transparent to the sending and receiving mail servers and at no point takes responsibility for the message itself. If a failure occurs within spampd (or SpamAssassin) then the mail servers will disconnect and the sending server is still responsible for retrying the message for as long as it is configured to do so. %prep %setup -q %patch -p1 chmod 644 * %install rm -rf %buildroot mkdir -p %{buildroot}%{_initrddir} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sysconfdir}/sysconfig mkdir -p %{buildroot}%{_mandir}/man8 install -m 755 spampd %{buildroot}%{_sbindir}/spampd install -m 755 spampd-rh-rc-script %{buildroot}%{_initrddir}/spampd install -m 644 spampd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/spampd pod2man -s 8 -c "" spampd > %{buildroot}%{_mandir}/man8/spampd.8 %clean rm -rf $RPM_BUILD_ROOT %post %_post_service spampd if [ -x /usr/sbin/postconf ] && [ -z `/usr/sbin/postconf -h content_filter` ] && \ grep -qs '^lmtp-filter\>' /etc/postfix/master.cf;then postconf -e content_filter=lmtp-filter:127.0.0.1:10025 postconf -e receive_override_options=no_address_mappings postconf -e lmtp-filter_destination_concurrency_limit=5 fi %preun %_preun_service spampd %files %defattr(-,root,root,755) %doc changelog.txt spampd.html %{_sbindir}/spampd %config(noreplace) %{_initrddir}/spampd %config(noreplace) %{_sysconfdir}/sysconfig/spampd %{_mandir}/man8/spampd.8* %changelog * Fri Oct 15 2004 Luca Berra <bluca@vodka.it> 2.20-1mdk - 2.20 * Sun Feb 01 2004 Luca Berra <bluca@vodka.it> 2.12-2mdk - auto-add to postfix * Sat Jan 17 2004 Luca Berra <bluca@vodka.it> 2.12-1mdk - 2.12 - use tar package * Sun Nov 09 2003 Luca Berra <bluca@vodka.it> 2.11-2mdk - fix description tag - fixed init-script * Sun Oct 05 2003 Luca Berra <bluca@vodka.it> 2.11-1mdk - initial release