1 |
# $Id: e-smith-qmail.spec,v 1.6 2013/07/05 23:46:49 wellsi Exp $ |
2 |
|
3 |
Summary: startup scripts for Dan Bernstein's qmail package |
4 |
%define name e-smith-qmail |
5 |
Name: %{name} |
6 |
%define version 2.4.0 |
7 |
%define release 7 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch2: e-smith-qmail-2.4.0-modify_domain_style_pseudonyms.patch |
14 |
Patch3: e-smith-qmail-2.4.0-modify_domain_style_pseudonyms_dot_in_name.patch |
15 |
Patch4: e-smith-qmail-2.4.0-Concurrency.patch |
16 |
Patch5: e-smith-qmail-2.4.0-exclude_from_group_email.patch |
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildRequires: e-smith-devtools >= 1.13.0-04 |
19 |
BuildArchitectures: noarch |
20 |
Requires: qmail |
21 |
Requires: dot-forward |
22 |
Requires: fastforward |
23 |
Requires: runit |
24 |
Requires: e-smith-email |
25 |
Requires: qmail >= 1.03-17 |
26 |
Provides: e-smith-mta |
27 |
Conflicts: runit < 1.7 |
28 |
Obsoletes: qmail-initscripts |
29 |
Obsoletes: qmail-workaround |
30 |
AutoReqProv: no |
31 |
|
32 |
%changelog |
33 |
* Tue May 31 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-7.sme |
34 |
- Add possibility to exclude users or members of other groups from group |
35 |
email address [SME: 9540] |
36 |
|
37 |
* Fri Jul 5 2013 Ian Wells <esmith@wellsi.com> 2.4.0-6.sme |
38 |
- Simplify qmail concurrency templates [SME: 7750] |
39 |
|
40 |
* Thu May 23 2013 chris burnat <devlist@burnat.com> 2.4.0-5.sme |
41 |
- Modify domain style pseudonym pointing to user with dot in name, by Filippo Carletti [SME: 7614] |
42 |
|
43 |
* Wed May 15 2013 chris burnat <devlist@burnat.com> 2.4.0-4.sme |
44 |
- Reverse change in Template Qmail MaxMessageSize [SME: 7393] |
45 |
|
46 |
* Fri May 03 2013 chris burnat <devlist@burnat.com> 2.4.0-3.sme |
47 |
- Reverse Allow groups with dots [SME 6694] and modify domain style pseudonyms to point to the correct user, by Filippo Carletti [SME: 7572] |
48 |
|
49 |
* Thu Feb 21 2013 Ian Wells <esmith@wellsi.com> 2.4.0-2.sme |
50 |
- Template Qmail MaxMessageSize [SME: 7393] |
51 |
|
52 |
* Wed Feb 6 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
53 |
- Roll new stream for sme9 |
54 |
|
55 |
* Sun Jan 15 2012 Ian Wells <esmith@wellsi.com> 2.2.0-6.sme |
56 |
- Allow groups with dots, by Filippo Carletti [SME: 6694] |
57 |
|
58 |
* Thu Oct 14 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-5.sme |
59 |
- Read number of log files to keep from the DB [SME: 5855] |
60 |
|
61 |
* Sat Sep 05 2009 Gavin Weight <gweight@gmail.com> 2.2.0-4 |
62 |
- SMTPSmartHost template incorrectly uses brackets to avoid MX lookups. [SME: 5456] |
63 |
|
64 |
* Mon May 18 2009 Gavin Weight <gweight@gmail.com> 2.2.0-3 |
65 |
- smtproutes template incorrectly uses brackets to avoid MX lookups. [SME: 5257] |
66 |
|
67 |
* Tue May 12 2009 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-2 |
68 |
- Remove qmail-workaround and obsolete it after patch to treat 0.0.0.0 as a |
69 |
local ip [SME: 5171] |
70 |
|
71 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
72 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
73 |
|
74 |
* Wed Apr 2 2008 Shad L. Lords <slords@mail.com> 1.10.0-16 |
75 |
- Create tcpto lockfile in run script [SME: 3055] |
76 |
|
77 |
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.10.0-15 |
78 |
- Domain catchall Redirection to Account [SME:1922] |
79 |
|
80 |
* Thu Sep 6 2007 Charlie Brady <charlie_brady@mitel.com> |
81 |
- Apply a code tidyup patch from Gordon. [SME: 871] |
82 |
|
83 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
84 |
- Clean up spec so package can be built by koji/plague |
85 |
|
86 |
* Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.10.0-13 |
87 |
- Change ownership/perms on /var/qmail/alias directory [SME: 2709] |
88 |
|
89 |
* Thu Feb 15 2007 Charlie Brady <charlie_brady@mitel.com> |
90 |
- Use sv rather than deprecated runsvctrl in ip-up script. [SME: 2486] |
91 |
|
92 |
* Mon Jan 22 2007 Shad L. Lords <slords@mail.com> 1.10.0-11 |
93 |
- Allow admin user to be configured via users panel. [SME: 827] |
94 |
|
95 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
96 |
- Update to new release naming. No functional changes. |
97 |
- Make Packager generic |
98 |
|
99 |
* Fri Aug 25 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-10 |
100 |
- Force creation of junkmail folder as some users like to delete |
101 |
it [SME: 1130] |
102 |
|
103 |
* Mon Aug 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-09 |
104 |
- Allow optional EveryoneEmail property of user and 'admin' accounts |
105 |
If set to 'no', do not include this user in the shared/everyone |
106 |
email alias [SME: 1842] |
107 |
|
108 |
* Thu Aug 3 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-08 |
109 |
- Allow optional $smtpd{HeloHost} value for configuring HELO host, |
110 |
defaulting to $DomainName [SME: 1790] |
111 |
|
112 |
* Thu Jun 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-07 |
113 |
- Default qmail{MaxMessageSize} to 15,000,000 bytes [SME: 1624] |
114 |
|
115 |
* Mon May 15 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-06 |
116 |
- Bump version only [SME: 1415] |
117 |
|
118 |
* Wed May 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-05sme01 |
119 |
- Allow optional MailServer property of domains db records and |
120 |
deliver mail in this order of preference: |
121 |
- As per the MailServer property of the domain |
122 |
- $DelegateMailServer |
123 |
- localhost (i.e. locally) |
124 |
NOTE: |
125 |
- If DelegateMailServer is not set, the users must exist on the |
126 |
gateway or mail will be rejected |
127 |
- If DelegateMailServer is set, all mail for the domain will be |
128 |
forwarded to the relevant internal mail server [SME: 1253] |
129 |
|
130 |
* Wed May 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-04sme01 |
131 |
- Remove virtualdomains entries for hosts db entries. We only |
132 |
handle mail for domains without customisation [SME: 1415] |
133 |
|
134 |
* Sat Apr 8 2006 Charlie Brady <charlie_brady@mitel.com> 1.10.0-03 |
135 |
- Update group .qmail files when deleting/modifying users. [SME: 1200] |
136 |
|
137 |
* Thu Mar 23 2006 Charlie Brady <charlie_brady@mitel.com> 1.10.0-02 |
138 |
- Use shared library to block 0.0.0.0 MX mail loops. [SME: 1116] |
139 |
|
140 |
* Tue Mar 14 2006 Charlie Brady <charlie_brady@mitel.com> 1.10.0-01 |
141 |
- Roll stable stream version. [SME: 1016] |
142 |
|
143 |
* Fri Mar 03 2006 Charlie Brady <charlie_brady@mitel.com> 1.9.1-05 |
144 |
- Add ~alias/.qmail-shared-default symlink. [SME: 764] |
145 |
|
146 |
* Thu Feb 16 2006 Charlie Brady <charlieb@e-smith.com> 1.9.1-04 |
147 |
- Fix migration when AdminEmail is not set. [SME: 818] |
148 |
|
149 |
* Thu Feb 16 2006 Charlie Brady <charlieb@e-smith.com> 1.9.1-03 |
150 |
- Use standard user .qmail template for admin user. Migrate |
151 |
AdminEmail setting to $admin{ForwardAddress}. [SME: 818] |
152 |
|
153 |
* Tue Jan 24 2006 Charlie Brady <charlieb@e-smith.com> 1.9.1-02 |
154 |
- Fix duplicate symlink creation attempt in bootstrap-console-save |
155 |
directory (during RPM build). [SME: 555] |
156 |
|
157 |
* Wed Jan 11 2006 Gordon Rowell <gordonr@gormand.com.au> 1.9.1-01 |
158 |
- Roll patches to 1.9.0-16 |
159 |
- Change ~alias/.qmail{default,localdelivery-default,shared} into |
160 |
directory templates [SME: 440] |
161 |
|
162 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.9.0-16 |
163 |
- Bump release number only |
164 |
|
165 |
* Tue Nov 22 2005 Charlie Brady <charlieb@e-smith.com> |
166 |
- [1.9.0-15] |
167 |
- Fix broken symlink in group-delete event. Delete -default .qmail file |
168 |
when deleting group. [SF: 1363973] |
169 |
|
170 |
* Tue Nov 1 2005 Charlie Brady <charlieb@e-smith.com> |
171 |
- [1.9.0-14] |
172 |
- Improve /var/qmail/users/assign/70pseudonyms error handling. [SF: 1337029] |
173 |
- Fix error text from 60users template fragment. [SF: 1345206] |
174 |
|
175 |
* Fri Oct 21 2005 Gordon Rowell <gordonr@e-smith.com> |
176 |
- [1.9.0-13] |
177 |
- Add quotes around 'Recipient unknown' when calling bouncesaying. |
178 |
Otherwise we're trying to call a program called 'unknown' [SF: 1334002] |
179 |
|
180 |
* Wed Oct 19 2005 Charlie Brady <charlieb@e-smith.com> |
181 |
- [1.9.0-12] |
182 |
- Ensure failsafe .qmail file if EmailForward property is not set. |
183 |
[SF: 1330452] |
184 |
|
185 |
* Fri Oct 7 2005 Charlie Brady <charlieb@e-smith.com> |
186 |
- [1.9.0-11] |
187 |
- Expand virtualdomains in pseudonym-* events. Replace use of control/1 |
188 |
by generic actions, plus qmail-newu symlinked into event directories. |
189 |
[SF: 1311349] |
190 |
|
191 |
* Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> |
192 |
- [1.9.0-10] |
193 |
- Split up templates-user/.qmail into fragments which return |
194 |
one or zero lines. It's much cleaner and helps with add-ons. |
195 |
Move .qmail/20Forward -> 70Forward to leave more room for |
196 |
add-ons [SF: 1252336] |
197 |
- Minor fixups - thanks Stephen Noble [SF: 1252336] |
198 |
- TODO: Remove the 10Filter stuff and migrate |
199 |
qmail{DeliveryInstruction} and qmail{DeliveryType} |
200 |
|
201 |
* Mon Sep 19 2005 Gordon Rowell <gordonr@e-smith.com> |
202 |
- [1.9.0-09] |
203 |
- Correct /var/qmail/users/assign/50system fragment so that |
204 |
mail for system accounts is delivered to admin [SF: 1284311] |
205 |
|
206 |
* Tue Sep 13 2005 Gordon Rowell <gordonr@gormand.com.au> |
207 |
- [1.9.0-08] |
208 |
- Add extension address handling for pseudonyms and groups. |
209 |
[SF: 1286823] |
210 |
|
211 |
* Mon Aug 22 2005 Charlie Brady <charlieb@e-smith.com> |
212 |
- [1.9.0-07] |
213 |
- Make correct /service symlink, so that a runit finds the |
214 |
run files. [SF: 1264668] |
215 |
|
216 |
* Wed Aug 10 2005 Shad Lords <slords@mail.com> |
217 |
- [1.9.0-06] |
218 |
- Add empty template-begin header for users/assign |
219 |
- Add requires for e-smith-email |
220 |
- Add provides e-smith-mta |
221 |
|
222 |
* Tue Aug 9 2005 Charlie Brady <charlieb@e-smith.com> |
223 |
- [1.9.0-05] |
224 |
- Add in all qmail specific code from e-smith-email. [SF: 1255261] |
225 |
|
226 |
* Wed Dec 29 2004 Charlie Brady <charlieb@e-smith.com> |
227 |
- [1.9.0-04] |
228 |
- Remove dangling conf-migrate-* symlink [charlieb MN00062545] |
229 |
|
230 |
* Tue Dec 28 2004 Charlie Brady <charlieb@e-smith.com> |
231 |
- [1.9.0-03] |
232 |
- Remove no longer needed conf-migrate-* action [charlieb MN00062545] |
233 |
- Replace deprecated Copyright header with License header. |
234 |
|
235 |
* Thu Feb 12 2004 Michael Soulier <msoulier@e-smith.com> |
236 |
- [1.9.0-02] |
237 |
- Updating with esmith::Build::CreateLinks, and the new genfilelist options. |
238 |
- Yanked migrate-qmail-logfiles, as it was causing problems. |
239 |
[msoulier dpar-20522] |
240 |
|
241 |
* Fri Feb 6 2004 Michael Soulier <msoulier@e-smith.com> |
242 |
- [1.9.0-01] |
243 |
- rolling to dev - 1.9.0 |
244 |
|
245 |
* Thu Aug 28 2003 Michael Soulier <msoulier@e-smith.com> |
246 |
- [1.8.0-02] |
247 |
- Adding K* init symlinks in runlevels 0, 1 and 6. [msoulier 9761] |
248 |
|
249 |
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
250 |
- [1.8.0-01] |
251 |
- Changing version to stable stream number - 1.8.0 |
252 |
|
253 |
* Wed Nov 6 2002 Charlie Brady <charlieb@e-smith.com> |
254 |
- [1.7.0-01] |
255 |
- Rolling development stream version to 1.7.0 |
256 |
|
257 |
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
258 |
- [1.6.0-01] |
259 |
- Roll to maintained version number to 1.6.0 |
260 |
|
261 |
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
262 |
- [1.6.0-01] |
263 |
- Roll to maintained version number to 1.6.0 |
264 |
|
265 |
* Wed Aug 21 2002 Charlie Brady <charlieb@e-smith.com> |
266 |
- [1.5.1-01] |
267 |
- Remove bogus e-smith-base dependency, which shows as an unmet |
268 |
dependency on our workstations. |
269 |
- Add rc7.d symlink [charlieb 4458] |
270 |
|
271 |
* Wed Jun 5 2002 Charlie Brady <charlieb@e-smith.com> |
272 |
- [1.5.0-01] |
273 |
- Changing version to development stream number to 1.5.0 |
274 |
|
275 |
* Fri May 31 2002 Charlie Brady <charlieb@e-smith.com> |
276 |
- [1.4.0-01] |
277 |
- Changing version to maintained stream number to 1.4.0 |
278 |
|
279 |
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
280 |
- [1.3.9-01] |
281 |
- RPM rebuild forced by cvsroot2rpm |
282 |
|
283 |
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
284 |
- [1.3.8-01] |
285 |
- testing co2rpm --force |
286 |
|
287 |
* Thu May 23 2002 Charlie Brady <charlieb@e-smith.com> |
288 |
- [1.3.7-01] |
289 |
- Remove world read and execute permission from qmail log directory. |
290 |
|
291 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
292 |
- [1.3.6-01] |
293 |
- /supervise/qmail -> /service/qmail [gordonr 3044] |
294 |
|
295 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
296 |
- [1.3.5-01] |
297 |
- Added /bin, /usr/bin and /usr/local/bin to qmail's path [gordonr 3044] |
298 |
|
299 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
300 |
- [1.3.4-01] |
301 |
- And create /var/log/qmail [gordonr 3044] |
302 |
|
303 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
304 |
- [1.3.3-01] |
305 |
- And create directory for pipes to be written to [gordonr 3044] |
306 |
|
307 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
308 |
- [1.3.2-01] |
309 |
- Created pipes, symlinks and empty files in SPEC file [gordonr 3044] |
310 |
|
311 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
312 |
- [1.3.1-01] |
313 |
- Initial CVS import |
314 |
|
315 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
316 |
- [1.3.0-01] |
317 |
- rollRPM: Rolled version number to 1.3.0-01. Includes patches up to 1.2.0-02. |
318 |
|
319 |
* Fri Aug 17 2001 gordonr |
320 |
- [1.2.0-02] |
321 |
- Autorebuild by rebuildRPM |
322 |
|
323 |
* Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com> |
324 |
- [1.2.0-01] |
325 |
- Rolled version number to 1.2.0-01. Includes patches upto 1.1.0-04. |
326 |
|
327 |
* Tue May 1 2001 Peter Samuel <peters@e-smith.com> |
328 |
- [1.1.0-04] |
329 |
- added /var/log/qmail to filelist |
330 |
|
331 |
* Tue May 1 2001 Peter Samuel <peters@e-smith.com> |
332 |
- [1.1.0-03] |
333 |
- added migrate-qmail-logfiles action to post-upgrade |
334 |
|
335 |
* Mon Apr 30 2001 Peter Samuel <peters@e-smith.com> |
336 |
- [1.1.0-02] |
337 |
- added conf-migrate-qmail-variables actions to migrate qmail.init |
338 |
configuration variable to qmail |
339 |
- added e-smith header to files |
340 |
|
341 |
* Mon Apr 30 2001 Peter Samuel <peters@e-smith.com> |
342 |
- [1.1.0-01] |
343 |
- initial release |
344 |
|
345 |
%description |
346 |
Startup scripts for Dan Bernstein's qmail package. |
347 |
|
348 |
%prep |
349 |
%setup |
350 |
%patch2 -p1 |
351 |
%patch3 -p1 |
352 |
%patch4 -p1 |
353 |
%patch5 -p1 |
354 |
|
355 |
%build |
356 |
perl createlinks |
357 |
|
358 |
%install |
359 |
rm -rf $RPM_BUILD_ROOT |
360 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
361 |
rm -f %{name}-%{version}-%{release}-filelist |
362 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
363 |
--dir '/var/service/qmail' 'attr(1755,root,root)' \ |
364 |
--file '/var/service/qmail/down' 'attr(0644,root,root)' \ |
365 |
--file '/var/service/qmail/run' 'attr(0755,root,root)' \ |
366 |
--file '/var/service/qmail/control/1' 'attr(0750,root,root)' \ |
367 |
--dir '/var/service/qmail/supervise' 'attr(0700,root,root)' \ |
368 |
--dir '/var/service/qmail/log' 'attr(0755,root,root)' \ |
369 |
--file '/var/service/qmail/log/run' 'attr(0755,root,root)' \ |
370 |
--dir '/var/service/qmail/log/supervise' 'attr(0700,root,root)' \ |
371 |
--dir '/var/log/qmail' 'attr(2750,qmaill,nofiles)' \ |
372 |
--dir '/var/qmail/alias' 'attr(2755,alias,qmail)' \ |
373 |
> %{name}-%{version}-%{release}-filelist |
374 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
375 |
|
376 |
%clean |
377 |
rm -rf $RPM_BUILD_ROOT |
378 |
|
379 |
%pre |
380 |
%preun |
381 |
%post |
382 |
%postun |
383 |
|
384 |
%files -f %{name}-%{version}-%{release}-filelist |
385 |
%defattr(-,root,root) |