annotate dnsbl.spec.in @ 208:ec5cb59a7368

more changes to properly package html files
author Carl Byington <carl@five-ten-sg.com>
date Wed, 05 Mar 2008 00:17:46 -0800
parents 2d8690ba9693
children 0fc1899391b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
1 %define localstatedir /var/lib
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
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
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
4 Name: @PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
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
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
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}/
205
ed8290aee9d4 revert to disable AutoReqProv, possible broken filtering of GLIBC_PRIVATE on centos4
Carl Byington <carl@five-ten-sg.com>
parents: 204
diff changeset
12 AutoReqProv: no
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
13
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
14 Requires(pre): /usr/sbin/useradd
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
15 Requires(pre): /usr/bin/getent
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
16 Requires(postun): /usr/sbin/userdel
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
17 Requires(post,preun): /sbin/chkconfig
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
18 Requires(post,preun): /sbin/service
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
19 BuildRequires: sendmail-devel >= 8.12.1
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
20 Requires: sendmail >= 8.12.1
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
21 Requires: sendmail-cf
163
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
22 Requires: spamassassin
205
ed8290aee9d4 revert to disable AutoReqProv, possible broken filtering of GLIBC_PRIVATE on centos4
Carl Byington <carl@five-ten-sg.com>
parents: 204
diff changeset
23 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
24
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
25 %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
26 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
27 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
28 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
29 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
30 the SBL, where all other users @example.com use only the SBL.
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
31
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
32 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
33 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
34 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
35 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
36 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
37 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
38 specified limit.
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
39
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
40 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
41 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
42 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
43 insensitive.
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
44
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
45
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
46 %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
47 %setup -q
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
48
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
49 %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
50 %configure
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
51 make %{?_smp_mflags}
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
52
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
53 %install
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
54 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
55 make DESTDIR=$RPM_BUILD_ROOT install
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
56 mkdir -p $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%{_datadir}/doc/%{name}-%{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
58 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
59 mv -f AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
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
60 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
61 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
62 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/.spamassassin
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
63
169
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
64
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
65 %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
66 /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
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
67
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
68
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
69 %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
70 /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
71 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc:
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
72 echo "INPUT_MAIL_FILTER(\`dnsbl', \`S=local:/var/run/dnsbl/dnsbl.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')"
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
73 echo
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
74
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
75
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
76 %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
77 [ $1 = 0 ] && /sbin/service %{name} stop || :
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
78
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
79
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
80 %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
81 [ $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
82 [ $1 = 0 ] && userdel %{name} || :
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
83
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
84
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
85 %clean
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
86
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
87 %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
88 %defattr(-,root,root,-)
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
89 %{_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
90 %{_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
91 %{_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
92 %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
93 %{_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
94 %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
95 /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
96 %dir %attr(0750,%{name},root) /var/run/%{name}
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
97
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
98
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
99 %changelog
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
100 * Tue Mar 04 2008 Carl Byington <carl@five-ten-sg.com> - 6.17
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
101 - 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
102
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
103 * Thu Aug 30 2007 Carl Byington <carl@five-ten-sg.com> - 6.07
169
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
104 - Add generic rdns filtering, fix pre/post scripts
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
105
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
106 * Sun Aug 26 2007 Carl Byington <carl@five-ten-sg.com> - 6.04
163
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
107 - require spamassassin
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
108
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
109 * Sat Jul 07 2007 Carl Byington <carl@five-ten-sg.com> - 6.01
153
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
110 - GPL3, auto whitelisting
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
111
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
112 * Wed Aug 02 2006 Carl Byington <carl@five-ten-sg.com> - 5.20
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
113 - http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html help with postun
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
114
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
115 * 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
116 - use %{name} in more places
124
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
117
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
118 * Fri Mar 10 2006 Carl Byington <carl@five-ten-sg.com> - 5.13
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
119 - remove redundant entry in files section
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
120
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
121 * Sun Dec 18 2005 Carl Byington <carl@five-ten-sg.com> - 5.11
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
122 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
123
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
124 * Tue Jan 03 2005 Carl Byington <carl@five-ten-sg.com> - 4.0
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
125 - added hosts-ignore conf file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
126 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
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 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> - 1.3
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
129 - patch to rc file no longer needed
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
130 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
131
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
132 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> - 1.2
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
133 - Fixed some typos
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
134 - removed patch into separate file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
135 - added config migration as suggested by Carl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
136 - Added reminder to edit sendmail.mc
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
137
203
92a5c866bdfa Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents: 180
diff changeset
138 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> - 1.1
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
139 - Initial revision of spec file. Need to add a better description, docs and a sendmail.mc message
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
140