1 |
|
# $Id: smeserver-qpsmtpd.spec,v 1.41 2013/06/12 10:32:56 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 1.2.1 |
%define version 2.2.0 |
7 |
%define release 39 |
%define release 18 |
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.gz |
Source: %{name}-%{version}.tar.gz |
13 |
Patch0: smeserver-qpsmtpd-1.2.1-LiteralIP.patch |
Patch1: smeserver-qpsmtpd-2.2.0-qpsmtpd83.patch |
14 |
Patch1: smeserver-qpsmtpd-1.2.1-badrcptto-hosts.patch |
Patch2: smeserver-qpsmtpd-2.2.0-spamsubject.patch |
15 |
Patch2: smeserver-qpsmtpd-1.2.1-check_smtp_forward.patch |
Patch3: smeserver-qpsmtpd-2.2.0-expand-template.patch |
16 |
Patch3: smeserver-qpsmtpd-1.2.1-enable_check_smtp_forward.patch |
Patch4: smeserver-qpsmtpd-2.2.0-RequireResolvableFromHost-default-enabled.patch |
17 |
Patch4: smeserver-qpsmtpd-1.2.1-bcc_mode.patch |
Patch5: smeserver-qpsmtpd-2.2.0-tls_before_auth.patch |
18 |
Patch5: smeserver-qpsmtpd-1.2.1-peers_plugin.patch |
Patch6: smeserver-qpsmtpd-2.2.0-require_auth.patch |
19 |
Patch6: smeserver-qpsmtpd-1.2.1-peers_plugin.patch2 |
Patch7: smeserver-qpsmtpd-2.2.0-ciphers.patch |
20 |
Patch7: smeserver-qpsmtpd-1.2.1-usepeers.patch |
Patch8: smeserver-qpsmtpd-2.2.0-fix_relay_auth_for_local_net.patch |
21 |
Patch8: smeserver-qpsmtpd-1.2.1-usepeers.patch2 |
Patch9: smeserver-qpsmtpd-2.2.0-allow_fetchmail.patch |
22 |
Patch9: smeserver-qpsmtpd-1.2.1-rcpthosts_regenerated.patch |
Patch10: smeserver-qpsmtpd-2.2.0-log_to_stdout.patch |
23 |
Patch10: smeserver-qpsmtpd-1.2.1-mergetnef2mime.patch |
Patch11: smeserver-qpsmtpd-2.2.0-configure_num_of_log_file_to_keep.patch |
24 |
Patch11: smeserver-qpsmtpd-1.2.1-usepeers.patch3 |
Patch12: smeserver-qpsmtpd-2.2.0-spamassassin_size_limit.patch |
25 |
Patch12: smeserver-qpsmtpd-1.2.1-usepeers.patch4 |
Patch13: smeserver-qpsmtpd-2.2.0-initialize_size.patch |
26 |
Patch13: smeserver-qpsmtpd-1.2.1-control1.patch |
Patch14: smeserver-qpsmtpd-2.2.0-remove_databytes.patch |
27 |
Patch14: smeserver-qpsmtpd-1.2.1-control1.patch3 |
|
|
Patch15: smeserver-qpsmtpd-1.2.1-peersinit.patch |
|
|
Patch16: smeserver-qpsmtpd-1.2.1-rblsbl.patch |
|
|
Patch17: smeserver-qpsmtpd-1.2.1-peersauth.patch |
|
|
Patch18: smeserver-qpsmtpd-1.2.1-peersauth.patch2 |
|
|
Patch19: smeserver-qpsmtpd-1.2.1-badmailfrom.patch |
|
|
Patch20: smeserver-qpsmtpd-1.2.1-nowhitelist.patch |
|
|
Patch21: smeserver-qpsmtpd-1.2.1-dkim.patch |
|
|
Patch22: smeserver-qpsmtpd-1.2.1-keeptnef.patch |
|
|
Patch23: smeserver-qpsmtpd-1.2.1-softlimit.patch |
|
|
Patch24: smeserver-qpsmtpd-1.2.1-rcpthost.patch |
|
|
Patch25: smeserver-qpsmtpd-1.2.1-logterse.patch |
|
|
Patch26: smeserver-qpsmtpd-1.2.1-logterse_stats.patch |
|
|
Patch27: smeserver-qpsmtpd-1.2.1-qplogsumm.patch |
|
|
Patch28: smeserver-qpsmtpd-1.2.1-logterse.patch2 |
|
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
29 |
Requires: qpsmtpd >= 0.32-4.el4.sme |
Requires: qpsmtpd >= 0.83 |
30 |
Requires: perl(Mail::DKIM) |
Requires: perl(Mail::DKIM) |
31 |
Requires: perl(Mail::DKIM::DkSignature) |
Requires: perl(Mail::DKIM::DkSignature) |
|
Conflicts: qpsmtpd >= 0.33 |
|
32 |
Requires: daemontools |
Requires: daemontools |
33 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
Requires: qpsmtpd-plugins >= 0.0.1-sme04 |
34 |
Requires: ipsvd |
Requires: ipsvd |
55 |
SME Server qpsmtpd smtpd module |
SME Server qpsmtpd smtpd module |
56 |
|
|
57 |
%changelog |
%changelog |
58 |
|
* Sun Oct 13 2013 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-18 |
59 |
|
- Remove the databytes file from qpsmtpd config [SME: 7876] |
60 |
|
|
61 |
|
* Wed Jun 12 2013 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-17 |
62 |
|
- Fix size_limit initialization [SME: 7668] |
63 |
|
|
64 |
|
* Tue Apr 23 2013 chris burnat <devlist@burnat.com> 2.2.0-16 |
65 |
|
- smeserver-qpsmtpd reads MaxMessageSize prop of spamassassin and adds it |
66 |
|
to the arguments of the plugin if defined, patch by Daniel [SME: 7541] |
67 |
|
|
68 |
|
* Wed Jul 18 2012 Ian Wells <esmith@wellsi.com> 2.2.0-15 |
69 |
|
- Revert the 2.2.0-14 change and fix properly in e-smith-base [SME: 7026] |
70 |
|
|
71 |
|
* Fri Jul 06 2012 Ian Wells <esmith@wellsi.com> 2.2.0-14 |
72 |
|
- tls ciphers defaults to disallow SSLv2 [SME: 7026] |
73 |
|
|
74 |
|
* Thu Oct 14 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-13 |
75 |
|
- Read number of log files to keep from the DB [SME: 2862] |
76 |
|
|
77 |
|
* Fri Oct 8 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-12 |
78 |
|
- Log all the run script to stdout [SME: 5831] |
79 |
|
|
80 |
|
* Mon Oct 4 2010 Shad L. Lords <slords@mail.com> 2.2.0-11.sme |
81 |
|
- Allow relay from all local 127.0.0.x addresses [SME: 5575] |
82 |
|
|
83 |
|
* Fri Oct 1 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-10.sme |
84 |
|
- Fix RelayRequiresAuth for local network [SME: 5575] |
85 |
|
|
86 |
|
* Sun Sep 25 2010 Shad L. Lords <slords@mail.com> 2.2.0-9.sme |
87 |
|
- Make tls ciphers configurable [SME: 6241] |
88 |
|
|
89 |
|
* Sun Sep 25 2010 Shad L. Lords <slords@mail.com> 2.2.0-8.sme |
90 |
|
- Require auth for all relays (local too) [SME: 5575] |
91 |
|
|
92 |
|
* Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 2.2.0-7.sme |
93 |
|
- Add qpsmtpd template fragment for tls_before_auth [SME: 6004] |
94 |
|
|
95 |
|
* Sun Dec 27 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-6.sme |
96 |
|
- Enable qpsmtpd RequireResolvableFromHost plugin by default, remove |
97 |
|
database entry and the database default value [SME: 5617] |
98 |
|
|
99 |
|
* Sat Nov 7 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-5.sme |
100 |
|
- Tie template fragment into event system to have it expanded [SME: 5031] |
101 |
|
|
102 |
|
* Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-4.sme |
103 |
|
- Add qpsmtpd template fragment for custom SPAM subject prefix [SME: 5031] |
104 |
|
|
105 |
|
* Thu Oct 29 2009 Shad L. Lords <slords@mail.com> 2.0.0-3.sme |
106 |
|
- Add hooks cleanout back in in so auth works. |
107 |
|
|
108 |
|
* Thu Oct 29 2009 Shad L. Lords <slords@mail.com> 2.2.0-2.sme |
109 |
|
- Add compatibility with qpsmtpd 0.83 [SME: 5543] |
110 |
|
- Add tls to base config [SME: 1076] |
111 |
|
|
112 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
113 |
|
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
114 |
|
|
115 |
|
* Sun Oct 5 2008 Shad L. Lords <slords@mail.com> 1.2.1-57 |
116 |
|
- Fix migrate fragment for zen.spamhaus.org [SME: 2116] |
117 |
|
|
118 |
|
* Sun Oct 5 2008 Shad L. Lords <slords@mail.com> 1.2.1-56 |
119 |
|
- Migrate sbl-xbl.spamhaus.org to zen.spamhaus.org [SME: 2116] |
120 |
|
- Remove blackhole.securitysage.com [SME: 4623] |
121 |
|
|
122 |
|
* Wed Jul 23 2008 Gavin Weight <gweight@gmail.com> 1.2.1-55 |
123 |
|
- Fix empty lines and add feature to specify disclaimer directory. |
124 |
|
(thanks, Federico Simoncelli). [SME: 3244] |
125 |
|
|
126 |
|
* Thu Apr 17 2008 Gavin Weight <gweight@gmail.com> 1.2.1-54 |
127 |
|
- Migrate ordb.net entries away. [SME: 4214] |
128 |
|
|
129 |
|
* Tue Jan 29 2008 Filippo Carletti <filippo.carletti@gmail.com> 1.2.1-53 |
130 |
|
- Enable auth plugin for local connections. [SME: 2631] |
131 |
|
|
132 |
|
* Thu Jan 10 2008 Gavin Weight <gweight@gmail.com> 1.2.1-52 |
133 |
|
- Fix divide by zero error on log rotate. [SME: 3620] |
134 |
|
|
135 |
|
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.2.1-51 |
136 |
|
- check_smtp_forward changed from loginfo to logdebug [SME: 3471] |
137 |
|
|
138 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.1-50 |
139 |
|
- disable qplogsumm by deafult [SME: 3727] |
140 |
|
|
141 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.1-49 |
142 |
|
- rename template-begin fragments [SME: 2333] |
143 |
|
|
144 |
|
* Mon Oct 29 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.1-48 |
145 |
|
- Add badrcptto_pattern rule to block "null" recipient addresses. |
146 |
|
[SME: 3476] |
147 |
|
|
148 |
|
* Thu Sep 6 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.1-47 |
149 |
|
- Add configurable timeouts during SMTP command parsing and message |
150 |
|
body receipt. [SME: 3377] |
151 |
|
|
152 |
|
* Thu Sep 6 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.1-46 |
153 |
|
- Disconnect immediately if dnsbl plugin rejects recipient addresses |
154 |
|
(and therefore would never accept the message). [SME: 3352] |
155 |
|
|
156 |
|
* Thu Sep 6 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.1-45 |
157 |
|
- Configure hosts_allow plugin, which use the pre_connection hook |
158 |
|
and therefore needs to be done before the 'peers' plugin. |
159 |
|
[SME: 3352] |
160 |
|
|
161 |
|
* Fri Aug 03 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.1-44 |
162 |
|
- Fix rbl migrate fragment (thanks, Mike McCarn). [SME: 3229] |
163 |
|
|
164 |
|
* Sun Jun 17 2007 Shad L. Lords <slords@mail.com> 1.2.1-43 |
165 |
|
- Updates for disclaimer plugin [SME: 2648] |
166 |
|
|
167 |
|
* Sat Jun 16 2007 Shad L. Lords <slords@mail.com> 1.2.1-42 |
168 |
|
- Add disclaimer plugin disabled by default [SME: 2648] |
169 |
|
|
170 |
|
* Thu Jun 14 2007 Shad L. Lords <slords@mail.com> 1.2.1-41 |
171 |
|
- Update for new features in qpsmtpd v0.40 |
172 |
|
|
173 |
|
* Thu Jun 14 2007 Shad L. Lords <slords@mail.com> 1.2.1-40 |
174 |
|
- Remove conflicts qpsmtpd >= 0.33 |
175 |
|
|
176 |
* Sat Jun 9 2007 Shad L. Lords <slords@mail.com> 1.2.1-39 |
* Sat Jun 9 2007 Shad L. Lords <slords@mail.com> 1.2.1-39 |
177 |
- Update to correct version of qplogsumm.pl [SME: 2971] |
- Update to correct version of qplogsumm.pl [SME: 2971] |
178 |
|
|
701 |
|
|
702 |
%prep |
%prep |
703 |
%setup |
%setup |
|
%patch0 -p1 |
|
704 |
%patch1 -p1 |
%patch1 -p1 |
705 |
%patch2 -p1 |
%patch2 -p1 |
706 |
%patch3 -p1 |
%patch3 -p1 |
715 |
%patch12 -p1 |
%patch12 -p1 |
716 |
%patch13 -p1 |
%patch13 -p1 |
717 |
%patch14 -p1 |
%patch14 -p1 |
|
%patch15 -p1 |
|
|
%patch16 -p1 |
|
|
%patch17 -p1 |
|
|
%patch18 -p1 |
|
|
%patch19 -p1 |
|
|
%patch20 -p1 |
|
|
%patch21 -p1 |
|
|
%patch22 -p1 |
|
|
%patch23 -p1 |
|
|
%patch24 -p1 |
|
|
%patch25 -p1 |
|
|
%patch26 -p1 |
|
|
%patch27 -p1 |
|
|
%patch28 -p1 |
|
718 |
|
|
719 |
%build |
%build |
720 |
perl createlinks |
perl createlinks |
738 |
done |
done |
739 |
|
|
740 |
ln -s ../qpsmtpd/config root/var/service/sqpsmtpd/config |
ln -s ../qpsmtpd/config root/var/service/sqpsmtpd/config |
741 |
|
ln -s ../qpsmtpd/ssl root/var/service/sqpsmtpd/ssl |
742 |
|
|
743 |
mkdir -p root/etc/e-smith/templates/var/service/qpsmtpd/peers/{0,local} |
mkdir -p root/etc/e-smith/templates/var/service/qpsmtpd/peers/{0,local} |
744 |
touch root/etc/e-smith/templates/var/service/qpsmtpd/peers/{0,local}/template-begin |
touch root/etc/e-smith/templates/var/service/qpsmtpd/peers/{0,local}/template-begin |
749 |
mkdir -p $PEERS_CONFIG/local |
mkdir -p $PEERS_CONFIG/local |
750 |
|
|
751 |
DISABLE_LOCAL=" |
DISABLE_LOCAL=" |
|
05auth_cvm_unix_local |
|
752 |
10check_earlytalker |
10check_earlytalker |
753 |
12count_unrecognized_commands |
12count_unrecognized_commands |
754 |
16require_resolvable_fromhost |
16require_resolvable_fromhost |
762 |
echo "# $file disabled for local connections" > $PEERS_CONFIG/local/$file |
echo "# $file disabled for local connections" > $PEERS_CONFIG/local/$file |
763 |
done |
done |
764 |
|
|
765 |
|
DISABLE_EXTERNAL=" |
766 |
|
65disclaimer |
767 |
|
" |
768 |
|
|
769 |
|
for file in $DISABLE_EXTERNAL |
770 |
|
do |
771 |
|
echo "# $file disabled for external connections" > $PEERS_CONFIG/0/$file |
772 |
|
done |
773 |
|
|
774 |
( |
( |
775 |
cd root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins |
cd root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins |
776 |
for file in * |
for file in * |