1 |
# $Id: qpsmtpd.spec,v 1.2 2016/02/09 21:17:36 stephdl Exp $ |
# $Id: qpsmtpd.spec,v 1.27 2017/03/08 17:13:43 unnilennium Exp $ |
2 |
|
|
3 |
Name: qpsmtpd |
Name: qpsmtpd |
4 |
Version: 0.84 |
Version: 0.96 |
5 |
Release: 20%{?dist} |
Release: 19%{?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/ |
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) |
15 |
Requires: perl(IO::Socket::SSL) >= 1.70 |
Requires: perl(IO::Socket::SSL) >= 1.70 |
16 |
|
Requires: perl(Data::Validate::Domain) |
17 |
Requires(pre): coreutils, shadow-utils, perl |
Requires(pre): coreutils, shadow-utils, perl |
18 |
|
|
19 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
20 |
Source1: qpsmtpd-forkserver.rc |
Source1: qpsmtpd-forkserver.rc |
21 |
Source2: qpsmtpd-forkserver.sysconfig |
Source2: qpsmtpd-forkserver.sysconfig |
22 |
Source3: qpsmtpd-plugin-file_connection |
Source3: qpsmtpd-xinetd |
23 |
Source4: qpsmtpd-xinetd |
Source4: in.qpsmtpd |
24 |
Source5: in.qpsmtpd |
Source5: qpsmtpd.conf |
25 |
Source6: qpsmtpd.conf |
Source6: README.selinux |
26 |
Source7: README.selinux |
|
27 |
|
Patch1: qpsmtpd-0.95-spamassassin_size_limit.patch |
28 |
Patch1: 0001-Misc-documentation-updates.patch |
Patch2: qpsmtpd-0.95-qpsmtpd_forserver_keepalive.patch |
29 |
Patch2: 0002-added-ClamAV-version-to-the-X-Virus-Checked-header.patch |
Patch3: qpsmtpd-0.95-notls_conf.patch |
30 |
Patch3: 0003-new-plugin-check_bogus_bounce.patch |
Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch |
31 |
Patch4: 0004-microoptimizations-replace-regex-with-lc-eq.patch |
Patch5: qpsmtpd-0.96-set_hooks.patch |
32 |
Patch5: 0005-remove-vestiges-of-a-bygone-RCS.patch |
Patch6: qpsmtpd-0.96-warn_implicit_split.patch |
33 |
Patch6: 0006-added-definedness-test-to-local_port-as-it-was-emitt.patch |
Patch7: qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch |
34 |
Patch7: 0007-Add-guidelines-for-commit-messages.patch |
Patch8: qpsmtpd-0.96-uribl_data_post.patch |
35 |
Patch8: 0008-added-auth_checkpassword-plugin.patch |
Patch9: qpsmtpd-0.96-karma_strikes.patch |
36 |
Patch9: 0009-updates-to-auth_vpopmail_sql-module.patch |
Patch10: qpsmtpd-0.96-more_badrcptto.patch |
37 |
Patch10: 0010-new-plugin-auth_vpopmaild.patch |
Patch11: qpsmtpd-0.96-karma_tlds_conf.patch |
38 |
Patch11: 0011-start-working-on-Changes-file-for-0.84-next.patch |
Patch12: qpsmtpd-0.96-store_original_plugin_name.patch |
39 |
Patch12: 0012-fix-copy-paste-error-in-auth_flat_file.patch |
Patch13: qpsmtpd-0.96-fix_karma_tool_dir_path.patch |
40 |
Patch13: 0013-added-auth_vpopmail-plugin.patch |
Patch14: qpsmtpd-0.96-dkim_no_sign_for_others_on_symlinks.patch |
41 |
Patch14: 0014-rewrote-sender_permitted_from.patch |
Patch15: qpsmtpd-0.96-fix_dmarc_reject.patch |
42 |
Patch15: 0015-add-TCPLOCAL-variables-to-qp-connection.patch |
Patch16: qpsmtpd-0.96-add_dmarc_result_notes.patch |
43 |
Patch16: 0016-added-local_ip-option-to-p0f-plugin.patch |
Patch17: qpsmtpd-0.96-spf_on_no_dmarc_policy.patch |
44 |
Patch17: 0017-added-p0f-support-to-greylist-plugin.patch |
Patch18: qpsmtpd-0.96-check_negative_karma_strikes.patch |
45 |
Patch18: 0018-packaging-updates.patch |
Patch19: qpsmtpd-0.96-addr_defined_before_use.patch |
46 |
Patch19: 0019-Check-for-the-exact-string-resonses-from-vpopmaild-r.patch |
Patch20: qpsmtpd-0.96-check_rua_is_defined.patch |
47 |
Patch20: 0020-new-plugin-check_badmailfrom_patterns.patch |
Patch21: qpsmtpd-0.96-remove_karma_rcpt_handler.patch |
48 |
Patch21: 0021-ignore-search-path-in-DNS-lookups.patch |
Patch22: qpsmtpd-0.96-eval_dkim_policies.patch |
49 |
Patch22: 0022-don-t-create-homedir-in-RPM.patch |
Patch23: qpsmtpd-0.96-uribl_validate_domains.patch |
50 |
Patch23: 0023-corrected-email-address.patch |
Patch24: qpsmtpd-0.96-bz10112-whitelist.patch |
51 |
Patch24: 0024-increased-default-TLS-security-setting.patch |
Patch25: qpsmtpd-0.96-SME10139-Message-Id.patch |
52 |
Patch25: 0025-give-badrcptto-a-reasonable-name.patch |
Patch26: qpsmtpd-0.96-bz10290-spamassassin-fetchmail.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 |
|
|
Patch109: qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch |
|
|
Patch110: qpsmtpd-0.84-disable_tlsv1.patch |
|
|
Patch111: qpsmtpd-0.84-deny_login_with_null.patch |
|
|
Patch112: qpsmtpd-0.84-allow_tls_proto_from_config.patch |
|
|
Patch113: qpsmtpd-0.84-Socket6.patch |
|
53 |
|
|
54 |
%description |
%description |
55 |
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 |
64 |
Summary: mod_perl-2 connection handler for qpsmtpd |
Summary: mod_perl-2 connection handler for qpsmtpd |
65 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
66 |
|
|
|
%package async |
|
|
Summary: qpsmtpd using async I/O in a single process |
|
|
Group: System Environment/Daemons |
|
|
|
|
67 |
%description apache |
%description apache |
68 |
|
|
69 |
This module implements a mod_perl/apache 2.0 connection handler |
This module implements a mod_perl/apache 2.0 connection handler |
70 |
that turns Apache into an SMTP server using Qpsmtpd. |
that turns Apache into an SMTP server using Qpsmtpd. |
71 |
|
|
|
%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. |
|
72 |
|
|
73 |
%prep |
%prep |
74 |
%setup -q |
%setup -q |
93 |
%patch19 -p1 |
%patch19 -p1 |
94 |
%patch20 -p1 |
%patch20 -p1 |
95 |
%patch21 -p1 |
%patch21 -p1 |
96 |
#%patch22 -p1 |
%patch22 -p1 |
97 |
%patch23 -p1 |
%patch23 -p1 |
98 |
%patch24 -p1 |
%patch24 -p1 |
99 |
%patch25 -p1 |
%patch25 -p1 |
100 |
%patch26 -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 |
|
|
%patch109 -p1 |
|
|
%patch110 -p1 |
|
|
%patch111 -p1 |
|
|
%patch112 -p1 |
|
|
%patch113 -p1 |
|
101 |
|
|
102 |
%build |
%build |
103 |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
124 |
cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver |
cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver |
125 |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig |
126 |
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver |
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver |
|
cp %{SOURCE3} %{buildroot}%{_datadir}/%{name}/plugins/logging/file_connection |
|
127 |
mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd |
mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd |
128 |
mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd |
mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd |
129 |
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d |
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d |
130 |
cp %{SOURCE4} %{buildroot}%{_sysconfdir}/xinetd.d/smtp |
cp %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/smtp |
131 |
mkdir -p %{buildroot}%{_sbindir} |
mkdir -p %{buildroot}%{_sbindir} |
132 |
cp %{SOURCE5} %{buildroot}%{_sbindir}/in.smtp |
cp %{SOURCE4} %{buildroot}%{_sbindir}/in.smtp |
133 |
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d |
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d |
134 |
cp %{SOURCE6} %{buildroot}%{_sysconfdir}/httpd/conf.d |
cp %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d |
135 |
mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version} |
mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version} |
136 |
cp %{SOURCE7} %{buildroot}%{_docdir}/%{name}-apache-%{version} |
cp %{SOURCE6} %{buildroot}%{_docdir}/%{name}-apache-%{version} |
137 |
|
|
138 |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
139 |
|
|
145 |
grep -v README.selinux | \ |
grep -v README.selinux | \ |
146 |
grep -v /Apache | \ |
grep -v /Apache | \ |
147 |
grep -v /Danga | \ |
grep -v /Danga | \ |
|
grep -v Qpsmtpd/ConfigServer.pm | \ |
|
148 |
grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist |
grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist |
149 |
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then |
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then |
150 |
echo "ERROR: EMPTY FILE LIST" |
echo "ERROR: EMPTY FILE LIST" |
153 |
|
|
154 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
155 |
%defattr(-,root,root) |
%defattr(-,root,root) |
156 |
%doc CREDITS Changes LICENSE README README.plugins STATUS |
%doc CREDITS Changes LICENSE README.md README.plugins.md STATUS |
157 |
%{_initrddir}/qpsmtpd-forkserver |
%{_initrddir}/qpsmtpd-forkserver |
158 |
%config(noreplace) %{_sysconfdir}/qpsmtpd/* |
%config(noreplace) %{_sysconfdir}/qpsmtpd/* |
159 |
%config(noreplace) %{_sysconfdir}/xinetd.d/smtp |
%config(noreplace) %{_sysconfdir}/xinetd.d/smtp |
166 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/* |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/* |
167 |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
168 |
|
|
|
%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/* |
|
|
|
|
169 |
%pre |
%pre |
170 |
|
|
171 |
|
|
172 |
%changelog |
%changelog |
173 |
|
* Sun Mar 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.96-19.sme |
174 |
|
- add support to force spamcheck on specific IP for fetchmail [SME: 10290] |
175 |
|
|
176 |
|
* Tue Mar 07 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.96-18.sme |
177 |
|
- Removed Message-Id validation, as it rejects MS account validation email [SME: 10139] |
178 |
|
|
179 |
|
* Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.96-17.sme |
180 |
|
- fix whitelist plugin to support helo with naughty rejecting at mail stage [SME: 10112] |
181 |
|
|
182 |
|
* Mon Jul 11 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-16.sme |
183 |
|
- Validate domains found in uribl with Data::Validate::Domain [SME: 9467] |
184 |
|
|
185 |
|
* Tue Jul 5 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-15.sme |
186 |
|
- Use eval to fetch dkim policies, prevent fatal errors in case of DNS |
187 |
|
timeout [SME: 9480] |
188 |
|
|
189 |
|
* Wed Jun 15 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-14.sme |
190 |
|
- Remove karma rcpt handling (buggy and doesn't make a lot of sense) |
191 |
|
[SME: 9462] |
192 |
|
|
193 |
|
* Sat May 28 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-13.sme |
194 |
|
- Check rua is defined before trying to parse it to prevent an error |
195 |
|
if a domain has a DMARC entry published with no rua [SME: 9206] |
196 |
|
|
197 |
|
* Mon May 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-12.sme |
198 |
|
- Fix error when RCPT TO is not valid [SME: 9460] |
199 |
|
|
200 |
|
* Mon May 9 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-11.sme |
201 |
|
- Fix karma logic by checking negative strikes [SME: 9462] |
202 |
|
|
203 |
|
* Sun May 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-10.sme |
204 |
|
- Remove previous patch, it was already applied [SME: 9462] |
205 |
|
|
206 |
|
* Sun May 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-9.sme |
207 |
|
- Backport a fix for karma_tool so it can find its database [SME: 9462] |
208 |
|
|
209 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-8.sme |
210 |
|
- Support dkim signing with symlinks [SME: 9496] |
211 |
|
- Fix DMARC rejects not working [SME: 9202] |
212 |
|
- Add DMARC results notes so further plugin can check it [SME: 9202] |
213 |
|
- Add possibility to reject solely on SPF result if no DMARC policy is published |
214 |
|
[SME: 9479] |
215 |
|
|
216 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-7.sme |
217 |
|
- Backport some minor patches from git head [SME: 9460] |
218 |
|
|
219 |
|
* Fri Apr 22 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-6.sme |
220 |
|
- badrcptto can now read another file container bad addresses [SME: 9460] |
221 |
|
[SME: 4597] |
222 |
|
|
223 |
|
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme |
224 |
|
- Fix a typo in previous patch [SME: 9462] |
225 |
|
|
226 |
|
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-4.sme |
227 |
|
- Backport the karma strikes param patch [SME: 9462] |
228 |
|
|
229 |
|
* Mon Apr 18 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme |
230 |
|
- hook uribl in data_post so it has access to the body [SME: 9467] |
231 |
|
|
232 |
|
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme |
233 |
|
- Don't log user credentials except when using the higher log level |
234 |
|
[SME: 9466] |
235 |
|
|
236 |
|
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme |
237 |
|
- Update to 0.96 [SME: 9460] |
238 |
|
|
239 |
* Fri Mar 25 2016 Charlie Brady <charlieb@charliebrady.org> 0.84-20.sme |
* Fri Mar 25 2016 Charlie Brady <charlieb@charliebrady.org> 0.84-20.sme |
240 |
- Fix startup warnings due to Socket6 symbol import. [SME: 9386] |
- Fix startup warnings due to Socket6 symbol import. [SME: 9386] |
241 |
|
|