1 |
# $Id: qpsmtpd.spec,v 1.13 2015/05/15 14:00:44 vip-ire Exp $ |
# $Id: qpsmtpd.spec,v 1.22 2016/05/06 19:58:08 vip-ire Exp $ |
2 |
|
|
3 |
Name: qpsmtpd |
Name: qpsmtpd |
4 |
Version: 0.84 |
Version: 0.96 |
5 |
Release: 14%{?dist} |
Release: 2%{?dist} |
6 |
Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async |
Summary: qpsmtpd + qpsmtpd-apache |
7 |
License: MIT |
License: MIT |
8 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
9 |
URL: http://smtpd.develooper.com/ |
URL: http://smtpd.develooper.com/ |
12 |
BuildRequires: perl(ExtUtils::MakeMaker) |
BuildRequires: perl(ExtUtils::MakeMaker) |
13 |
BuildArch: noarch |
BuildArch: noarch |
14 |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
|
Requires: perl(IO::Socket::SSL) >= 1.70 |
|
15 |
Requires(pre): coreutils, shadow-utils, perl |
Requires(pre): coreutils, shadow-utils, perl |
16 |
|
|
17 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
18 |
Source1: qpsmtpd-forkserver.rc |
Source1: qpsmtpd-forkserver.rc |
19 |
Source2: qpsmtpd-forkserver.sysconfig |
Source2: qpsmtpd-forkserver.sysconfig |
20 |
Source3: qpsmtpd-plugin-file_connection |
Source3: qpsmtpd-xinetd |
21 |
Source4: qpsmtpd-xinetd |
Source4: in.qpsmtpd |
22 |
Source5: in.qpsmtpd |
Source5: qpsmtpd.conf |
23 |
Source6: qpsmtpd.conf |
Source6: README.selinux |
24 |
Source7: README.selinux |
|
25 |
|
Patch1: qpsmtpd-0.95-spamassassin_size_limit.patch |
26 |
Patch1: 0001-Misc-documentation-updates.patch |
Patch2: qpsmtpd-0.95-qpsmtpd_forserver_keepalive.patch |
27 |
Patch2: 0002-added-ClamAV-version-to-the-X-Virus-Checked-header.patch |
Patch3: qpsmtpd-0.95-notls_conf.patch |
28 |
Patch3: 0003-new-plugin-check_bogus_bounce.patch |
Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch |
29 |
Patch4: 0004-microoptimizations-replace-regex-with-lc-eq.patch |
Patch5: qpsmtpd-0.96-set_hooks.patch |
30 |
Patch5: 0005-remove-vestiges-of-a-bygone-RCS.patch |
Patch6: qpsmtpd-0.96-warn_implicit_split.patch |
31 |
Patch6: 0006-added-definedness-test-to-local_port-as-it-was-emitt.patch |
Patch7: qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch |
32 |
Patch7: 0007-Add-guidelines-for-commit-messages.patch |
Patch8: qpsmtpd-0.96-uribl_data_post.patch |
33 |
Patch8: 0008-added-auth_checkpassword-plugin.patch |
Patch9: qpsmtpd-0.96-karma_strikes.patch |
34 |
Patch9: 0009-updates-to-auth_vpopmail_sql-module.patch |
Patch10: qpsmtpd-0.96-karma_tlds_conf.patch |
35 |
Patch10: 0010-new-plugin-auth_vpopmaild.patch |
Patch11: qpsmtpd-0.96-more_badrcptto.patch |
36 |
Patch11: 0011-start-working-on-Changes-file-for-0.84-next.patch |
Patch12: qpsmtpd-0.96-store_original_plugin_name.patch |
37 |
Patch12: 0012-fix-copy-paste-error-in-auth_flat_file.patch |
Patch13: qpsmtpd-0.96-dkim_no_sign_for_others_on_symlinks.patch |
38 |
Patch13: 0013-added-auth_vpopmail-plugin.patch |
Patch14: qpsmtpd-0.96-fix_dmarc_reject.patch |
39 |
Patch14: 0014-rewrote-sender_permitted_from.patch |
Patch15: qpsmtpd-0.96-add_dmarc_result_notes.patch |
40 |
Patch15: 0015-add-TCPLOCAL-variables-to-qp-connection.patch |
Patch16: qpsmtpd-0.96-spf_on_no_dmarc_policy.patch |
41 |
Patch16: 0016-added-local_ip-option-to-p0f-plugin.patch |
Patch17: qpsmtpd-0.96-find_karma_db_dir.patch |
|
Patch17: 0017-added-p0f-support-to-greylist-plugin.patch |
|
|
Patch18: 0018-packaging-updates.patch |
|
|
Patch19: 0019-Check-for-the-exact-string-resonses-from-vpopmaild-r.patch |
|
|
Patch20: 0020-new-plugin-check_badmailfrom_patterns.patch |
|
|
Patch21: 0021-ignore-search-path-in-DNS-lookups.patch |
|
|
Patch22: 0022-don-t-create-homedir-in-RPM.patch |
|
|
Patch23: 0023-corrected-email-address.patch |
|
|
Patch24: 0024-increased-default-TLS-security-setting.patch |
|
|
Patch25: 0025-give-badrcptto-a-reasonable-name.patch |
|
|
Patch26: 0026-add-test-name-to-test-output.patch |
|
|
Patch27: 0027-renamed-test-from-foo-to-rcpt_ok.patch |
|
|
Patch28: 0028-Shorten-clarify-Connection-and-Transaction-notes.patch |
|
|
Patch29: 0029-Run-hook_reset_transaction-after-all-connections.patch |
|
|
Patch30: 0030-Add-support-for-multiple-postfix-cleanup-sockets.patch |
|
|
Patch31: 0031-Adds-the-ability-to-have-multiple-instances-each-wit.patch |
|
|
Patch32: 0032-I-forgot-to-sync-the-code-that-calls-the-original-co.patch |
|
|
Patch33: 0033-new-plugin-rcpt_map.patch |
|
|
Patch34: 0034-plugins-rcpt_map-cleanup.patch |
|
|
Patch35: 0035-Fix-for-plugins-returning-DONE-from-HELO-EHLO.patch |
|
|
Patch36: 0036-prefork-use-new-instance-instead-of-cloning.patch |
|
|
Patch37: 0037-Revert-Spool-body-when-transaction-body_fh-is-called.patch |
|
|
Patch38: 0038-Patch-FATAL-PLUGIN-ERROR-check_basicheaders.patch |
|
|
Patch39: 0039-qpsmtpd-0.84-spamassassin_size_limit.patch |
|
|
Patch40: 0040-qpsmtpd-forkserver_fix_Net_DNS_update_breaks_qpsmtpd.patch |
|
|
|
|
|
Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch |
|
|
Patch101: qpsmtpd-0.83-peer_hooks.patch |
|
|
Patch102: qpsmtpd-0.83-loginit.patch |
|
|
Patch103: qpsmtpd-forkserver-keepalive.patch |
|
|
Patch104: qpsmtpd-0.84-accept-empty-email.patch |
|
|
Patch105: qpsmtpd-0.84-fix_eq_operator.patch |
|
|
Patch106: qpsmtpd-0.84-remove_denysoft_on_spf_softfail.patch |
|
|
Patch107: qpsmtpd-0.84-notls_conf.patch |
|
|
Patch108: qpsmtpd-0.84-disable_sslv3.patch |
|
42 |
|
|
43 |
%description |
%description |
44 |
qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core |
qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core |
53 |
Summary: mod_perl-2 connection handler for qpsmtpd |
Summary: mod_perl-2 connection handler for qpsmtpd |
54 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
55 |
|
|
|
%package async |
|
|
Summary: qpsmtpd using async I/O in a single process |
|
|
Group: System Environment/Daemons |
|
|
|
|
56 |
%description apache |
%description apache |
57 |
|
|
58 |
This module implements a mod_perl/apache 2.0 connection handler |
This module implements a mod_perl/apache 2.0 connection handler |
59 |
that turns Apache into an SMTP server using Qpsmtpd. |
that turns Apache into an SMTP server using Qpsmtpd. |
60 |
|
|
|
%description async |
|
|
This package contains the Qpsmtpd::PollServer module, which allows |
|
|
qpsmtd to handle many connections in a single process and the |
|
|
qpsmpd-async which uses it. |
|
61 |
|
|
62 |
%prep |
%prep |
63 |
%setup -q |
%setup -q |
78 |
%patch15 -p1 |
%patch15 -p1 |
79 |
%patch16 -p1 |
%patch16 -p1 |
80 |
%patch17 -p1 |
%patch17 -p1 |
|
%patch18 -p1 |
|
|
%patch19 -p1 |
|
|
%patch20 -p1 |
|
|
%patch21 -p1 |
|
|
#%patch22 -p1 |
|
|
%patch23 -p1 |
|
|
%patch24 -p1 |
|
|
%patch25 -p1 |
|
|
%patch26 -p1 |
|
|
%patch27 -p1 |
|
|
%patch28 -p1 |
|
|
%patch29 -p1 |
|
|
%patch30 -p1 |
|
|
%patch31 -p1 |
|
|
%patch32 -p1 |
|
|
%patch33 -p1 |
|
|
%patch34 -p1 |
|
|
%patch35 -p1 |
|
|
%patch36 -p1 |
|
|
%patch37 -p1 |
|
|
%patch38 -p1 |
|
|
%patch39 -p1 |
|
|
%patch40 -p1 |
|
|
|
|
|
%patch100 -p1 |
|
|
%patch101 -p1 |
|
|
%patch102 -p1 |
|
|
%patch103 -p0 |
|
|
%patch104 -p1 |
|
|
%patch105 -p1 |
|
|
%patch106 -p1 |
|
|
%patch107 -p1 |
|
|
%patch108 -p1 |
|
81 |
|
|
82 |
%build |
%build |
83 |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
104 |
cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver |
cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver |
105 |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig |
106 |
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver |
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver |
|
cp %{SOURCE3} %{buildroot}%{_datadir}/%{name}/plugins/logging/file_connection |
|
107 |
mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd |
mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd |
108 |
mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd |
mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd |
109 |
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d |
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d |
110 |
cp %{SOURCE4} %{buildroot}%{_sysconfdir}/xinetd.d/smtp |
cp %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/smtp |
111 |
mkdir -p %{buildroot}%{_sbindir} |
mkdir -p %{buildroot}%{_sbindir} |
112 |
cp %{SOURCE5} %{buildroot}%{_sbindir}/in.smtp |
cp %{SOURCE4} %{buildroot}%{_sbindir}/in.smtp |
113 |
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d |
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d |
114 |
cp %{SOURCE6} %{buildroot}%{_sysconfdir}/httpd/conf.d |
cp %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d |
115 |
mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version} |
mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version} |
116 |
cp %{SOURCE7} %{buildroot}%{_docdir}/%{name}-apache-%{version} |
cp %{SOURCE6} %{buildroot}%{_docdir}/%{name}-apache-%{version} |
117 |
|
|
118 |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
119 |
|
|
125 |
grep -v README.selinux | \ |
grep -v README.selinux | \ |
126 |
grep -v /Apache | \ |
grep -v /Apache | \ |
127 |
grep -v /Danga | \ |
grep -v /Danga | \ |
|
grep -v Qpsmtpd/ConfigServer.pm | \ |
|
128 |
grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist |
grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist |
129 |
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then |
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then |
130 |
echo "ERROR: EMPTY FILE LIST" |
echo "ERROR: EMPTY FILE LIST" |
133 |
|
|
134 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
135 |
%defattr(-,root,root) |
%defattr(-,root,root) |
136 |
%doc CREDITS Changes LICENSE README README.plugins STATUS |
%doc CREDITS Changes LICENSE README.md README.plugins.md STATUS |
137 |
%{_initrddir}/qpsmtpd-forkserver |
%{_initrddir}/qpsmtpd-forkserver |
138 |
%config(noreplace) %{_sysconfdir}/qpsmtpd/* |
%config(noreplace) %{_sysconfdir}/qpsmtpd/* |
139 |
%config(noreplace) %{_sysconfdir}/xinetd.d/smtp |
%config(noreplace) %{_sysconfdir}/xinetd.d/smtp |
146 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/* |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/* |
147 |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
148 |
|
|
|
%files async |
|
|
%defattr(-,root,root) |
|
|
%{_bindir}/qpsmtpd-async |
|
|
%{_prefix}/share/perl5/vendor_perl/Danga/Client.pm |
|
|
%{_prefix}/share/perl5/vendor_perl/Danga/TimeoutSocket.pm |
|
|
%{_prefix}/share/perl5/vendor_perl/Qpsmtpd/ConfigServer.pm |
|
|
%{_prefix}/share/perl5/vendor_perl/Qpsmtpd/Plugin/Async/DNSBLBase.pm |
|
|
%{_prefix}/share/perl5/vendor_perl/Qpsmtpd/PollServer.pm |
|
|
%{_mandir}/man1/qpsmtpd-async.1.gz |
|
|
%{_datadir}/%{name}/plugins/async/* |
|
|
|
|
149 |
%pre |
%pre |
150 |
|
if ! id smtpd >/dev/null 2>&1 |
151 |
|
then |
152 |
|
# need to create smtpd user. |
153 |
|
if perl -e 'exit ! defined(getgrnam("postdrop"))' |
154 |
|
then |
155 |
|
# if postfix is installed, we will probably use |
156 |
|
# queue/postfix, which will need this: |
157 |
|
supp="-G postdrop" |
158 |
|
fi |
159 |
|
useradd -r -M -s /bin/false $supp smtpd |
160 |
|
fi |
161 |
|
|
162 |
%changelog |
%changelog |
163 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme |
164 |
|
- Backport a fix for karma_tool so it can find its database [SME: 9502] |
165 |
|
|
166 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme |
167 |
|
- Update to 0.96 (with some backports from GIT head) [SME: 8861] |
168 |
|
|
169 |
|
* Thu Jan 7 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-18.sme |
170 |
|
- Allow reading SSL_version from the tls_protocols config file (and turn |
171 |
|
TLSv1 back on by default) [SME: 9162] |
172 |
|
|
173 |
|
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-17.sme |
174 |
|
- Correctly log login attempts with nulls in login name [SME: 9167] |
175 |
|
|
176 |
|
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-16.sme |
177 |
|
- Disable TLSv1 [SME: 9162] |
178 |
|
|
179 |
|
* Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-15.sme |
180 |
|
- Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747] |
181 |
|
- by John Crisp <jcrisp@safeandsoundit.co.uk> |
182 |
|
- Added qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch |
183 |
|
|
184 |
|
* Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-14.sme |
185 |
|
- Disable SSLv3 [SME: 8926] |
186 |
|
|
187 |
* Fri May 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-13.sme |
* Fri May 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-13.sme |
188 |
- New notls conf to set hosts you dont want to advertize STARTTLS to [SME: 8863] |
- New notls conf to set hosts you dont want to advertize STARTTLS to [SME: 8863] |
189 |
|
|