Name: qpsmtpd Version: 0.32 Release: 13%{?dist} Summary: qpsmtpd License: distributable Group: System Environment/Daemons URL: http://smtpd.develooper.com/ BuildRoot: %{_tmppath}/%{name}-root BuildRequires: perl >= 0:5.00503 BuildArchitectures: noarch Source0: qpsmtpd-%{version}.tar.gz Source1: qpsmtpd-forkserver.rc Source2: qpsmtpd-forkserver.sysconfig Source100: http://nowhere.dk/~alj/qpsmtpd/smtp-forward-new Patch1: qpsmtpd-0.31-config.patch Patch5: qpsmtpd-0.29-smtp-loginfo.patch Patch6: qpsmtpd-0.29-no_brackets.patch Patch100: qpsmtpd-0.32-check_badrcptto.patch Patch101: qpsmtpd-0.32-DENYSOFTIfNoClamdPing.patch Patch102: qpsmtpd-0.31-rhsbl.patch Patch103: qpsmtpd-0.31-badhelo_DISCONNECT.patch Patch104: qpsmtpd-0.31-no_response_munging.patch Patch105: qpsmtpd-0.31-smtp_forward_response.patch Patch106: qpsmtpd-0.31-auth_validation.patch Patch107: qpsmtpd-0.31-auth_validation.patch2 Patch108: qpsmtpd-0.32-peerhooks.patch #Patch109: qpsmtpd-0.32-net_dns.patch Patch110: qpsmtpd-0.32-net_dns.patch2 Patch111: qpsmtpd-0.32-clamheader.patch Patch112: qpsmtpd-0.32-denysoft.patch %description qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core SMTP features, all functionality is implemented in small "extension plugins" using the easy to use object oriented plugin API. qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but now it also includes a smtp forward and a postfix "backend". %package apache Summary: mod_perl-2 connection handler for qpsmtpd Group: System Environment/Daemons %description apache This module implements a mod_perl/apache 2.0 connection handler that turns Apache into an SMTP server using Qpsmtpd. %prep %setup -q -n qpsmtpd-%{version} %patch1 -p0 -b .config %patch5 -p0 -b .smtp-loginfo %patch6 -p0 -b .no_brackets %patch100 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p1 cp %{SOURCE100} plugins/queue/smtp-forward %patch104 -p1 %patch105 -p1 #%patch106 -p1 %patch107 -p1 %patch108 -p1 #%patch109 -p1 %patch110 -p1 %patch111 -p1 %patch112 -p1 %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL make %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib if grep -q DESTDIR Makefile then make DESTDIR=$RPM_BUILD_ROOT find blib/lib -name '*.pm.*' -exec rm -f {} \; make DESTDIR=$RPM_BUILD_ROOT install else make PREFIX=$RPM_BUILD_ROOT/usr find blib/lib -name '*.pm.*' -exec rm -f {} \; make PREFIX=$RPM_BUILD_ROOT/usr install fi mkdir -p $RPM_BUILD_ROOT/usr/share/qpsmtpd cp -r plugins $RPM_BUILD_ROOT/usr/share/qpsmtpd/plugins mkdir -p $RPM_BUILD_ROOT/etc cp -r config.sample $RPM_BUILD_ROOT/etc/qpsmtpd echo /usr/share/qpsmtpd/plugins > $RPM_BUILD_ROOT/etc/qpsmtpd/plugin_dir mkdir -p $RPM_BUILD_ROOT/etc/init.d/ cp %{_sourcedir}/qpsmtpd-forkserver.rc $RPM_BUILD_ROOT/etc/init.d/qpsmtpd-forkserver mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/ cp %{_sourcedir}/qpsmtpd-forkserver.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/qpsmtpd-forkserver [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT/usr \( -name perllocal.pod -o -name .packlist \) -exec rm {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v /Apache > qpsmtpd-%{version}-filelist if [ "$(cat qpsmtpd-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi find $RPM_BUILD_ROOT/usr -type f -path '*/Apache*' -print | \ sed "s@^$RPM_BUILD_ROOT@@g" > qpsmtpd-apache-%{version}-filelist %files -f qpsmtpd-%{version}-filelist %defattr(-,root,root) %doc CREDITS Changes LICENSE README README.plugins STATUS /etc/init.d/qpsmtpd-forkserver %config /etc/qpsmtpd %config /etc/sysconfig/qpsmtpd-forkserver %files apache -f qpsmtpd-apache-%{version}-filelist %defattr(-,root,root) %changelog * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Mon Apr 09 2007 Shad L. Lords 0.32-13 - Backport clamav denysoft patch from 0.33-4 [SME: 176] * Wed Mar 07 2007 Shad L. Lords 0.32-12 - Add X-Virus-Checked header for clamav scanner [SME: 2498] * Fri Feb 16 2007 Charlie Brady 0.32-11 - Workaround (take II) for (lack of) randomisation bug in Net::DNS. [SME: 2466] * Wed Feb 14 2007 Shad L. Lords 0.32-10 - change Package to package in patch [SME: 2466] * Wed Feb 14 2007 Shad L. Lords 0.32-9 - Update requires so package will install after last change [SME: 2466] * Tue Feb 13 2007 Charlie Brady 0.32-8 - Add workaround for (lack of) randomisation bug in Net::DNS. [SME: 2466] * Tue Jan 23 2007 Shad L. Lords 0.32-7 - Undo munge fix. Fixes dkim but break separator. * Tue Jan 23 2007 Shad L. Lords 0.32-6 - Fix spamassassin plugin so it doesn't munge message * Thu Jan 11 2007 Shad L. Lords 0.32-5 - Fix last patch to not produce warnings on start of connection. * Thu Jan 11 2007 Shad L. Lords 0.32-4 - Add hooks so peers plugin works correctly [SME: 2091] * Thu Dec 28 2006 Shad L. Lords 0.32-3 - Fix patch to remove check_badrcptto.orig file [SME: 2080] * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Mon Aug 28 2006 Charlie Brady 0.32-1sme01 - Update to 0.32 base distribution. [SME: 1102] * Fri Aug 18 2006 Gordon Rowell 0.31.1-1sme09 - Revert last change as we don't need to use the smtp-forward plugin [SME: 710] * Fri Aug 18 2006 Gordon Rowell 0.31.1-1sme08 - Make smtp-forward plugin DECLINE if the connection is originated by a relayclient. This avoids looping the mail back to the internal mail server where the mail server is acting as both an inbound and outbound mail gateway. This plugin should be followed by a call to the standard queue plugin to ensure that mail is queued in this case. [SME: 710] * Mon Mar 27 2006 Charlie Brady 0.31.1-1sme07 - Fix cvm auth validation. [SME: 1138] * Sun Mar 26 2006 Charlie Brady 0.31.1-1sme06 - Apply more stringent validation to authentication attempts. [SME: 1138] * Thu Mar 2 2006 Charlie Brady 0.31.1-1sme05 - Deal more correctly with post data SMTP responses in smtp-forward plugin. [SME: 929] * Sun Feb 12 2006 Charlie Brady 0.31.1-1sme04 - Apply bugfix to updated smtp-forward plugin. [SME: 710] * Sun Feb 12 2006 Charlie Brady 0.31.1-1sme03 - Use updated smtp-forward plugin. [SME: 710] * Sun Feb 5 2006 Charlie Brady 0.31.1-1sme02 - Disconnect in check_spamhelo plugin. [SME: 658] * Thu Feb 2 2006 Charlie Brady 0.31.1-1sme01 - Upgrade to 0.31.1 tarball. Remove obsolete pre-connection patch. [SME: 643] * Tue Jan 31 2006 Shad L. Lords 0.31-7sme03 - Fix to allow TXT records for rhsbl lookups [perl #38347] [SME: 596] * Tue Jan 31 2006 Gordon Rowell 0.31-7sme02 - Return a 4xx error code if clamd required, but not responding [SME: 176] * Fri Nov 4 2005 Gordon Rowell 0.31-7sme01 - Don't apply check_badrcptto to relay clients [SF: 1333999] * Sat Aug 20 2005 0.31-7 - RC2 from upstream. - Removed patches which aren't applied from spec file. * Fri Jul 22 2005 0.31-6 - New upstream snapshot from 0.31 branch: svn revision 509. * Sun Jul 17 2005 0.31-5 - include only /etc/init.d/qpsmtpd-forkserver, not /etc/init.d it conflicts with old initscripts packages. * Sun Jul 17 2005 0.31-4 - removed tabs from forkserver * Sun Jul 17 2005 0.31-3 - added startup script for forkserver - changed BuildArchitectures to noarch. * Sat Jul 16 2005 0.31-2 - pre-connection hook is now actually called, not just defined. * Fri Jul 15 2005 0.31-1 - merged with 0.31. Most of my patches are now in the official release. - merged Gavin's per-user-config patch with my dirs patch, since the latter needs a way to turn off logging. - added /etc/qpsmtpd/plugin_dir to package. * Mon Jun 13 2005 0.29-6 - fixed removal of patch backup files - fixed option --pid-file * Sun Jun 12 2005 - avoid installing patch backup files - split Apache::Qpsmtpd into separate package to avoid dependency hell. - fixed URL - changed group to Daemons. - Fixed installation for newer versions of ExtUtils::MakeMaker * Wed Jun 1 2005 0.29-5 - Really don't reap children in signal handler. * Tue May 31 2005 0.29-4 - Return 421 for DENYSOFT_DISCONNECT - Don't reap children in signal handler. * Thu May 19 2005 0.29-3 - removed code to accept paths without <>. * Thu May 19 2005 0.29-2 - added QPSMTPD_CONFIG env variable and plugin_dir config. - added supplemental groups and support for pid file - added shared_connect hook - changed log level for SMTP dialog from DEBUG to INFO * Thu Apr 21 2005 hjp@hjp.at - added plugins, /etc and docs. * Mon Apr 18 2005 hjp@hjp.at - Specfile autogenerated