1 |
# $Id: smeserver-qpsmtpd.spec,v 1.18 2016/05/06 09:25:39 vip-ire Exp $ |
# $Id: smeserver-qpsmtpd.spec,v 1.47 2021/09/16 19:02:40 jpp 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.6.0 |
%define version 2.7.0 |
7 |
%define release 17 |
%define release 5 |
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 |
Patch0: smeserver-qpsmtpd-2.6.0-PERMS.patch |
Patch0: smeserver-qpsmtpd-2.7.0-bz10958-preset.patch |
14 |
Patch1: smeserver-qpsmtpd-2.6.0-compat_with_0.96.patch |
Patch1: smeserver-qpsmtpd-2.7.0-bz11492-reject_threshold-deprecated.patch |
15 |
Patch2: smeserver-qpsmtpd-2.6.0-remove_obsolete_badrcptto_pattern_conf.patch |
Patch2: smeserver-qpsmtpd-2.7.0-bz11648-tnef2mime.patch |
16 |
Patch3: smeserver-qpsmtpd-2.6.0-dhparam.patch |
|
|
Patch4: smeserver-qpsmtpd-2.6.0-karma.patch |
|
|
Patch5: smeserver-qpsmtpd-2.6.0-loadcheck.patch |
|
|
Patch6: smeserver-qpsmtpd-2.6.0-bogus_bounce.patch |
|
|
Patch7: smeserver-qpsmtpd-2.6.0-use_clamdscan_plugin.patch |
|
|
Patch8: smeserver-qpsmtpd-2.6.0-set_karma_negative.patch |
|
|
Patch9: smeserver-qpsmtpd-2.6.0-change_rbl_sbl_list_separator.patch |
|
|
Patch10: smeserver-qpsmtpd-2.6.0-add_uribl_support.patch |
|
|
Patch11: smeserver-qpsmtpd-2.6.0-helo_default_to_rfc.patch |
|
|
Patch12: smeserver-qpsmtpd-2.6.0-use_naughty_plugin.patch |
|
|
Patch13: smeserver-qpsmtpd-2.6.0-karma_before_earlytalker.patch |
|
|
Patch14: smeserver-qpsmtpd-2.6.0-external_badrcptto.patch |
|
|
Patch15: smeserver-qpsmtpd-2.6.0-smtpd_to_qpsmtpd.patch |
|
|
Patch16: smeserver-qpsmtpd-2.6.0-inbound_spf.patch |
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
Requires: qpsmtpd >= 0.96 |
Requires: qpsmtpd >= 0.96-19 |
19 |
Requires: perl(Mail::DKIM) |
Requires: perl(Mail::DKIM) |
20 |
Requires: perl(Mail::DKIM::DkSignature) |
Requires: perl(Mail::DKIM::DkSignature) |
21 |
Requires: perl(ClamAV::Client) |
Requires: perl(ClamAV::Client) |
22 |
|
Requires: perl(Mail::DMARC) |
23 |
Requires: daemontools |
Requires: daemontools |
24 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
25 |
Requires: ipsvd |
Requires: ipsvd |
26 |
Requires: e-smith-lib >= 1.16.0-08 |
Requires: e-smith-lib >= 1.16.0-08 |
27 |
Requires: e-smith-cvm-unix-local |
Requires: e-smith-cvm-unix-local |
28 |
|
Requires: smeserver-clamav >= 2.7.0 |
29 |
Obsoletes: e-smith-obtuse-smtpd |
Obsoletes: e-smith-obtuse-smtpd |
30 |
Obsoletes: e-smith-qmail-smtpd |
Obsoletes: e-smith-qmail-smtpd |
31 |
Obsoletes: e-smith-mailfront |
Obsoletes: e-smith-mailfront |
48 |
SME Server qpsmtpd smtpd module |
SME Server qpsmtpd smtpd module |
49 |
|
|
50 |
%changelog |
%changelog |
51 |
|
* Thu Sep 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-5.sme |
52 |
|
- fix tnef2mime FATAL PLUGIN ERROR [SME: 11648] |
53 |
|
this will be a temp fix by redefining MIME::Parser::Filer::output_path |
54 |
|
until it has been fixed upstream |
55 |
|
|
56 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-3.sme |
57 |
|
- update depreacted reject_threshold to reject [SME: 11492] |
58 |
|
|
59 |
|
* Fri Feb 12 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme |
60 |
|
- remove /usr/lib/systemd/system-preset/80-koozali-qpsmtpd.preset [SME: 10958] |
61 |
|
|
62 |
|
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-1.sme |
63 |
|
- modify for clamav 0.103.0 [SME: 11210] |
64 |
|
- roll up patches |
65 |
|
|
66 |
|
* Thu Dec 10 2020 Michel Begue <mab974@gmail.com> 2.6.0-40.sme |
67 |
|
- add Requires=runit.service (qpsmtpd & sqpsmtpd) [SME: 11245] |
68 |
|
|
69 |
|
* Sun Dec 06 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-39.sme |
70 |
|
- fix service not enabled [SME: 11107] |
71 |
|
remove reset-unsavedflag |
72 |
|
|
73 |
|
* Fri Nov 27 2020 Michel Begue <mab974@gmail.com> 2.6.0-37.sme |
74 |
|
- Move qpsmtpd & sqpsmtpd services to systemd [SME: 11107] |
75 |
|
- Create smeserver-qpsmtpd-update event [SME: 11164] |
76 |
|
|
77 |
|
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-36.sme |
78 |
|
- expand badrcptto_ext when needed [SME: 10638] |
79 |
|
this avoid user, group or pseudonyms for internal purpose to be reachable |
80 |
|
from outside |
81 |
|
|
82 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-34.sme |
83 |
|
- minimum Protocol TLSv1.0 [SME: 10460] |
84 |
|
better ciphers order. |
85 |
|
|
86 |
|
* Sun Mar 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-32.sme |
87 |
|
- add forcespamcheck support for fetchmail [SME: 10290] |
88 |
|
|
89 |
|
* Thu Aug 3 2017 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-31.sme |
90 |
|
- Log DMARC reporting in syslog instead of sending email to the admin. |
91 |
|
Also suppress SSL connection failed warnings [SME: 10298] |
92 |
|
|
93 |
|
* Sat May 20 2017 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-30.sme |
94 |
|
- Turn DMARC reporting off by default [SME: 10303] |
95 |
|
|
96 |
|
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-29.sme |
97 |
|
- update patch smeserver-qpsmtpd-2.6.0-smtpd_to_qpsmtpd.patch [SME: 9478] |
98 |
|
- Greeting property was still attached to smtpd in a template |
99 |
|
|
100 |
|
* Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-28.sme |
101 |
|
- updated regex for RBL and SBL in smeserver-qpsmtpd-2.6.0-change_rbl_sbl_list_separator.patch |
102 |
|
- to take into account list using a subdomain [SME: 10123] |
103 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
104 |
|
by assuming the date is correct and changing the weekday. |
105 |
|
Thu May 11 2005 --> Thu May 05 2005 or Wed May 11 2005 or Thu May 12 2005 or .... |
106 |
|
Sun Sep 25 2010 --> Sun Sep 19 2010 or Sat Sep 25 2010 or Sun Sep 26 2010 or .... |
107 |
|
|
108 |
|
* Tue Jul 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-27.sme |
109 |
|
- Turn SPF and DMARC rejects off by default [SME: 9664] |
110 |
|
|
111 |
|
* Fri Jun 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-26.sme |
112 |
|
- Fix disabling DMARC reporting [SME: 9206] |
113 |
|
|
114 |
|
* Tue Jun 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-25.sme |
115 |
|
- Add missing tnef2mime and MaximumDateOffset to qpsmtpd [SME: 9560] |
116 |
|
|
117 |
|
* Fri May 27 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-24.sme |
118 |
|
- Create missing directories for DKIM keys [SME: 9496] |
119 |
|
- Create missing directory for the DMARC report database [SME: 9206] |
120 |
|
|
121 |
|
* Tue May 24 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-23.sme |
122 |
|
- Remove o and r DKIM fields as they are not standard [SME: 9496] |
123 |
|
|
124 |
|
* Mon May 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-22.sme |
125 |
|
- In qpsmtpd-print-dns set DKIM options after the public key so the string |
126 |
|
will still be splitted correctly [SME: 9496] |
127 |
|
|
128 |
|
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-21.sme |
129 |
|
- Fix a syntax error in qpsmtpd-print-dns script [SME: 9206] |
130 |
|
|
131 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-20.sme |
132 |
|
- Enable DMARC checking and reporting [SME: 9206] |
133 |
|
- Add helper to publish DKIM/DMARC/SPF policy [SME: 9496] |
134 |
|
- Allow DKIM signing of outbound emails [SME: 9496] |
135 |
|
- Possibility to reject on SPF failure [SME: 9479] |
136 |
|
|
137 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-19.sme |
138 |
|
- Enable inbound dkim checking (without reject) [SME: 9480] |
139 |
|
|
140 |
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-18.sme |
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-18.sme |
141 |
- Enable inbound SPF checking (without reject) [SME: 9479] |
- Enable inbound SPF checking (without reject) [SME: 9479] |
142 |
|
|
261 |
* Fri Oct 1 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-10.sme |
* Fri Oct 1 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-10.sme |
262 |
- Fix RelayRequiresAuth for local network [SME: 5575] |
- Fix RelayRequiresAuth for local network [SME: 5575] |
263 |
|
|
264 |
* Sun Sep 25 2010 Shad L. Lords <slords@mail.com> 2.2.0-9.sme |
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 2.2.0-9.sme |
265 |
|
Sun Sep 25 2010 --> Sun Sep 19 2010 or Sat Sep 25 2010 or Sun Sep 26 2010 or .... |
266 |
- Make tls ciphers configurable [SME: 6241] |
- Make tls ciphers configurable [SME: 6241] |
267 |
|
|
268 |
* Sun Sep 25 2010 Shad L. Lords <slords@mail.com> 2.2.0-8.sme |
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 2.2.0-8.sme |
269 |
|
Sun Sep 25 2010 --> Sun Sep 19 2010 or Sat Sep 25 2010 or Sun Sep 26 2010 or .... |
270 |
- Require auth for all relays (local too) [SME: 5575] |
- Require auth for all relays (local too) [SME: 5575] |
271 |
|
|
272 |
* Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 2.2.0-7.sme |
* Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 2.2.0-7.sme |
770 |
- Make sure that empty templates-begin files exist in peers/{0,local} |
- Make sure that empty templates-begin files exist in peers/{0,local} |
771 |
templates directories. |
templates directories. |
772 |
|
|
773 |
* Thu May 11 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Wed May 11 2005 Gordon Rowell <gordonr@gormand.com.au> |
774 |
|
Thu May 11 2005 --> Thu May 05 2005 or Wed May 11 2005 or Thu May 12 2005 or .... |
775 |
- [0.0.4-12] |
- [0.0.4-12] |
776 |
- Fix up config/relayclients - need a dot after network blocks |
- Fix up config/relayclients - need a dot after network blocks |
777 |
|
|
778 |
* Thu May 11 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Wed May 11 2005 Gordon Rowell <gordonr@gormand.com.au> |
779 |
|
Thu May 11 2005 --> Thu May 05 2005 or Wed May 11 2005 or Thu May 12 2005 or .... |
780 |
- [0.0.4-11] |
- [0.0.4-11] |
781 |
- Also regenerate goodrcptto in {user,pseudonym}-modify, since |
- Also regenerate goodrcptto in {user,pseudonym}-modify, since |
782 |
details about the account may have changed |
details about the account may have changed |
783 |
|
|
784 |
* Thu May 11 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Wed May 11 2005 Gordon Rowell <gordonr@gormand.com.au> |
785 |
|
Thu May 11 2005 --> Thu May 05 2005 or Wed May 11 2005 or Thu May 12 2005 or .... |
786 |
- [0.0.4-10] |
- [0.0.4-10] |
787 |
- Actually regenerate goodrcptto in the events mentioned in |
- Actually regenerate goodrcptto in the events mentioned in |
788 |
0.0.3-01 (typo in createlinks) |
0.0.3-01 (typo in createlinks) |
885 |
%prep |
%prep |
886 |
%setup |
%setup |
887 |
%patch0 -p1 |
%patch0 -p1 |
888 |
|
rm -rf root/usr/lib/systemd/system-preset |
889 |
%patch1 -p1 |
%patch1 -p1 |
890 |
%patch2 -p1 |
%patch2 -p1 |
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
|
%patch6 -p1 |
|
|
%patch7 -p1 |
|
|
%patch8 -p1 |
|
|
%patch9 -p1 |
|
|
%patch10 -p1 |
|
|
%patch11 -p1 |
|
|
%patch12 -p1 |
|
|
%patch13 -p1 |
|
|
%patch14 -p1 |
|
|
%patch15 -p1 |
|
|
%patch16 -p1 |
|
891 |
|
|
892 |
%build |
%build |
893 |
perl createlinks |
perl createlinks |
894 |
mkdir -p root/var/lib/qpsmtpd/karma |
mkdir -p root/var/lib/qpsmtpd/karma |
895 |
|
mkdir -p root/var/lib/qpsmtpd/dmarc |
896 |
|
mkdir -p root/home/e-smith/dkim_keys/default |
897 |
|
mkdir -p root/var/service/qpsmtpd/config/dkim |
898 |
|
|
899 |
PEERS_CONFIG=root/etc/e-smith/templates/var/service/qpsmtpd/config/peers |
PEERS_CONFIG=root/etc/e-smith/templates/var/service/qpsmtpd/config/peers |
900 |
mkdir -p $PEERS_CONFIG/0 |
mkdir -p $PEERS_CONFIG/0 |
910 |
20rhsbl |
20rhsbl |
911 |
22dnsbl |
22dnsbl |
912 |
221spf |
221spf |
913 |
|
223dmarc |
914 |
23naughty |
23naughty |
915 |
34badrcptto_ext |
34badrcptto_ext |
916 |
70spamassassin |
70spamassassin |
971 |
--dir /var/log/sqpsmtpd "attr(2750,smelog,smelog)" \ |
--dir /var/log/sqpsmtpd "attr(2750,smelog,smelog)" \ |
972 |
\ |
\ |
973 |
--file /var/service/sqpsmtpd/sqpsmtpd "attr(0755,root,root)" \ |
--file /var/service/sqpsmtpd/sqpsmtpd "attr(0755,root,root)" \ |
974 |
--dir /var/spool/qpsmtpd "attr(2750,qpsmtpd,clamav)" \ |
--dir /var/spool/qpsmtpd "attr(2750,qpsmtpd,clamscan)" \ |
975 |
--dir /var/lib/qpsmtpd/karma "attr(2750,qpsmtpd,qpsmtpd)" \ |
--dir /var/lib/qpsmtpd/karma "attr(2750,qpsmtpd,qpsmtpd)" \ |
976 |
|
--dir /var/lib/qpsmtpd/dmarc "attr(2750,qpsmtpd,qpsmtpd)" \ |
977 |
|
--dir /home/e-smith/dkim_keys "attr(2750,root,qpsmtpd)" \ |
978 |
|
--dir /var/service/qpsmtpd/config/dkim "attr(2750,qpsmtpd,qpsmtpd)" \ |
979 |
\ |
\ |
980 |
--file /usr/local/bin/qplogsumm.pl "attr(0755,root,root)" \ |
--file /usr/local/bin/qplogsumm.pl "attr(0755,root,root)" \ |
981 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
993 |
|
|
994 |
%post |
%post |
995 |
|
|
996 |
|
#Fix spool perms on clam upgrade |
997 |
|
if [[ -d /var/spool/qpsmtpd ]]; then |
998 |
|
chown qpsmtpd:clamscan /var/spool/qpsmtpd; |
999 |
|
fi |
1000 |
|
|
1001 |
%clean |
%clean |
1002 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1003 |
|
|