Mercurial > dnsbl
annotate dnsbl.spec.in @ 231:4d6bd04d93fa stable-6-0-22
Fix memory leak in suppressed auto whitelisting.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 08 May 2009 15:17:52 -0700 |
parents | ad38575e98ca |
children | 5c3e9bf45bb5 |
rev | line source |
---|---|
112 | 1 %define localstatedir /var/lib |
94 | 2 |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
3 Summary: Sendmail milter for spam control |
112 | 4 Name: @PACKAGE@ |
5 Version: @VERSION@ | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
6 Release: 1%{?dist} |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
7 License: GPLv3+ |
112 | 8 Group: System Environment/Daemons |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
11 URL: http://www.five-ten-sg.com/%{name}/ |
112 | 12 |
13 Requires(pre): /usr/sbin/useradd | |
14 Requires(pre): /usr/bin/getent | |
94 | 15 Requires(postun): /usr/sbin/userdel |
16 Requires(post,preun): /sbin/chkconfig | |
113 | 17 Requires(post,preun): /sbin/service |
112 | 18 BuildRequires: sendmail-devel >= 8.12.1 |
19 Requires: sendmail >= 8.12.1 | |
20 Requires: sendmail-cf | |
163 | 21 Requires: spamassassin |
221
21037aa3aae5
try to build proper rpm by avoiding auto requires, revert to only libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
216
diff
changeset
|
22 |
94 | 23 |
24 %description | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
25 We present here a mechanism whereby the backup mail server can use the |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
26 correct set of DNSBLs for each recipient for each message. As a |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
27 side-effect, it gives us the ability to customize the set of DNSBLs on |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
28 a per-recipient basis, so that fred@example.com could use LOCAL and |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
29 the SBL, where all other users @example.com use only the SBL. |
94 | 30 |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
31 This milter will also decode (base64, mime, html entity, url |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
32 encodings) and scan for HTTP and HTTPS URLs and bare hostnames in the |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
33 body of the mail. If any of those host names have A or NS records on |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
34 the SBL (or a single configurable DNSBL), the mail will be rejected |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
35 unless previously whitelisted. This milter also counts the number of |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
36 invalid HTML tags, and can reject mail if that count exceeds your |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
37 specified limit. |
94 | 38 |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
39 The DNSBL milter reads a text configuration file (dnsbl.conf) on |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
40 startup, and whenever the config file (or any of the referenced |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
41 include files) is changed. The entire configuration file is case |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
42 insensitive. |
94 | 43 |
112 | 44 |
94 | 45 %prep |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
46 %setup -q |
112 | 47 |
94 | 48 %build |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
49 %configure |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
50 make %{?_smp_mflags} |
94 | 51 |
52 %install | |
112 | 53 rm -rf $RPM_BUILD_ROOT |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
54 make DESTDIR=$RPM_BUILD_ROOT install |
112 | 55 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
56 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
207
2d8690ba9693
more changes for packaging, %doc seems to remove the doc directory before copying the files
Carl Byington <carl@five-ten-sg.com>
parents:
206
diff
changeset
|
57 mkdir -p $RPM_BUILD_ROOT/var/run/%{name} |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
58 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autowhite |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
59 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/.spamassassin |
94 | 60 |
169 | 61 |
94 | 62 %pre |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
63 /usr/bin/getent passwd %{name} >/dev/null || /usr/sbin/useradd -r -d %{_sysconfdir}/%{name} -M -c "%{name} pseudo-user" -s /sbin/nologin %{name} >/dev/null |
94 | 64 |
65 | |
66 %post | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
67 /sbin/chkconfig --add %{name} |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
68 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc: |
113 | 69 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')" |
94 | 70 echo |
71 | |
72 | |
73 %preun | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
74 [ $1 = 0 ] && /sbin/service %{name} stop || : |
112 | 75 |
94 | 76 |
77 %postun | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
78 [ $1 = 0 ] && /sbin/chkconfig --del %{name} |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
79 [ $1 = 0 ] && userdel %{name} || : |
94 | 80 |
112 | 81 |
94 | 82 %clean |
211
4db1457cd11a
Extend auto-whitelisting when receiving mail even if the auto whitelist is specified in a parent context.
Carl Byington <carl@five-ten-sg.com>
parents:
209
diff
changeset
|
83 rm -rf $RPM_BUILD_ROOT |
4db1457cd11a
Extend auto-whitelisting when receiving mail even if the auto whitelist is specified in a parent context.
Carl Byington <carl@five-ten-sg.com>
parents:
209
diff
changeset
|
84 |
94 | 85 |
86 %files | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
87 %defattr(-,root,root,-) |
112 | 88 %{_sbindir}/* |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
89 %{_mandir}/man1/* |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
90 %{_mandir}/man5/* |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
91 %docdir %{_datadir}/doc/%{name}-%{version} |
208
ec5cb59a7368
more changes to properly package html files
Carl Byington <carl@five-ten-sg.com>
parents:
207
diff
changeset
|
92 %{_datadir}/doc/%{name}-%{version} |
204
391e4dd074c2
more changes trying to get the pdf documentation to package properly via rpm
Carl Byington <carl@five-ten-sg.com>
parents:
203
diff
changeset
|
93 %config(noreplace) %attr(0750,%{name},root) %{_sysconfdir}/%{name} |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
94 /etc/rc.d/init.d/%{name} |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
95 %dir %attr(0750,%{name},root) /var/run/%{name} |
112 | 96 |
94 | 97 |
98 %changelog | |
230
ad38575e98ca
Prevent auto whitelisting due to outgoing multipart/report delivery notifications.
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
99 * Fri May 08 2009 Carl Byington <carl@five-ten-sg.com> - 6.22-1 |
ad38575e98ca
Prevent auto whitelisting due to outgoing multipart/report delivery notifications.
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
100 - Prevent auto whitelisting due to outgoing multipart/report |
ad38575e98ca
Prevent auto whitelisting due to outgoing multipart/report delivery notifications.
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
101 delivery notifications. |
231
4d6bd04d93fa
Fix memory leak in suppressed auto whitelisting.
Carl Byington <carl@five-ten-sg.com>
parents:
230
diff
changeset
|
102 - Fix memory leak in suppressed auto whitelisting. |
230
ad38575e98ca
Prevent auto whitelisting due to outgoing multipart/report delivery notifications.
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
103 |
227
3fee608becbc
Fixes to compile on old systems without memrchr or string::clear().
Carl Byington <carl@five-ten-sg.com>
parents:
223
diff
changeset
|
104 * Sat Jan 03 2009 Carl Byington <carl@five-ten-sg.com> - 6.21-1 |
3fee608becbc
Fixes to compile on old systems without memrchr or string::clear().
Carl Byington <carl@five-ten-sg.com>
parents:
223
diff
changeset
|
105 - Fixes to compile on old systems without memrchr or string::clear(). |
3fee608becbc
Fixes to compile on old systems without memrchr or string::clear().
Carl Byington <carl@five-ten-sg.com>
parents:
223
diff
changeset
|
106 - Fix bug in spamassassin interface trying to clear a string with string::empty(). |
3fee608becbc
Fixes to compile on old systems without memrchr or string::clear().
Carl Byington <carl@five-ten-sg.com>
parents:
223
diff
changeset
|
107 |
216
784030ac71f1
Never whitelist self addressed mail. Changes for Fedora 10 and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
214
diff
changeset
|
108 * Sat Dec 27 2008 Carl Byington <carl@five-ten-sg.com> - 6.20-1 |
784030ac71f1
Never whitelist self addressed mail. Changes for Fedora 10 and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
214
diff
changeset
|
109 - Never whitelist self addressed mail. |
784030ac71f1
Never whitelist self addressed mail. Changes for Fedora 10 and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
214
diff
changeset
|
110 - Fixes to compile on Fedora 10 and for const correctness. |
784030ac71f1
Never whitelist self addressed mail. Changes for Fedora 10 and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
214
diff
changeset
|
111 |
214
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
112 * Tue Jun 10 2008 Carl Byington <carl@five-ten-sg.com> - 6.19-1 |
216
784030ac71f1
Never whitelist self addressed mail. Changes for Fedora 10 and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
214
diff
changeset
|
113 - Fixes to compile on Fedora 9 and for const correctness. |
214
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
114 |
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
115 * Wed Mar 05 2008 Carl Byington <carl@five-ten-sg.com> - 6.18-1 |
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
116 - Extend auto-whitelisting when receiving mail even if the auto |
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
117 whitelist is specified in a parent context. |
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
118 |
82886d4dd71f
Fixes to compile on Fedora 9 and for const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
119 * Tue Mar 04 2008 Carl Byington <carl@five-ten-sg.com> - 6.17-1 |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
120 - changes for Fedora packaging guidelines |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
121 |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
122 * Thu Aug 30 2007 Carl Byington <carl@five-ten-sg.com> - 6.07 |
169 | 123 - Add generic rdns filtering, fix pre/post scripts |
124 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
125 * Sun Aug 26 2007 Carl Byington <carl@five-ten-sg.com> - 6.04 |
163 | 126 - require spamassassin |
127 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
128 * Sat Jul 07 2007 Carl Byington <carl@five-ten-sg.com> - 6.01 |
153 | 129 - GPL3, auto whitelisting |
130 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
131 * Wed Aug 02 2006 Carl Byington <carl@five-ten-sg.com> - 5.20 |
135 | 132 - http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html help with postun |
133 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
134 * Thu Mar 16 2006 Carl Byington <carl@five-ten-sg.com> - 5.16 |
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
135 - use %{name} in more places |
124 | 136 |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
137 * Fri Mar 10 2006 Carl Byington <carl@five-ten-sg.com> - 5.13 |
117 | 138 - remove redundant entry in files section |
139 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
140 * Sun Dec 18 2005 Carl Byington <carl@five-ten-sg.com> - 5.11 |
112 | 141 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html |
142 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
143 * Tue Jan 03 2005 Carl Byington <carl@five-ten-sg.com> - 4.0 |
94 | 144 - added hosts-ignore conf file |
145 - see RELEASE_NOTES | |
146 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
147 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> - 1.3 |
94 | 148 - patch to rc file no longer needed |
149 - see RELEASE_NOTES | |
150 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
151 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> - 1.2 |
94 | 152 - Fixed some typos |
153 - removed patch into separate file | |
154 - added config migration as suggested by Carl | |
155 - Added reminder to edit sendmail.mc | |
156 | |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
180
diff
changeset
|
157 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> - 1.1 |
94 | 158 - Initial revision of spec file. Need to add a better description, docs and a sendmail.mc message |
159 |