1 |
# $Id: smeserver-qpsmtpd.spec,v 1.2 2016/03/30 02:16:21 unnilennium Exp $ |
# $Id: smeserver-qpsmtpd.spec,v 1.17 2016/04/22 21:23:33 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.6.0 |
%define version 2.6.0 |
7 |
%define release 3 |
%define release 17 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
13 |
Patch0: smeserver-qpsmtpd-2.6.0-PERMS.patch |
Patch0: smeserver-qpsmtpd-2.6.0-PERMS.patch |
14 |
Patch1: smeserver-qpsmtpd-2.6.0-compat_with_0.96.patch |
Patch1: smeserver-qpsmtpd-2.6.0-compat_with_0.96.patch |
15 |
Patch2: smeserver-qpsmtpd-2.6.0-remove_obsolete_badrcptto_pattern_conf.patch |
Patch2: smeserver-qpsmtpd-2.6.0-remove_obsolete_badrcptto_pattern_conf.patch |
16 |
|
Patch3: smeserver-qpsmtpd-2.6.0-dhparam.patch |
17 |
|
Patch4: smeserver-qpsmtpd-2.6.0-karma.patch |
18 |
|
Patch5: smeserver-qpsmtpd-2.6.0-loadcheck.patch |
19 |
|
Patch6: smeserver-qpsmtpd-2.6.0-bogus_bounce.patch |
20 |
|
Patch7: smeserver-qpsmtpd-2.6.0-use_clamdscan_plugin.patch |
21 |
|
Patch8: smeserver-qpsmtpd-2.6.0-set_karma_negative.patch |
22 |
|
Patch9: smeserver-qpsmtpd-2.6.0-change_rbl_sbl_list_separator.patch |
23 |
|
Patch10: smeserver-qpsmtpd-2.6.0-add_uribl_support.patch |
24 |
|
Patch11: smeserver-qpsmtpd-2.6.0-helo_default_to_rfc.patch |
25 |
|
Patch12: smeserver-qpsmtpd-2.6.0-use_naughty_plugin.patch |
26 |
|
Patch13: smeserver-qpsmtpd-2.6.0-karma_before_earlytalker.patch |
27 |
|
Patch14: smeserver-qpsmtpd-2.6.0-external_badrcptto.patch |
28 |
|
Patch15: smeserver-qpsmtpd-2.6.0-smtpd_to_qpsmtpd.patch |
29 |
|
Patch16: smeserver-qpsmtpd-2.6.0-inbound_spf.patch |
30 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
31 |
Requires: qpsmtpd >= 0.96 |
Requires: qpsmtpd >= 0.96 |
32 |
Requires: perl(Mail::DKIM) |
Requires: perl(Mail::DKIM) |
33 |
Requires: perl(Mail::DKIM::DkSignature) |
Requires: perl(Mail::DKIM::DkSignature) |
34 |
|
Requires: perl(ClamAV::Client) |
35 |
Requires: daemontools |
Requires: daemontools |
36 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
37 |
Requires: ipsvd |
Requires: ipsvd |
59 |
SME Server qpsmtpd smtpd module |
SME Server qpsmtpd smtpd module |
60 |
|
|
61 |
%changelog |
%changelog |
62 |
|
* Fri May 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-18.sme |
63 |
|
- Enable inbond SPF checking (without reject) [SME: 9479] |
64 |
|
|
65 |
|
* Fri Apr 22 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-17.sme |
66 |
|
- Merge smtpd entry into qpsmtpd, same for ssmtpd into sqpsmtpd [SME: 9478] |
67 |
|
|
68 |
|
* Fri Apr 22 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-16.sme |
69 |
|
- Use an additional badrcptto file list for external connections so |
70 |
|
local only pseudonymes work as expected [SME: 9460] [SME: 4597] |
71 |
|
|
72 |
|
* Thu Apr 21 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-15.sme |
73 |
|
- Call karma before earlytalker and add support for the new strikes param |
74 |
|
[SME: 9462] |
75 |
|
|
76 |
|
* Wed Apr 20 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-14.sme |
77 |
|
- Use the naughty plugin to defer rejections, leaving users an opportunity |
78 |
|
to authenticate [SME: 5092] |
79 |
|
|
80 |
|
* Wed Apr 20 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-13.sme |
81 |
|
- Use the helo plugin to check reverse DNS [SME: 2370] |
82 |
|
|
83 |
|
* Mon Apr 18 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-12.sme |
84 |
|
- Add support for uribl plugin, disabled by default [SME: 9467] |
85 |
|
|
86 |
|
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-11.sme |
87 |
|
- Change separator for SBList and RBLlist from : to , [SME: 8484] |
88 |
|
|
89 |
|
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-10.sme |
90 |
|
- Allow setting the karma negative value from the KarmaNegative prop |
91 |
|
[SME: 9462] |
92 |
|
|
93 |
|
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-9.sme |
94 |
|
- Fix max_size param for the clamdscan plugin [SME: 9465] |
95 |
|
|
96 |
|
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-8.sme |
97 |
|
- Use clamdscan plugin instead of clamav [SME: 9465] |
98 |
|
|
99 |
|
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-7.sme |
100 |
|
- Enable the bogus_bounce plugin [SME: 9464] |
101 |
|
|
102 |
|
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-6.sme |
103 |
|
- Enable the loadcheck plugin [SME: 9463] |
104 |
|
|
105 |
|
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-5.sme |
106 |
|
- Add support for the karma plugin, but keep it disabled by default |
107 |
|
[SME: 9462] |
108 |
|
|
109 |
|
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-4.sme |
110 |
|
- Create a dhparam for qpsmtpd [SME: 9461] |
111 |
|
|
112 |
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-3.sme |
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-3.sme |
113 |
- Adapt for qpsmtpd-0.96 (mainly plugin renamed) [SME: 9460] |
- Adapt for qpsmtpd-0.96 (mainly plugin renamed) [SME: 9460] |
114 |
|
|
804 |
%patch0 -p1 |
%patch0 -p1 |
805 |
%patch1 -p1 |
%patch1 -p1 |
806 |
%patch2 -p1 |
%patch2 -p1 |
807 |
|
%patch3 -p1 |
808 |
|
%patch4 -p1 |
809 |
|
%patch5 -p1 |
810 |
|
%patch6 -p1 |
811 |
|
%patch7 -p1 |
812 |
|
%patch8 -p1 |
813 |
|
%patch9 -p1 |
814 |
|
%patch10 -p1 |
815 |
|
%patch11 -p1 |
816 |
|
%patch12 -p1 |
817 |
|
%patch13 -p1 |
818 |
|
%patch14 -p1 |
819 |
|
%patch15 -p1 |
820 |
|
%patch16 -p1 |
821 |
|
|
822 |
%build |
%build |
823 |
perl createlinks |
perl createlinks |
824 |
|
mkdir -p root/var/lib/qpsmtpd/karma |
825 |
|
|
826 |
PEERS_CONFIG=root/etc/e-smith/templates/var/service/qpsmtpd/config/peers |
PEERS_CONFIG=root/etc/e-smith/templates/var/service/qpsmtpd/config/peers |
827 |
mkdir -p $PEERS_CONFIG/0 |
mkdir -p $PEERS_CONFIG/0 |
828 |
mkdir -p $PEERS_CONFIG/local |
mkdir -p $PEERS_CONFIG/local |
829 |
|
|
830 |
DISABLE_LOCAL=" |
DISABLE_LOCAL=" |
831 |
|
09karma |
832 |
10earlytalker |
10earlytalker |
833 |
12count_unrecognized_commands |
12count_unrecognized_commands |
834 |
|
15helo |
835 |
16resolvable_fromhost |
16resolvable_fromhost |
836 |
|
19loadcheck |
837 |
20rhsbl |
20rhsbl |
838 |
22dnsbl |
22dnsbl |
839 |
|
221spf |
840 |
|
23naughty |
841 |
|
34badrcptto_ext |
842 |
70spamassassin |
70spamassassin |
843 |
" |
" |
844 |
|
|
848 |
done |
done |
849 |
|
|
850 |
DISABLE_EXTERNAL=" |
DISABLE_EXTERNAL=" |
851 |
|
34badrcptto |
852 |
65disclaimer |
65disclaimer |
853 |
" |
" |
854 |
|
|
898 |
\ |
\ |
899 |
--file /var/service/sqpsmtpd/sqpsmtpd "attr(0755,root,root)" \ |
--file /var/service/sqpsmtpd/sqpsmtpd "attr(0755,root,root)" \ |
900 |
--dir /var/spool/qpsmtpd "attr(2750,qpsmtpd,clamav)" \ |
--dir /var/spool/qpsmtpd "attr(2750,qpsmtpd,clamav)" \ |
901 |
|
--dir /var/lib/qpsmtpd/karma "attr(2750,qpsmtpd,qpsmtpd)" \ |
902 |
\ |
\ |
903 |
--file /usr/local/bin/qplogsumm.pl "attr(0755,root,root)" \ |
--file /usr/local/bin/qplogsumm.pl "attr(0755,root,root)" \ |
904 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |