1 |
Summary: SME Server - spamassassin anti-spam module |
2 |
%define name smeserver-spamassassin |
3 |
Name: %{name} |
4 |
%define version 1.4.0 |
5 |
%define release 16 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Networking/Daemons |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
Patch1: sa310.patch |
12 |
Patch2: auto_whitelist_path.patch |
13 |
Patch3: smeserver-spamassassin-1.3.0-AWLToggle.patch |
14 |
Patch4: smeserver-spamassassin-1.3.0-AWLToggle.patch2 |
15 |
Patch5: smeserver-spamassassin-1.4.0-SpamStatusAtStartOfLine.patch |
16 |
Patch6: smeserver-spamassassin-1.4.0-headermatch.patch |
17 |
Patch7: smeserver-spamassassin-1.4.0-runit17.patch |
18 |
Patch8: smeserver-spamassassin-1.4.0-lognoise.patch |
19 |
Patch9: smeserver-spamassassin-1.4.0-sa_update-smefix.patch |
20 |
Patch10: smeserver-spamassassin-1.4.0-sa_update-smefix.patch2 |
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
Requires: e-smith-email >= 4.13.0-38 |
23 |
Requires: headermatch |
24 |
Requires: spamassassin >= 3.1.0 |
25 |
Requires: perl(Crypt::OpenSSL::Bignum) |
26 |
Requires: perl(IO::Socket::INET6) |
27 |
Requires: perl(IP::Country) |
28 |
Requires: perl(Net::DNS) >= 0.34-1 |
29 |
Requires: perl(Net::Ident) |
30 |
Requires: perl(Compress::Zlib) |
31 |
Requires: perl(Mail::DKIM) |
32 |
Requires: ucspi-tcp daemontools |
33 |
Requires: e-smith-lib >= 1.13.1-90 |
34 |
Requires: e-smith-base >= 4.13.16 |
35 |
Requires: e-smith-qmail >= 1.9.0-09sme02 |
36 |
Requires: razor-agents >= 2.61-1 |
37 |
Requires: DCC |
38 |
Requires: pyzor |
39 |
Requires: FuzzyOcr |
40 |
Obsoletes: e-smith-spamassassin |
41 |
Provides: e-smith-spamassassin |
42 |
BuildArchitectures: noarch |
43 |
BuildRequires: e-smith-devtools >= 1.11.0-12 |
44 |
AutoReqProv: no |
45 |
|
46 |
%description |
47 |
SME Server - spamassassin anti-spam module |
48 |
|
49 |
%changelog |
50 |
* Sat Sep 8 2007 Shad L. Lords <slords@mail.com> 1.4.0-16 |
51 |
- Import spamassassin keys correctly [SME: 3206] |
52 |
|
53 |
* Thu Sep 6 2007 Shad L. Lords <slords@mail.com> 1.4.0-15 |
54 |
- Import spamassassin keys if sa_update is found [SME: 3206] |
55 |
- Restart spamassassin if update successful [SME: 3351] |
56 |
|
57 |
* Sun Jun 24 2007 Shad L. Lords <slords@mail.com> 1.4.0-14 |
58 |
- Fix log (lint) noise [SME: 3100] |
59 |
|
60 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
61 |
- Clean up spec so package can be built by koji/plague |
62 |
|
63 |
* Sun Feb 18 2007 Shad L. Lords <slords@mail.com> 1.4.0-13 |
64 |
- Add FuzzyOcr to spamassassin to detect graphic spam [SME: 1985] |
65 |
|
66 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.4.0-12 |
67 |
- Change runsvctrl to sv to support runit v1.7.x [SME: 2486] |
68 |
|
69 |
* Wed Jan 24 2007 Shad L. Lords <slords@mail.com> 1.4.0-11 |
70 |
- Add requires for new spamassassin modules |
71 |
|
72 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
73 |
- Update to new release naming. No functional changes. |
74 |
- Make Packager generic |
75 |
|
76 |
* Fri Nov 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-09 |
77 |
- Only match X-Spam-Status in headers, via headermatch [SME: 1924] |
78 |
|
79 |
* Thu Jul 13 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-08 |
80 |
- Anchor X-Spam-Status check to start of line [SME: 1712] |
81 |
|
82 |
* Wed Jun 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-07 |
83 |
- Missing space in last change [SME: 1571] |
84 |
|
85 |
* Wed Jun 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-06 |
86 |
- Add check for spamassassin{UseAutoWhitelist}, defaulting to 0 (off) |
87 |
[SME: 1571] |
88 |
|
89 |
* Fri Jun 9 2006 Shad L. Lords <slords@mail.com> 1.4.0-05 |
90 |
- Add path/perm for auto_whitelist [SME: 1571] |
91 |
|
92 |
* Fri Jun 9 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-04 |
93 |
- Adjust perl dependencies to perl module rather than RPM [SME: 1548] |
94 |
|
95 |
* Fri Jun 9 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-03 |
96 |
- Correct previous changelog and rebuild [SME: 1548] |
97 |
|
98 |
* Wed Jun 7 2006 Shad L. Lords <slords@mail.com> 1.4.0-02 |
99 |
- Update config for spamassassin 3.10+ [SME: 1548] |
100 |
|
101 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.0-01 |
102 |
- Roll stable stream version. [SME: 1016] |
103 |
|
104 |
* Wed Feb 22 2006 Gavin Weight <gweight@gmail.com> 1.3.0-07 |
105 |
- Renamed 40customScore_BAYES_90 to 40customScore_BAYES_95, |
106 |
Edited 40customScore_BAYES_95 to change 90 to 95. [SME: 836] |
107 |
|
108 |
* Tue Feb 7 2006 Shad L. Lords <slords@mail.com> 1.3.0-06 |
109 |
- Add db default for wbl.global_to|type [SME: 693] |
110 |
|
111 |
* Sat Jan 28 2006 Shad L. Lords <slords@mail.com> 1.3.0-05 |
112 |
- Add global white/black lists for to addresses [SME: 594] |
113 |
|
114 |
* Thu Nov 03 2005 Filippo Carletti <carletti@mobilia.it> 1.3.0-04 |
115 |
- Avoid runit spinning if spamd is disabled [SF: 1312897] |
116 |
|
117 |
* Wed Nov 02 2005 Filippo Carletti <carletti@mobilia.it> 1.3.0-03sme01 |
118 |
- Start spamd only if spam filter is enabled [SF: 1312897] |
119 |
|
120 |
* Mon Oct 10 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03 |
121 |
- Migrate SortSpam property from 0/1 to disabled/enabled [SF: 1321319] |
122 |
|
123 |
* Fri Oct 7 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02 |
124 |
- Clear qmail{DeliveryInstruction} and qmail{DeliveryType} if |
125 |
they were set for the obsoleted sortspam [SF: 1315596] |
126 |
|
127 |
* Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> |
128 |
- [1.3.0] |
129 |
- Package renamed to smeserver-spamassassin |
130 |
|
131 |
* Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> |
132 |
- [1.1.0-08sme01] |
133 |
- Simplify .qmail template fragment and add Requires header |
134 |
for recent e-smith-qmail since we need 00setup from it [SF: 1252336] |
135 |
|
136 |
* Tue Aug 2 2005 Shad Lords <slords@email.com> |
137 |
- [1.1.0-08] |
138 |
- Prepare for change of default database location. [SF: 1216546] |
139 |
|
140 |
* Tue May 31 2005 Charlie Brady <charlieb@e-smith.com> |
141 |
- [1.1.0-07] |
142 |
- Default spamassassin{RejectLevel}==0 [Gordon SF:1202399] |
143 |
|
144 |
* Fri May 13 2005 Charlie Brady <charlieb@e-smith.com> |
145 |
- [1.1.0-06] |
146 |
- Another update from Gordon. |
147 |
- Use condredirect (redirecting to $USERNAME-junkmail) |
148 |
instead of sortspam [SF:1200336] |
149 |
- Provide template for .qmail-junkmail |
150 |
- Remove db defaults for qmail{DeliveryType,DeliveryInstruction}. |
151 |
We don't want one delivery instruction, we want as many as the |
152 |
user has requested. Each instruction should be enabled/disabled |
153 |
on a global and per-user basis, as per SortSpam |
154 |
- TODO: Simplify e-smithForward20 in e-smith-email |
155 |
|
156 |
* Fri May 13 2005 Charlie Brady <charlieb@e-smith.com> |
157 |
- [1.1.0-05] |
158 |
- Really add the new files in last patch from Shad/Gordon. |
159 |
|
160 |
* Thu May 5 2005 Charlie Brady <charlieb@e-smith.com> |
161 |
- [1.1.0-04] |
162 |
- Various contributions from Shad Lords and Gordon Rowell, as follows |
163 |
- Add sortspam from Shad Lords' e-smith-spamassassin |
164 |
- Add lots of config entries and local.cf templates, also from Shad |
165 |
- Modified templates to match new config db names |
166 |
- Add migrate fragments |
167 |
|
168 |
* Wed Apr 27 2005 Charlie Brady <charlieb@e-smith.com> |
169 |
- [1.1.0-03] |
170 |
- Change Requires header to "razor-agents". |
171 |
|
172 |
* Mon Mar 21 2005 Charlie Brady <charlieb@e-smith.com> |
173 |
- [1.1.0-02] |
174 |
- Update config for SpamAssassin 3.0.2 |
175 |
|
176 |
* Wed Feb 4 2004 Michael Soulier <msoulier@e-smith.com> |
177 |
- [1.1.0-01] |
178 |
- rolling to dev - 1.1.0 |
179 |
|
180 |
* Wed Feb 4 2004 Michael Soulier <msoulier@e-smith.com> |
181 |
- [1.0.0-01] |
182 |
- rolling to stable - 1.0.0 |
183 |
|
184 |
* Thu Aug 28 2003 Michael Soulier <msoulier@e-smith.com> |
185 |
- [0.0.8-02] |
186 |
- Added K* init symlinks to runlevels 0, 1 and 6. [msoulier 9761] |
187 |
|
188 |
* Thu Jun 26 2003 Gordon Rowell <gordonr@e-smith.com> |
189 |
- [0.0.8-01] |
190 |
- Enable spamd by default [gordonr 9183] |
191 |
- Simplify spamassassin-update script [gordonr 9183] |
192 |
- Resolve spamd/spamassassing directory confusion [gordonr 9183] |
193 |
- Change spamd use home directory to /var/spool/spamd [gordonr 9183] |
194 |
- Log as smelog user in /var/log/spamd [gordonr 9183] |
195 |
- Update SPEC file with new genfilelist [gordonr 9183] |
196 |
|
197 |
* Fri Jun 20 2003 Gordon Rowell <gordonr@e-smith.com> |
198 |
- [0.0.7-23] |
199 |
- Add path to /service/spamd so restart works [gordonr 9095] |
200 |
|
201 |
* Mon Jun 9 2003 Gordon Rowell <gordonr@e-smith.com> |
202 |
- [0.0.7-22] |
203 |
- Put back skip_rbl_checks|0 default [gordonr 8952] |
204 |
|
205 |
* Mon Jun 9 2003 Gordon Rowell <gordonr@e-smith.com> |
206 |
- [0.0.7-21] |
207 |
- Generate the correct config lines, and make each fragment |
208 |
valid perl [gordonr 8960] |
209 |
|
210 |
* Mon Jun 9 2003 Gordon Rowell <gordonr@e-smith.com> |
211 |
- [0.0.7-20] |
212 |
- Move spamassassin configuration parameters into main configdb |
213 |
as properties of the spamassassing service [gordonr 8960] |
214 |
|
215 |
* Mon Jun 9 2003 Charlie Brady <charlieb@e-smith.com> |
216 |
- [0.0.7-19] |
217 |
- Change config to use RBLs by default. [charlieb 8952] |
218 |
|
219 |
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com> |
220 |
- [0.0.7-18] |
221 |
- Use create-system-user to create spamd user. [charlieb 6033] |
222 |
|
223 |
* Tue Apr 22 2003 Gordon Rowell <gordonr@e-smith.com> |
224 |
- [0.0.7-17] |
225 |
- Removed %post call - already done in various events [gordonr 2600] |
226 |
|
227 |
* Tue Apr 22 2003 Gordon Rowell <gordonr@e-smith.com> |
228 |
- [0.0.7-16] |
229 |
- Changed spamd uid (1003 already taken) - [gordonr 8368] |
230 |
|
231 |
* Mon Apr 21 2003 Gordon Rowell <gordonr@e-smith.com> |
232 |
- [0.0.7-15] |
233 |
- Let useradd add the group in %pre. Don't fail %pre if the uid is not |
234 |
unique [gordonr 8368] |
235 |
|
236 |
* Wed Apr 9 2003 Charlie Brady <charlieb@e-smith.com> |
237 |
- [0.0.7-14] |
238 |
- Replace serviceControl() calls with "svc-stop" or "svc -t" as required, |
239 |
so that messages don't leak to console when spamd is restarted. |
240 |
[charlieb 7883] |
241 |
|
242 |
* Thu Apr 3 2003 Gordon Rowell <gordonr@e-smith.com> |
243 |
- [0.0.7-13] |
244 |
- Removed dangling panel link [gordonr 7787] |
245 |
|
246 |
* Wed Apr 2 2003 Charlie Brady <charlieb@e-smith.com> |
247 |
- [0.0.7-12] |
248 |
- Add default DeliveryInstruction andi DeliveryType default |
249 |
properties for qmail, so that "sortspam" is used for local delivery. |
250 |
Update e-smith-email "requires" version to suit. [charlieb 2600] |
251 |
- Change Copyright header to License. [charlieb] |
252 |
|
253 |
* Wed Apr 2 2003 Charlie Brady <charlieb@e-smith.com> |
254 |
- [0.0.7-11] |
255 |
- Remove panel code. Greg's panel code can now be found in |
256 |
e-smith-spamassassin-panel. [charlieb 7787] |
257 |
- Split action into spamassassin config/restart and procmail |
258 |
configure sections. Latter is not yet liked into any |
259 |
actions. [charlieb 2600] |
260 |
- Remove db initialization parts of action script - init done by |
261 |
'defaults' fragments. [charlieb 7526] |
262 |
- Do stop/restart of 'spamd', not 'spamassassin'. [charlieb 2600] |
263 |
|
264 |
* Fri Mar 28 2003 Gordon Rowell <gordonr@e-smith.com> |
265 |
- [0.0.7-10] |
266 |
- Change panel Spam Control -> Spam filtering [gordonr 2600] |
267 |
|
268 |
* Fri Mar 28 2003 Charlie Brady <charlieb@e-smith.com> |
269 |
- [0.0.7-09] |
270 |
- Fix problem with sorting of sensitivity labels in panel [charlieb 7910] |
271 |
|
272 |
* Tue Mar 25 2003 Charlie Brady <charlieb@e-smith.com> |
273 |
- [0.0.7-08] |
274 |
- Remove -c from run file which starts spamd - we don't want to try |
275 |
to create missing user config files. [charlieb 2600] |
276 |
- Create user spamd and run spamd as that userid. [charlieb 2600] |
277 |
|
278 |
* Mon Mar 17 2003 Charlie Brady <charlieb@e-smith.com> |
279 |
- [0.0.7-07] |
280 |
- Add conf.global and wbl.global default configuration data. [charlieb 2600] |
281 |
|
282 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
283 |
- [0.0.7-06] |
284 |
- Various fixes to spamassassin db initialization templates - mostly CVS |
285 |
repository issues. [charlieb 2600] |
286 |
|
287 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
288 |
- [0.0.7-05] |
289 |
- Add the panel link for the new panel. Configure spamd to be paranoid |
290 |
and to create no use config files. [charlieb 2600] |
291 |
|
292 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
293 |
- [0.0.7-04] |
294 |
- Remove Greg's full-featured spamassassin panel. Consult CVS if you want |
295 |
to resurrect any of the code. [charlieb 2600] |
296 |
|
297 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
298 |
- [0.0.7-03] |
299 |
- Fix the minimal FM panel so that it runs. [charlieb 2600] |
300 |
- Fix compile problems in spamassassin-update script. [charlieb 2600] |
301 |
|
302 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
303 |
- [0.0.7-02] |
304 |
- Add starter en-us lexicon for FM version of the panel. [charlieb 2600] |
305 |
|
306 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
307 |
- [0.0.7-01] |
308 |
- Use new defaults directory structure to initialize db entries. |
309 |
Add minimal Fm web panel. Add spamassassin-update to email-update |
310 |
and bootstrap-console-save events. [charlieb 2600] |
311 |
|
312 |
* Tue Feb 4 2003 Gordon Rowell <gordonr@e-smith.com> |
313 |
- [0.0.6-01] |
314 |
- Roll new source tarball after the merge [gordonr 2600] |
315 |
|
316 |
* Tue Feb 4 2003 Gordon Rowell <gordonr@e-smith.com> |
317 |
- [0.0.5-04] |
318 |
- Merged in Greg Zartman's <greg@leiinc.com> contrib |
319 |
|
320 |
* Wed Jan 29 2003 Greg Zartman <greg@leiinc.com> |
321 |
- Fixed a small typo in spamassassin server-manager |
322 |
panel that caused a menu label to not show correctly |
323 |
|
324 |
* Wed Jan 29 2003 Greg Zartman <greg@leiinc.com> |
325 |
- [0.0.1-1] |
326 |
- initial Alpha release |
327 |
|
328 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
329 |
- [0.0.5-03] |
330 |
- And rename /service/spamd as well [gordonr 2600] |
331 |
|
332 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
333 |
- [0.0.5-02] |
334 |
- Renamed spamassassin -> spamd to avoid conflict with spamassassin's |
335 |
init script [gordonr 2600] |
336 |
|
337 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
338 |
- [0.0.5-01] |
339 |
- Removed stray /etc/tcprules directory [gordonr 2600] |
340 |
|
341 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
342 |
- [0.0.4-01] |
343 |
- Deleted some detritus [gordonr 2600] |
344 |
|
345 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
346 |
- [0.0.3-01] |
347 |
- And an -as-source run to build the initial version [gordonr 2600] |
348 |
|
349 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
350 |
- [0.0.2-02] |
351 |
- Missed some files on initial import [gordonr 2600] |
352 |
|
353 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
354 |
- [0.0.2-01] |
355 |
- Initial import to 0.0.2 |
356 |
|
357 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
358 |
- [0.0.1-02] |
359 |
- Initial SRPM from CVS [gordonr 2600] |
360 |
|
361 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
362 |
- [0.0.1-1] |
363 |
- Initial |
364 |
|
365 |
%prep |
366 |
%setup |
367 |
%patch1 -p 1 |
368 |
%patch2 -p 1 |
369 |
%patch3 -p 1 |
370 |
%patch4 -p 1 |
371 |
%patch5 -p 1 |
372 |
%patch6 -p 1 |
373 |
%patch7 -p 1 |
374 |
%patch8 -p 1 |
375 |
%patch9 -p 1 |
376 |
%patch10 -p 1 |
377 |
|
378 |
%build |
379 |
perl createlinks |
380 |
|
381 |
mkdir -p root/service |
382 |
ln -s /var/service/spamd root/service/spamd |
383 |
|
384 |
mkdir -p root/var/service/spamd/supervise |
385 |
touch root/var/service/spamd/down |
386 |
|
387 |
mkdir -p root/var/service/spamd/log/supervise |
388 |
|
389 |
mkdir -p root/var/log/spamd |
390 |
|
391 |
mkdir -p root/var/service/spamd/env |
392 |
|
393 |
mkdir -p root/var/spool/spamd/.spamassassin |
394 |
|
395 |
%install |
396 |
rm -rf $RPM_BUILD_ROOT |
397 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
398 |
rm -f %{name}-%{version}-%{release}-filelist |
399 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
400 |
--dir /var/service/spamd 'attr(01755,root,root)' \ |
401 |
--file /var/service/spamd/down 'attr(0644,root,root)' \ |
402 |
--file /var/service/spamd/run 'attr(0755,root,root)' \ |
403 |
--dir /var/service/spamd/log 'attr(0755,root,root)' \ |
404 |
--dir /var/service/spamd/log/supervise 'attr(0700,root,root)' \ |
405 |
--dir /var/service/spamd/supervise 'attr(0700,root,root)' \ |
406 |
--file /var/service/spamd/log/run 'attr(0755,root,root)' \ |
407 |
--dir /var/log/spamd 'attr(2750,smelog,smelog)' \ |
408 |
--dir /var/spool/spamd 'attr(2750,spamd,spamd)' \ |
409 |
--dir /var/spool/spamd/.spamassassin 'attr(2750,spamd,spamd)' \ |
410 |
> %{name}-%{version}-%{release}-filelist |
411 |
|
412 |
%pre |
413 |
/sbin/e-smith/create-system-user spamd 1005 \ |
414 |
'spamassassin daemon user' /var/spool/spamd /bin/false |
415 |
|
416 |
%clean |
417 |
rm -rf $RPM_BUILD_ROOT |
418 |
|
419 |
%post |
420 |
|
421 |
%files -f %{name}-%{version}-%{release}-filelist |
422 |
%defattr(-,root,root) |