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

Contents of /rpms/qpsmtpd/sme9/qpsmtpd.spec

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


Revision 1.28 - (show annotations) (download)
Wed Jun 15 20:22:07 2016 UTC (8 years, 4 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-6_el6_sme
Changes since 1.27: +8 -2 lines
* Wed Jun 15 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-6.sme
- Remove karma rcpt handling (buggy and doesn't make a lot of sense)
  [SME: 9502]

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

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