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