annotate dnsbl.spec.in @ 121:e2506138561b stable-5-13

uribl patch from Jeff Evans <jeffe@tricab.com>
author carl
date Sun, 12 Mar 2006 13:43:23 -0800
parents aa07452e641b
children ea6f9c812faa
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
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
3 Summary: @PACKAGE@ Sendmail Milter
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@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
6 Release: %{?custom_release}%{!?custom_release:1}
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
7 Copyright: GPL
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
8 Group: System Environment/Daemons
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
11 URL: http://www.five-ten-sg.com/@PACKAGE@/
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
12 Vendor: 510 Software Group
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
13 Packager: 510 Software Group
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
14 AutoReqProv: no
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
15
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
16 Requires(pre): /usr/sbin/useradd
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
17 Requires(pre): /usr/bin/getent
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
18 Requires(postun): /usr/sbin/userdel
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
19 Requires(post,preun): /sbin/chkconfig
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
20 Requires(post,preun): /sbin/service
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
21 BuildRequires: sendmail-devel >= 8.12.1
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
22 Requires: sendmail >= 8.12.1
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
23 Requires: sendmail-cf
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
24 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
25
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
26
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
27 %description
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
28 We present here a mechanism whereby the backup mail server can use the correct set of DNSBLs for each recipient for each message. As a side-effect, it gives us the ability to customize the set of DNSBLs on a per-recipient basis, so that fred@example.com could use SPEWS and the SBL, where all other users @example.com use only the SBL.
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
29
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
30 This milter will also decode (base64, mime, html entity, url encodings) and scan for HTTP and HTTPS URLs and bare hostnames in the body of the mail. If any of those host names have A or NS records on the SBL (or a single configurable DNSBL), the mail will be rejected unless previously whitelisted. This milter also counts the number of invalid HTML tags, and can reject mail if that count exceeds your specified limit.
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
31
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
32 The DNSBL milter reads a text configuration file (dnsbl.conf) on startup, and whenever the config file (or any of the referenced include files) is changed. The entire configuration file is case insensitive.
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
33
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
34
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
35 %prep
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
36
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
37
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
38 %setup
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
39
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
40
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
41 %build
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
42 ./configure --prefix=%{_prefix} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
43 --bindir=%{_bindir} --mandir=%{_mandir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
44 --localstatedir=%{localstatedir} --libdir=%{_libdir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
45 --datadir=%{_datadir} --includedir=%{_includedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
46 --sysconfdir=%{_sysconfdir}
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
47 make
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
48
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
49
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
50 %install
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
51 if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
52 echo sorry, you probably do not want me to delete the old buildroot at $RPM_BUILD_ROOT
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
53 exit 1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
54 fi
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
55 rm -rf $RPM_BUILD_ROOT
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
56 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
57 mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
58 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
59 datadir=$RPM_BUILD_ROOT%{_datadir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
60 includedir=$RPM_BUILD_ROOT%{_includedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
61 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
62 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
63 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
64 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/dnsbl/dnsbl $RPM_BUILD_ROOT/etc/rc.d/init.d
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
65 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
66 mkdir -p %{buildroot}/var/run/@PACKAGE@
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 %pre
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
70 /usr/bin/getent passwd dnsbl >/dev/null ||
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
71 useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
72
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
73
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
74 %post
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
75 /sbin/chkconfig --add @PACKAGE@
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
76
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
77 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc:
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
78 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
79 echo
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
80
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
81
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
82 %preun
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
83 /sbin/service @PACKAGE@ stop || :
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
84 /sbin/chkconfig --del @PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
85 userdel @PACKAGE@ || :
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
86
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
87
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
88 %postun
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
89
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
90
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
91 %clean
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
92
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
93 %files
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
94 %defattr(-,root,root)
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
95 %{_sbindir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
96 %doc %{_mandir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
97 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
98 %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
99 %config(noreplace) %{_sysconfdir}/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
100 /etc/rc.d/init.d/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
101 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
102
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
103
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
104 %changelog
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
105 * Fri Mar 10 2006 Carl Byington 5.13
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
106 - remove redundant entry in files section
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
107
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
108 * Sun Dec 18 2005 Carl Byington 5.11
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
109 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
110
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
111 * Tue Jan 03 2005 Carl Byington 4.0
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
112 - added hosts-ignore conf file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
113 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
114
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
115 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> 1.3
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
116 - patch to rc file no longer needed
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
117 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
118
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
119 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> 1.2
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
120 - Fixed some typos
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
121 - removed patch into separate file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
122 - added config migration as suggested by Carl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
123 - Added reminder to edit sendmail.mc
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
124
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
125 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> 1.1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
126 - 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
127