annotate dnsbl.spec.in @ 180:7a722f482bfb

embedded dcc filtering
author carl
date Sat, 06 Oct 2007 12:17:02 -0700
parents da0c41b9f672
children 92a5c866bdfa
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
180
7a722f482bfb embedded dcc filtering
carl
parents: 174
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 LOCAL and the SBL, where all other users @example.com use only the SBL.
94
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
169
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
71
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
72 %pre
174
da0c41b9f672 don't whitelist addresses with embedded spaces
carl
parents: 169
diff changeset
73 /usr/bin/getent passwd @PACKAGE@ >/dev/null || /usr/sbin/useradd -r -d %{_sysconfdir}/@PACKAGE@ -M -c "@PACKAGE@ pseudo-user" -s /sbin/nologin @PACKAGE@ >/dev/null
94
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 %post
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
77 /sbin/chkconfig --add @PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
78 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
79 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
80 echo
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
81
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
82
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
83 %preun
169
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
84 [ $1 = 0 ] && /sbin/service @PACKAGE@ stop || :
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
85
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
86
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
87 %postun
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
88 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
89 [ $1 = 0 ] && userdel @PACKAGE@ || :
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
90
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
91
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
92 %clean
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
93
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
94 %files
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
95 %defattr(-,root,root)
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
96 %{_sbindir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
97 %doc %{_mandir}/*
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
98 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
99 %{_datadir}/doc/@PACKAGE@-@VERSION@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
100 %config(noreplace) %{_sysconfdir}/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
101 /etc/rc.d/init.d/@PACKAGE@
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
102 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@
153
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
103 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/autowhite
164
5809bcdc325b spamassassin changes
carl
parents: 163
diff changeset
104 %dir %attr(0750,@PACKAGE@,root) %{_sysconfdir}/@PACKAGE@/.spamassassin
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
105
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
106
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
107 %changelog
169
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
108 * Thu Aug 30 2007 Carl Byington 6.07
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
109 - Add generic rdns filtering, fix pre/post scripts
44021d570958 fix pre/post scripts in rpm spec file
carl
parents: 164
diff changeset
110
163
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
111 * Sun Aug 26 2007 Carl Byington 6.04
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
112 - require spamassassin
97d7da45fe2a spamassassin changes
carl
parents: 155
diff changeset
113
153
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
114 * Sat Jul 07 2007 Carl Byington 6.01
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
115 - GPL3, auto whitelisting
8d7c439bb6fa add auto whitelisting
carl
parents: 152
diff changeset
116
135
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
117 * Wed Aug 02 2006 Carl Byington 5.20
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
118 - http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html help with postun
8e813497582e fix rpm scripts
carl
parents: 133
diff changeset
119
124
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
120 * Thu Mar 16 2006 Carl Byington 5.16
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
121 - use @PACKAGE@ in more places
ea6f9c812faa put hostname in smtp message for uribl style lookups
carl
parents: 117
diff changeset
122
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
123 * Fri Mar 10 2006 Carl Byington 5.13
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
124 - remove redundant entry in files section
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
125
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
126 * Sun Dec 18 2005 Carl Byington 5.11
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
127 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 102
diff changeset
128
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 113
diff changeset
129 * Tue Jan 03 2005 Carl Byington 4.0
94
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
130 - added hosts-ignore conf file
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 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> 1.3
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
134 - patch to rc file no longer needed
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
135 - see RELEASE_NOTES
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
136
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
137 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> 1.2
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
138 - Fixed some typos
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
139 - removed patch into separate file
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
140 - added config migration as suggested by Carl
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
141 - Added reminder to edit sendmail.mc
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
142
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
143 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> 1.1
e107ade3b1c0 fix dos line terminators
carl
parents: 92
diff changeset
144 - 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
145