1 |
# $Id: smeserver-qpsmtpd.spec,v 1.1 2013/02/07 22:39:35 slords Exp $ |
# $Id: smeserver-qpsmtpd.spec,v 1.28 2016/05/07 06:47:21 vip-ire Exp $ |
2 |
|
|
3 |
Summary: SME Server qpsmtpd module |
Summary: SME Server qpsmtpd module |
4 |
%define name smeserver-qpsmtpd |
%define name smeserver-qpsmtpd |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.4.0 |
%define version 2.4.0 |
7 |
%define release 2 |
%define release 27 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
|
Patch1: smeserver-qpsmtpd-2.4.0-spamassassin_size_limit.patch |
14 |
|
Patch2: smeserver-qpsmtpd-2.4.0-initialize_size.patch |
15 |
|
Patch3: smeserver-qpsmtpd-2.4.0-ciphers-update.patch |
16 |
|
Patch4: smeserver-qpsmtpd-2.4.0-RBLSBLupdate.patch |
17 |
|
Patch5: smeserver-qpsmtpd-2.4.0-remove_databytes.patch |
18 |
|
Patch6: smeserver-qpsmtpd-2.4.0-ahbl-patch |
19 |
|
Patch7: smeserver-qpsmtpd-2.4.0-allow_relayclients_wo_authentications.patch |
20 |
|
Patch8: smeserver-qpsmtpd-2.4.0-add_domain_to_bcc_user.patch |
21 |
|
Patch9: smeserver-qpsmtpd-2.4.0-ssl_proto_from_db.patch |
22 |
|
Patch10: smeserver-qpsmtpd-2.4.0-ssl_update.patch |
23 |
|
Patch11: smeserver-qpsmtpd-2.4.0-compat_with_0.96.patch |
24 |
|
Patch12: smeserver-qpsmtpd-2.4.0-helo_default_to_rfc.patch |
25 |
|
Patch13: smeserver-qpsmtpd-2.4.0-remove_obsolete_badrcptto_pattern_conf.patch |
26 |
|
Patch14: smeserver-qpsmtpd-2.4.0-dhparam.patch |
27 |
|
Patch15: smeserver-qpsmtpd-2.4.0-karma.patch |
28 |
|
Patch16: smeserver-qpsmtpd-2.4.0-loadcheck.patch |
29 |
|
Patch17: smeserver-qpsmtpd-2.4.0-use_clamdscan_plugin.patch |
30 |
|
Patch18: smeserver-qpsmtpd-2.4.0-change_rbl_sbl_list_separator.patch |
31 |
|
Patch19: smeserver-qpsmtpd-2.4.0-add_uribl_support.patch |
32 |
|
Patch20: smeserver-qpsmtpd-2.4.0-use_naughty_plugin.patch |
33 |
|
Patch21: smeserver-qpsmtpd-2.4.0-bogus_bounce.patch |
34 |
|
Patch22: smeserver-qpsmtpd-2.4.0-external_badrcptto.patch |
35 |
|
Patch23: smeserver-qpsmtpd-2.4.0-inbound_spf.patch |
36 |
|
Patch24: smeserver-qpsmtpd-2.4.0-inbound_dkim.patch |
37 |
|
Patch25: smeserver-qpsmtpd-2.4.0-inbound_dmarc.patch |
38 |
|
Patch26: smeserver-qpsmtpd-2.4.0-dkim_signing.patch |
39 |
|
Patch27: smeserver-qpsmtpd-2.4.0-init_dmarc_report_db.patch |
40 |
|
Patch28: smeserver-qpsmtpd-2.4.0-dmarc_settings_bool.patch |
41 |
|
Patch29: smeserver-qpsmtpd-2.4.0-dmarc_reporting.patch |
42 |
|
Patch30: smeserver-qpsmtpd-2.4.0-spf_reject_policy.patch |
43 |
|
Patch31: smeserver-qpsmtpd-2.4.0-PERMS.patch |
44 |
|
Patch32: smeserver-qpsmtpd-2.4.0-fix_syntax_in_print_dns.patch |
45 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
46 |
Requires: qpsmtpd >= 0.83 |
Requires: qpsmtpd >= 0.96 |
47 |
|
Requires: perl(ClamAV::Client) |
48 |
Requires: perl(Mail::DKIM) |
Requires: perl(Mail::DKIM) |
49 |
Requires: perl(Mail::DKIM::DkSignature) |
Requires: perl(Mail::DKIM::DkSignature) |
50 |
|
Requires: perl(Mail::DMARC) |
51 |
|
Requires: perl(DBD::SQLite) |
52 |
Requires: daemontools |
Requires: daemontools |
53 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
54 |
Requires: ipsvd |
Requires: ipsvd |
76 |
SME Server qpsmtpd smtpd module |
SME Server qpsmtpd smtpd module |
77 |
|
|
78 |
%changelog |
%changelog |
79 |
|
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-27.sme |
80 |
|
- Fix a syntax error in the qpsmtpd-print-dns script [SME: 9507] |
81 |
|
|
82 |
|
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-26.sme |
83 |
|
- Remove warning about spool dir permission on startup [SME: 9511] |
84 |
|
|
85 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-25.sme |
86 |
|
- Add missing patch for DKIM signing [SME: 9506] |
87 |
|
- Create needed directories [SME: 9507] |
88 |
|
- Add missing run time dependency on perl(DBD::SQLite) [SME: 9507] |
89 |
|
|
90 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-24.sme |
91 |
|
- Check SPF for inbound emails [SME: 9505] |
92 |
|
- Check DKIM for inbound emails [SME: 9504] |
93 |
|
- Check DMARC for inbound emails (based on the previous SPF and DKIM checks) |
94 |
|
[SME: 9507] |
95 |
|
- Store and send DMARC aggregate reports [SME: 9507] |
96 |
|
- Support DKIM signing for outbound emails [SME: 9506] |
97 |
|
|
98 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-23.sme |
99 |
|
- Use an additional badrcptto file list for external connections so |
100 |
|
local only pseudonymes work as expected [SME: 9503] |
101 |
|
|
102 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-22.sme |
103 |
|
- Enable the bogus_bounce plugin [SME: 9501] |
104 |
|
|
105 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-21.sme |
106 |
|
- Use the naughty plugin to defer rejections, leaving users an opportunity |
107 |
|
to authenticate [SME: 9500] |
108 |
|
|
109 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-20.sme |
110 |
|
- Add support for the uribl plugin [SME: 9499] |
111 |
|
|
112 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-19.sme |
113 |
|
- Change separator for SBList and RBLlist from : to , [SME: 9498] |
114 |
|
|
115 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-18.sme |
116 |
|
- Switch to the clamdscan plugin [SME: 9497] |
117 |
|
|
118 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-17.sme |
119 |
|
- Enabe the loadcheck plugin [SME: 9508] |
120 |
|
|
121 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-16.sme |
122 |
|
- Add support for the karma plugin [SME: 9502] |
123 |
|
|
124 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-15.sme |
125 |
|
- Work with qpsmtpd 0.96 [SME: 8861] |
126 |
|
|
127 |
|
* Wed Jan 13 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-14.sme |
128 |
|
- Expand all ssl related conf in ssl-update [SME: 9152] |
129 |
|
|
130 |
|
* Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-13.sme |
131 |
|
- Hook into a new ssl-update event [SME: 9152] |
132 |
|
|
133 |
|
* Thu Jan 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-12.sme |
134 |
|
- Allow setting SSL protocols from DB [SME: 9162] |
135 |
|
|
136 |
|
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-11.sme |
137 |
|
- Add domain part to bcc user if missing [SME: 8990] |
138 |
|
|
139 |
|
* Wed Dec 3 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-10.sme |
140 |
|
- allow IP relayclient stored by DB [SME: 8704] |
141 |
|
- Code from Stefano ZAmboni <zamboni@mind-at-work.it> |
142 |
|
- & Charlie Brady <charlieb-contribs-bugzilla@budge.apana.org.au> |
143 |
|
|
144 |
|
* Tue Dec 2 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-9.sme |
145 |
|
- allow IP relayclient stored by DB [SME: 8704] |
146 |
|
- Code from Stefano ZAmboni <zamboni@mind-at-work.it> |
147 |
|
|
148 |
|
* Tue May 6 2014 Ian Wells <esmith@wellsi.com> 2.4.0-8.sme |
149 |
|
- Remove dnsbl.ahbl.org RBL List [SME: 8368] |
150 |
|
|
151 |
|
* Tue Apr 15 2014 Ian Wells <esmith@wellsi.com> 2.4.0-7.sme |
152 |
|
- Remove the databytes file from qpsmtpd config [SME: 8329] |
153 |
|
|
154 |
|
* Tue Apr 15 2014 Ian Wells <esmith@wellsi.com> 2.4.0-6.sme |
155 |
|
- Update SBL and RBL Lists [SME: 8236] |
156 |
|
|
157 |
|
* Tue Jan 28 2014 Ian Wells <esmith@wellsi.com> 2.4.0-5.sme |
158 |
|
- Remove insecure ciphers [SME: 8138] |
159 |
|
|
160 |
|
* Fri Jun 14 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-4 |
161 |
|
- Fix size_limit initialization [SME: 7671] |
162 |
|
|
163 |
|
* Wed Apr 24 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-3 |
164 |
|
- reads MaxMessageSize prop of spamassassin and adds it |
165 |
|
to the arguments of the plugin if defined [SME: 7559] |
166 |
|
|
167 |
* Wed Apr 10 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2 |
* Wed Apr 10 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2 |
168 |
- Requires e-smith-cvm-unix-local [SME: 7509] |
- Requires e-smith-cvm-unix-local [SME: 7509] |
169 |
|
|
806 |
|
|
807 |
%prep |
%prep |
808 |
%setup |
%setup |
809 |
|
%patch1 -p1 |
810 |
|
%patch2 -p1 |
811 |
|
%patch3 -p1 |
812 |
|
%patch4 -p1 |
813 |
|
%patch5 -p1 |
814 |
|
%patch6 -p1 |
815 |
|
%patch7 -p1 |
816 |
|
%patch8 -p1 |
817 |
|
%patch9 -p1 |
818 |
|
%patch10 -p1 |
819 |
|
%patch11 -p1 |
820 |
|
%patch12 -p1 |
821 |
|
%patch13 -p1 |
822 |
|
%patch14 -p1 |
823 |
|
%patch15 -p1 |
824 |
|
%patch16 -p1 |
825 |
|
%patch17 -p1 |
826 |
|
%patch18 -p1 |
827 |
|
%patch19 -p1 |
828 |
|
%patch20 -p1 |
829 |
|
%patch21 -p1 |
830 |
|
%patch22 -p1 |
831 |
|
%patch23 -p1 |
832 |
|
%patch24 -p1 |
833 |
|
%patch25 -p1 |
834 |
|
%patch26 -p1 |
835 |
|
%patch27 -p1 |
836 |
|
%patch28 -p1 |
837 |
|
%patch29 -p1 |
838 |
|
%patch30 -p1 |
839 |
|
%patch31 -p1 |
840 |
|
%patch32 -p1 |
841 |
|
|
842 |
%build |
%build |
843 |
perl createlinks |
perl createlinks |
844 |
|
|
845 |
|
mkdir -p root/var/lib/qpsmtpd/karma |
846 |
|
mkdir -p root/var/lib/qpsmtpd/dmarc |
847 |
|
mkdir -p root/home/e-smith/dkim_keys/default |
848 |
|
mkdir -p root/var/service/qpsmtpd/config/dkim |
849 |
|
|
850 |
PEERS_CONFIG=root/etc/e-smith/templates/var/service/qpsmtpd/config/peers |
PEERS_CONFIG=root/etc/e-smith/templates/var/service/qpsmtpd/config/peers |
851 |
mkdir -p $PEERS_CONFIG/0 |
mkdir -p $PEERS_CONFIG/0 |
852 |
mkdir -p $PEERS_CONFIG/local |
mkdir -p $PEERS_CONFIG/local |
853 |
|
|
854 |
DISABLE_LOCAL=" |
DISABLE_LOCAL=" |
855 |
10check_earlytalker |
09karma |
856 |
|
10earlytalker |
857 |
12count_unrecognized_commands |
12count_unrecognized_commands |
858 |
16require_resolvable_fromhost |
15helo |
859 |
|
16resolvable_fromhost |
860 |
|
19loadcheck |
861 |
20rhsbl |
20rhsbl |
862 |
22dnsbl |
22dnsbl |
863 |
|
221spf |
864 |
|
223dmarc |
865 |
|
34badrcptto_ext |
866 |
70spamassassin |
70spamassassin |
867 |
" |
" |
868 |
|
|
872 |
done |
done |
873 |
|
|
874 |
DISABLE_EXTERNAL=" |
DISABLE_EXTERNAL=" |
875 |
|
34badrcptto |
876 |
65disclaimer |
65disclaimer |
877 |
" |
" |
878 |
|
|
922 |
\ |
\ |
923 |
--file /var/service/sqpsmtpd/sqpsmtpd "attr(0755,root,root)" \ |
--file /var/service/sqpsmtpd/sqpsmtpd "attr(0755,root,root)" \ |
924 |
--dir /var/spool/qpsmtpd "attr(2750,qpsmtpd,clamav)" \ |
--dir /var/spool/qpsmtpd "attr(2750,qpsmtpd,clamav)" \ |
925 |
|
--dir /var/lib/qpsmtpd/karma "attr(2750,qpsmtpd,qpsmtpd)" \ |
926 |
|
--dir /var/lib/qpsmtpd/dmarc "attr(2750,qpsmtpd,qpsmtpd)" \ |
927 |
|
--dir /home/e-smith/dkim_keys "attr(2750,root,qpsmtpd)" \ |
928 |
|
--dir /var/service/qpsmtpd/config/dkim "attr(2750,qpsmtpd,qpsmtpd)" \ |
929 |
\ |
\ |
930 |
--file /usr/local/bin/qplogsumm.pl "attr(0755,root,root)" \ |
--file /usr/local/bin/qplogsumm.pl "attr(0755,root,root)" \ |
931 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |