/[smeserver]/rpms/qpsmtpd/sme10/qpsmtpd.spec
ViewVC logotype

Contents of /rpms/qpsmtpd/sme10/qpsmtpd.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.14 - (show annotations) (download)
Fri May 6 09:10:35 2016 UTC (8 years, 1 month ago) by vip-ire
Branch: MAIN
Changes since 1.13: +16 -1 lines
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-8.sme
- Support dkim signing with symlinks [SME: 9496]
- Fix DMARC rejects not working [SME: 9202]
- Add DMARC results notes so further plugin can check it [SME: 9202]
- Add possibility to reject solely on SPF result if no DMARC policy is published
  [SME: 9479]

1 # $Id: qpsmtpd.spec,v 1.13 2016/05/06 09:03:09 vip-ire Exp $
2
3 Name: qpsmtpd
4 Version: 0.96
5 Release: 6%{?dist}
6 Summary: qpsmtpd + qpsmtpd-apache
7 License: MIT
8 Group: System Environment/Daemons
9 URL: http://smtpd.develooper.com/
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11 BuildRequires: perl >= 0:5.00503
12 BuildRequires: perl(ExtUtils::MakeMaker)
13 BuildArch: noarch
14 Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP)
15 Requires: perl(IO::Socket::SSL) >= 1.70
16 Requires(pre): coreutils, shadow-utils, perl
17
18 Source0: %{name}-%{version}.tar.gz
19 Source1: qpsmtpd-forkserver.rc
20 Source2: qpsmtpd-forkserver.sysconfig
21 Source3: qpsmtpd-xinetd
22 Source4: in.qpsmtpd
23 Source5: qpsmtpd.conf
24 Source6: README.selinux
25
26 Patch1: qpsmtpd-0.95-spamassassin_size_limit.patch
27 Patch2: qpsmtpd-0.95-qpsmtpd_forserver_keepalive.patch
28 Patch3: qpsmtpd-0.95-notls_conf.patch
29 Patch4: qpsmtpd-0.95-allow_tls_proto_from_conf.patch
30 Patch5: qpsmtpd-0.96-set_hooks.patch
31 Patch6: qpsmtpd-0.96-warn_implicit_split.patch
32 Patch7: qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch
33 Patch8: qpsmtpd-0.96-uribl_data_post.patch
34 Patch9: qpsmtpd-0.96-karma_strikes.patch
35 Patch10: qpsmtpd-0.96-more_badrcptto.patch
36 Patch11: qpsmtpd-0.96-karma_tlds_conf.patch
37 Patch12: qpsmtpd-0.96-store_original_plugin_name.patch
38 Patch13: qpsmtpd-0.96-fix_karma_tool_dir_path.patch
39 Patch14: qpsmtpd-0.96-dkim_no_sign_for_others_on_symlinks.patch
40 Patch15: qpsmtpd-0.96-fix_dmarc_reject.patch
41 Patch16: qpsmtpd-0.96-add_dmarc_result_notes.patch
42 Patch17: qpsmtpd-0.96-spf_on_no_dmarc_policy.patch
43
44 %description
45 qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core
46 SMTP features, all functionality is implemented in small "extension
47 plugins" using the easy to use object oriented plugin API.
48
49 qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but
50 now it also includes a smtp forward and a postfix "backend".
51
52 %package apache
53 Requires: perl(mod_perl2)
54 Summary: mod_perl-2 connection handler for qpsmtpd
55 Group: System Environment/Daemons
56
57 %description apache
58
59 This module implements a mod_perl/apache 2.0 connection handler
60 that turns Apache into an SMTP server using Qpsmtpd.
61
62
63 %prep
64 %setup -q
65 %patch1 -p1
66 %patch2 -p1
67 %patch3 -p1
68 %patch4 -p1
69 %patch5 -p1
70 %patch6 -p1
71 %patch7 -p1
72 %patch8 -p1
73 %patch9 -p1
74 %patch10 -p1
75 %patch11 -p1
76 %patch12 -p1
77 %patch13 -p1
78 %patch14 -p1
79 %patch15 -p1
80 %patch16 -p1
81 %patch17 -p1
82
83 %build
84 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
85 make
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89 %install
90
91 rm -rf $RPM_BUILD_ROOT
92 find blib/lib -name '*.pm.*' -exec rm -f {} \;
93 make pure_install
94
95 mkdir -p %{buildroot}%{_datadir}/%{name}
96 rm -f %{buildroot}%{_datadir}/%{name}/plugins/*.*
97 cp -r plugins %{buildroot}%{_datadir}/%{name}/plugins
98 mkdir -p %{buildroot}%{_sysconfdir}/%{name}
99 rm -f %{buildroot}%{_sysconfdir}/%{name}/*.*
100 cp -r config.sample/* %{buildroot}%{_sysconfdir}/%{name}/
101 echo %{_datadir}/%{name}/plugins > %{buildroot}%{_sysconfdir}/%{name}/plugin_dirs
102 echo %{_localstatedir}/spool/qpsmtpd > %{buildroot}%{_sysconfdir}/%{name}/spool_dir
103 echo logging/file_connection loglevel LOGINFO %{_localstatedir}/log/qpsmtpd/%Y-%m-%d > %{buildroot}%{_sysconfdir}/%{name}/logging
104 mkdir -p %{buildroot}%{_initrddir}
105 cp %{SOURCE1} %{buildroot}%{_initrddir}/qpsmtpd-forkserver
106 mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
107 cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/qpsmtpd-forkserver
108 mkdir -p %{buildroot}%{_localstatedir}/spool/qpsmtpd
109 mkdir -p %{buildroot}%{_localstatedir}/log/qpsmtpd
110 mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
111 cp %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/smtp
112 mkdir -p %{buildroot}%{_sbindir}
113 cp %{SOURCE4} %{buildroot}%{_sbindir}/in.smtp
114 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
115 cp %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d
116 mkdir -p %{buildroot}%{_docdir}/%{name}-apache-%{version}
117 cp %{SOURCE6} %{buildroot}%{_docdir}/%{name}-apache-%{version}
118
119 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
120
121 find %{buildroot}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;
122 find %{buildroot}%{_prefix} -type f -print | \
123 sed "s@^%{buildroot}@@g" | \
124 grep -v [Aa]sync | \
125 grep -v packaging | \
126 grep -v README.selinux | \
127 grep -v /Apache | \
128 grep -v /Danga | \
129 grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist
130 if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
131 echo "ERROR: EMPTY FILE LIST"
132 exit -1
133 fi
134
135 %files -f %{name}-%{version}-%{release}-filelist
136 %defattr(-,root,root)
137 %doc CREDITS Changes LICENSE README.md README.plugins.md STATUS
138 %{_initrddir}/qpsmtpd-forkserver
139 %config(noreplace) %{_sysconfdir}/qpsmtpd/*
140 %config(noreplace) %{_sysconfdir}/xinetd.d/smtp
141 %config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver
142
143 %files apache
144 %defattr(-,root,root)
145 %{_prefix}/share/perl5/vendor_perl/Apache/Qpsmtpd.pm
146 %{_mandir}/man3/Apache::Qpsmtpd.3pm.gz
147 %config(noreplace) %{_sysconfdir}/httpd/conf.d/*
148 %doc %{_docdir}/%{name}-apache-%{version}/README.selinux
149
150 %pre
151
152
153 %changelog
154 * Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-8.sme
155 - Support dkim signing with symlinks [SME: 9496]
156 - Fix DMARC rejects not working [SME: 9202]
157 - Add DMARC results notes so further plugin can check it [SME: 9202]
158 - Add possibility to reject solely on SPF result if no DMARC policy is published
159 [SME: 9479]
160
161 * Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-7.sme
162 - Backport some minor patches from git head [SME: 9460]
163
164 * Fri Apr 22 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-6.sme
165 - badrcptto can now read another file container bad addresses [SME: 9460]
166 [SME: 4597]
167
168 * Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme
169 - Fix a typo in previous patch [SME: 9462]
170
171 * Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-4.sme
172 - Backport the karma strikes param patch [SME: 9462]
173
174 * Mon Apr 18 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme
175 - hook uribl in data_post so it has access to the body [SME: 9467]
176
177 * Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme
178 - Don't log user credentials except when using the higher log level
179 [SME: 9466]
180
181 * Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme
182 - Update to 0.96 [SME: 9460]
183
184 * Fri Mar 25 2016 Charlie Brady <charlieb@charliebrady.org> 0.84-20.sme
185 - Fix startup warnings due to Socket6 symbol import. [SME: 9386]
186
187 * Sun Feb 7 2016 stephane de labrusse <stephdl@de-labrusse.fr> 0.84-19.sme
188 - Build new rpm for sme10
189
190 * Thu Jan 7 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-18.sme
191 - Allow reading SSL_version from the tls_protocols config file (and turn
192 TLSv1 back on by default) [SME: 9162]
193
194 * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-17.sme
195 - Correctly log login attempts with nulls in login name [SME: 9167]
196
197 * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 0.84-16.sme
198 - Disable TLSv1 [SME: 9162]
199
200 * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-15.sme
201 - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
202 - by John Crisp <jcrisp@safeandsoundit.co.uk>
203 - Added qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch
204
205 * Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-14.sme
206 - Disable SSLv3 [SME: 8926]
207
208 * Fri May 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-13.sme
209 - New notls conf to set hosts you dont want to advertize STARTTLS to [SME: 8863]
210
211 * Sun Feb 15 2015 Daniel Berteaud <daniel@firewall-services.com> 0.84-12.sme
212 - Revert forcing TLSv1 patch as it breaks some inbound delivery [SME: 8851]
213 - Revert whitelist_soft dnsbl as it hasn't been verified yet and we need to
214 push the fix for TLSv1 [SME: 8747]
215
216 * Fri Dec 26 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-11.sme
217 - Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8747]
218 - by John Crisp <jcrisp@safeandsoundit.co.uk>
219
220 * Mon Dec 22 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-10.sme
221 - Force usage of TLSv1 [SME: 8726]
222
223 * Thu Mar 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-9.sme
224 - Remove DENYSOFT on SPF softfail [SME: 8273]
225
226 * Mon Dec 9 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-8.sme
227 - Fix handling of messages with no body and no trailing \n after headers (eq was
228 used in attempted assignment). [SME: 8051, see SME: 7754]
229
230 * Fri Jul 5 2013 Ian Wells <esmith@wellsi.com> 0.84-7.sme
231 - Accept messages with no body and no trailing \n after headers [SME: 7754]
232
233 * Thu Apr 25 2013 chris burnat <devlist@burnat.com> 0.84-6.sme
234 - Fix Net::DNS update breaks qpsmtpd, codes suggested by Ian [SME: 7561]
235
236 * Wed Apr 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.84-5.sme
237 - allows the spamassassin plugin to read the size limit from its
238 arguments [SME: 7559]
239
240 * Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
241 - Update spec so building on rhel6 works [SME: 7263]
242
243 * Fri May 04 2012 Charlie Brady <charlie_brady@mitel.com> 0.84-3.sme
244 - Set SO_KEEPALIVE option on client socket - to detect dead
245 connections. [SME: 6924]
246
247 * Sun Nov 14 2010 <slords@mail.com> 0.84-2.sme
248 - Sync with upstream git repo.
249 - Fix require_resolvable_fromhost doesn't work [SME: 6369]
250 - Fix TLS security defaults [SME: 6241]
251 - Fix fatal errors when mail has no headers [SME: 6345]
252
253 * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
254 - Update to 0.84
255 - add sme specific patches
256 - Perl module rpms moved to /usr/share/perl5/vendor_perl [SME: 7223]
257
258 * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme
259 - Remove spool and log dir from package (in smeserver-qpsmtpd)
260 - Don't create smtpd user (unused in sme) [SME: 5815]
261
262 * Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
263 - Apply qpsmtpd git changesets to implement custom SPAM
264 subject prefix [SME: 5031]
265
266 * Tue Nov 3 2009 <slords@mail.com> 0.83-0.5.sme
267 - Update pre requires so scripts don't fail on install [SME: 5558]
268
269 * Sat Oct 31 2009 <slords@mail.com> 0.83-0.4.sme
270 - Rebase bad_rcptto patch to remove orig file [SME: 5548]
271 - Change logging in tls init to prevent warnings [SME: 5551]
272
273 * Thu Oct 29 2009 <slords@mail.com> 0.83-0.3.sme
274 - Only run/initialize plugins once [SME: 5533]
275
276 * Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme
277 - Change spool dir permissions and owner to qpsmtpd:clamav
278 - Change log dir permissions and owner to smelog:smelog
279
280 * Tue Sep 22 2009 <filippo.carletti@gmail.com> 0.83-0.1.sme
281 - add sme specific patches
282
283 * Fri Sep 18 2009 <rpmbuild@robinbowes.com> 0.83-0.1
284 - Update to 0.83
285
286 * Sun Jul 12 2009 <rpmbuild@robinbowes.com> 0.82-0.1
287 - Update to latest release
288 - don't add qpsmtpd to start-up by default
289 - add apache config file to qpsmtpd-apache package
290 - remove all patches
291 - use rpm macros for dirs
292 - use a filelist for main package instead of a long list of files
293
294 * Tue Jul 15 2008 <rpmbuild@robinbowes.com> 0.43-0.7
295 - Removed SelectServer.pm from .spec file
296
297 * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.6
298 - moved config files back to /etc/qpsmtpd following some changes
299 to the qpsmtpd src
300
301 * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.5
302 - moved config files to /etc/qpsmtpd/config
303
304 * Tue Mar 18 2008 <rpmbuild@robinbowes.com> 0.43-0.4
305 - Moved qpsmtpd-async to /usr/bin
306 - Added qpsmtpd-async man page to async package
307 - Added async smtproute plugin to async package
308
309 * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.3
310 - Makefile.PL now updated in svn, so remove hack
311
312 * Wed Mar 12 2008 <rpmbuild@robinbowes.com> 0.43-0.2
313 - Added qpsmtpd-prefork to qpsmtpd RPM, inc. hack to work round
314 deficiency in Makefile.PL
315
316 * Mon Mar 10 2008 <rpmbuild@robinbowes.com> 0.43-0.1
317 - Updated to work with Makefile to build from svn
318
319 * Wed Sep 12 2007 <rpmbuild@robinbowes.com> 0.40-2.0
320 - Updated to build trunk-r790
321
322 * Tue Jun 12 2007 <hjp@hjp.at> 0.40-1.0
323 - updated to 0.40 - no code change.
324
325 * Thu Jun 07 2007 <hjp@hjp.at> 0.40-0.2
326 - unset environment variables which are normally tainted in perl.
327 - updated to 0.40rc1
328 - added dependency on Net::IP (needed by some plugins)
329
330 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.5
331 - moved environment cleanup into start() function, otherwise
332 LANG just gets reinitialized.
333
334 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.4
335 - split qpsmtpd-async into a separate package to avoid dependency
336 on ParaDNS.
337
338 * Sat May 05 2007 <hjp@hjp.at> 0.33-0.3
339 - also unset LANG, LC_ALL and LC_TIME in startup script to prevent
340 locale specific Received headers (bug reported by Dominik Meyer)
341
342 * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.2
343 - 0.3x branch has been merged back to trunk.
344 Got current snapshot (r715) from trunk.
345
346 * Sun Feb 25 2007 <hjp@hjp.at> 0.33-0.1
347 - Start forkserver via "daemon" (Gavin Carr)
348 - Fixed 'service qpsmtpd-forkserver status' (Gavin Carr)
349 - Changed policy for config files to noreplace (Gavin Carr)
350
351 * Sun Nov 05 2006 <hjp@hjp.at> 0.33-0.0
352 - Upgraded to current snapshot from 0.3x branch (which should become
353 0.33 soon-ish)
354 - included xinetd-support again.
355
356 * Sat Mar 18 2006 <hjp@hjp.at> 0.32-2
357 - fix dnsbl to check whether answer fits query.
358 - randomize Net::DNS ids for qpsmtpd-forkserver child processes.
359
360 * Wed Mar 08 2006 <hjp@hjp.at> 0.32-1
361 - New upstream 0.32
362 - rc-file unsets PERL_UNICODE (bug #38397)
363
364 * Sat Jan 28 2006 <hjp@hjp.at> 0.31.1-3
365 - Use ${SOURCE*} macros to refer to source files
366 - Avoid invoking rpm and other cleanup in %pre section
367 - Invoke chkconfig in %post.
368 - (Thanks to Josko Plazonic for the reporting these problems and
369 suggesting fixes)
370
371 * Tue Nov 30 2005 <hjp@hjp.at> 0.31.1-2
372 - Revision 170 of plugins/loggin/file_connection:
373 Return DECLINED from open_log.
374 Open log in write_log if it isn't already open.
375
376 * Tue Nov 29 2005 <hjp@hjp.at> 0.31.1-1
377 - Commented out queue plugins from sample config
378 - Added dependencies
379 - Create smtpd user if it doesn't exist
380 - Added /var/log/qpsmtpd and /var/spool/qpsmtpd
381
382 * Sat Nov 26 2005 <hjp@hjp.at>
383 - Added file_connection plugin
384 - Startup file for qpsmtpd-forkserver now uses --detach and assumes that
385 a suitable logging module is configured (file_connection by default)
386
387 * Wed Nov 23 2005 <hjp@hjp.at>
388 - Forkserver drops privileges before loading plugins now.
389
390 * Sun Nov 20 2005 <hjp@hjp.at>
391 - New upstream 0.31.1
392
393 * Mon Nov 14 2005 <hjp@hjp.at> 0.31-8
394 - New upstream 0.31rc3.
395 - pre-connection patch slightly simplified since upstream fixed one of
396 the bugs.
397
398 * Tue Aug 23 2005 <hjp@hjp.at>
399 - forced INSTALLSITELIB=/usr/lib/perl5/site_perl as suggested by
400 Charlie Brady.
401
402 * Sat Aug 20 2005 <hjp@hjp.at> 0.31-7
403 - RC2 from upstream.
404 - Removed patches which aren't applied from spec file.
405
406 * Fri Jul 22 2005 <hjp@hjp.at> 0.31-6
407 - New upstream snapshot from 0.31 branch: svn revision 509.
408
409 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-5
410 - include only /etc/init.d/qpsmtpd-forkserver, not /etc/init.d
411 it conflicts with old initscripts packages.
412
413 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-4
414 - removed tabs from forkserver
415
416 * Sun Jul 17 2005 <hjp@hjp.at> 0.31-3
417 - added startup script for forkserver
418 - changed BuildArchitectures to noarch.
419
420 * Sat Jul 16 2005 <hjp@hjp.at> 0.31-2
421 - pre-connection hook is now actually called, not just defined.
422
423 * Fri Jul 15 2005 <hjp@hjp.at> 0.31-1
424 - merged with 0.31. Most of my patches are now in the official release.
425 - merged Gavin's per-user-config patch with my dirs patch, since the
426 latter needs a way to turn off logging.
427 - added /etc/qpsmtpd/plugin_dir to package.
428
429 * Mon Jun 13 2005 <hjp@hjp.at> 0.29-6
430 - fixed removal of patch backup files
431 - fixed option --pid-file
432
433 * Sun Jun 12 2005 <hjp@hjp.at>
434 - avoid installing patch backup files
435 - split Apache::Qpsmtpd into separate package to avoid dependency hell.
436 - fixed URL
437 - changed group to Daemons.
438 - Fixed installation for newer versions of ExtUtils::MakeMaker
439
440 * Wed Jun 1 2005 <hjp@hjp.at> 0.29-5
441 - Really don't reap children in signal handler.
442
443 * Tue May 31 2005 <hjp@hjp.at> 0.29-4
444 - Return 421 for DENYSOFT_DISCONNECT
445 - Don't reap children in signal handler.
446
447 * Thu May 19 2005 <hjp@hjp.at> 0.29-3
448 - removed code to accept paths without <>.
449
450 * Thu May 19 2005 <hjp@hjp.at> 0.29-2
451 - added QPSMTPD_CONFIG env variable and plugin_dir config.
452 - added supplemental groups and support for pid file
453 - added shared_connect hook
454 - changed log level for SMTP dialog from DEBUG to INFO
455
456 * Thu Apr 21 2005 hjp@hjp.at
457 - added plugins, /etc and docs.
458
459 * Mon Apr 18 2005 hjp@hjp.at
460 - Specfile autogenerated
461

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed