annotate dnsbl.spec.in @ 165:bf828f785407 stable-6-0-5

fix unitialized variable
author carl
date Sun, 26 Aug 2007 20:54:58 -0700
parents 5809bcdc325b
children 44021d570958
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}
152
c7fc218686f5 gpl3, block mail to recipients that cannot reply
carl
parents: 135
diff changeset
7 License: GPL
112
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
163
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
24 Requires: spamassassin
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
25 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
26
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
27
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
28 %description
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
29 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
30
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
31 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
32
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
33 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
34
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
35
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
36 %prep
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
37
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
38
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
39 %setup
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
40
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
41
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
42 %build
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
43 ./configure --prefix=%{_prefix} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
44 --bindir=%{_bindir} --mandir=%{_mandir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
45 --localstatedir=%{localstatedir} --libdir=%{_libdir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
46 --datadir=%{_datadir} --includedir=%{_includedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
47 --sysconfdir=%{_sysconfdir}
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
48 make
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
49
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
50
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
51 %install
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
52 if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
53 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
54 exit 1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
55 fi
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
56 rm -rf $RPM_BUILD_ROOT
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
57 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
58 mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
59 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
60 datadir=$RPM_BUILD_ROOT%{_datadir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
61 includedir=$RPM_BUILD_ROOT%{_includedir} \
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
62 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
63 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
64 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
65 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
66 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
67 mkdir -p %{buildroot}/var/run/@PACKAGE@
155
a76a6af7ed8b add auto whitelisting
carl
parents: 153
diff changeset
68 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/autowhite
164
5809bcdc325b spamassassin changes
carl
parents: 163
diff changeset
69 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/@PACKAGE@/.spamassassin
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
70
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
71 %pre
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
152
c7fc218686f5 gpl3, block mail to recipients that cannot reply
carl
parents: 135
diff changeset
75 /usr/bin/getent passwd @PACKAGE@ >/dev/null || useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@ >/dev/null
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
76 /sbin/chkconfig --add @PACKAGE@
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
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
85
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
86 %postun
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
87 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
88 [ $1 = 0 ] && userdel @PACKAGE@ || :
94
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@
153
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
102 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/autowhite
164
5809bcdc325b spamassassin changes
carl
parents: 163
diff changeset
103 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/.spamassassin
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
104
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
105
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
106 %changelog
163
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
107 * Sun Aug 26 2007 Carl Byington 6.04
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
108 - require spamassassin
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
109
153
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
110 * Sat Jul 07 2007 Carl Byington 6.01
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
111 - GPL3, auto whitelisting
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
112
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
113 * Wed Aug 02 2006 Carl Byington 5.20
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
114 - http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html help with postun
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
115
124
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
116 * Thu Mar 16 2006 Carl Byington 5.16
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
117 - use @PACKAGE@ in more places
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
118
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
119 * Fri Mar 10 2006 Carl Byington 5.13
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
120 - remove redundant entry in files section
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
121
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
122 * Sun Dec 18 2005 Carl Byington 5.11
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
123 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
124
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
125 * Tue Jan 03 2005 Carl Byington 4.0
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
126 - added hosts-ignore conf file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
127 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
128
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
129 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> 1.3
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
130 - patch to rc file no longer needed
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
131 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
132
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
133 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> 1.2
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
134 - Fixed some typos
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
135 - removed patch into separate file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
136 - added config migration as suggested by Carl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
137 - Added reminder to edit sendmail.mc
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
138
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
139 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> 1.1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
140 - 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
141