annotate dnsbl.spec.in @ 151:0e8ec3c483ce stable-5-29

limit dns resolver timeouts and retry interval
author carl
date Tue, 27 Mar 2007 15:24:43 -0700
parents 8e813497582e
children c7fc218686f5
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@
124
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
64 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/@PACKAGE@ $RPM_BUILD_ROOT/etc/rc.d/init.d
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
65 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
112
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
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
70
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
71
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
72 %post
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
73 /usr/bin/getent passwd @PACKAGE@ >/dev/null || useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
74 /sbin/chkconfig --add @PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
75 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
76 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
77 echo
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
78
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
79
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
80 %preun
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
81 /sbin/service @PACKAGE@ stop || :
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
82
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
83
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
84 %postun
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
85 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
86 [ $1 = 0 ] && userdel @PACKAGE@ || :
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
87
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
88
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
89 %clean
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
90
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
91 %files
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
92 %defattr(-,root,root)
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
93 %{_sbindir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
94 %doc %{_mandir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
95 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
96 %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
97 %config(noreplace) %{_sysconfdir}/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
98 /etc/rc.d/init.d/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
99 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
100
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
101
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
102 %changelog
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
103 * Wed Aug 02 2006 Carl Byington 5.20
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
104 - http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html help with postun
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
105
124
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
106 * Thu Mar 16 2006 Carl Byington 5.16
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
107 - use @PACKAGE@ in more places
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
108
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
109 * Fri Mar 10 2006 Carl Byington 5.13
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
110 - remove redundant entry in files section
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
111
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
112 * Sun Dec 18 2005 Carl Byington 5.11
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
113 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
114
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
115 * Tue Jan 03 2005 Carl Byington 4.0
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
116 - added hosts-ignore conf file
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 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> 1.3
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
120 - patch to rc file no longer needed
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
121 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
122
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
123 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> 1.2
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
124 - Fixed some typos
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
125 - removed patch into separate file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
126 - added config migration as suggested by Carl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
127 - Added reminder to edit sendmail.mc
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
128
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
129 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> 1.1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
130 - 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
131