1 Summary: Distributed Checksum Clearinghouse, anti-spam tool
2 Summary(pl): Narzêdzie anty-spamowe bazuj±ce na sumach kontrolnych (DCC)
8 Source0: http://www.dcc-servers.net/dcc/source/%{name}-%{version}.tar.Z
9 URL: http://www.dcc-servers.net/
10 Prereq: /sbin/chkconfig
11 Prereq: /usr/sbin/useradd
12 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Distributed Checksum Clearinghouse or DCC is a cooperative,
16 distributed system intended to detect "bulk" mail or mail sent to many
17 people. It allows individuals receiving a single mail message to
18 determine that many other people have been sent essentially identical
19 copies of the message and so reject the message. It can identify some
20 unsolicited bulk mail using "spam traps" and other detectors, but that
23 The DCC can be viewed as a tool for end users to enforce their right
24 to "opt-in" to streams of bulk mail by refusing all bulk mail except
25 from sources in a "white list." White lists are generally the
26 responsibility of DCC clients, since only they know which bulk mail
29 NB to use DCC to reject SPAM you need to configure /var/dcc/dcc_conf
30 and either use procmail or sendmail to feed the messages to DCC
33 Summary: cgi-scripts for managing mail delivery on a DCC enabled server
34 Group: Networking/Mail
36 Requires: %{name} >= 1.1.2
39 Example set of cgi-scripts to allow users to point-and-click manage
40 their own DCC whitelists and thus what is delivered to them. Allows
41 overriding of site level lists. The scripts give controlled access to
42 the whitelists which are otherwise in protected directory space (owned
45 NB these scripts need configured after installation
53 --with-cgibin=/home/httpd/html/cgi-bin \
54 --with-rundir=%{_var}/run \
59 rm -rf $RPM_BUILD_ROOT
66 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
67 BINDIR=$RPM_BUILD_ROOT%{_bindir}
70 DCC_PROTO_HOMEDIR=$RPM_BUILD%{_var}/lib/dcc
71 DCC_CGIBINDIR=$RPM_BUILD_ROOT/var/dcc/cgi-bin export DCC_CGIBINDIR
72 DCC_SUID=$BINOWN DCC_OWN=$BINOWN DCC_GRP=$BINGRP export DCC_SUID DCC_OWN DCC_GRP
73 install -d $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/feature $DCC_CGIBINDIR
74 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{init.d,cron.daily} $RPM_BUILD_ROOT/{var/{run/dcc,dcc/{log,userdirs/{local,esmtp,cyrus,procmail}}},usr/bin}
76 cp misc/dcc.m4 misc/dccdnsbl.m4 $RPM_BUILD_ROOT/usr/share/sendmail-cf/feature
77 mv $RPM_BUILD_ROOT/usr/sbin/cron-dccd $RPM_BUILD_ROOT/etc/cron.daily/dccd
79 # There already is a logger program which takes the required arguments on Linux
81 rm -f $RPM_BUILD_ROOT/usr/sbin/logger
83 # We are putting these in the docs directory
84 rm -f $RPM_BUILD_ROOT/usr/sbin/hackmc
85 rm -f $RPM_BUILD_ROOT/usr/sbin/na-spam
86 rm -f $RPM_BUILD_ROOT/usr/sbin/ng-spam
88 mv $RPM_BUILD_ROOT/usr/sbin/rcDCC $RPM_BUILD_ROOT/etc/init.d/dccd
89 chmod 755 $RPM_BUILD_ROOT/etc/init.d/dccd
91 # Set some initial logging, but no rejections
92 perl -p -i -e "s/BRAND=\$/BRAND=RPMDEFAULT/ ; s/DCCM_LOG_AT=\$/\$&10/ ; " \
93 $RPM_BUILD_ROOT/var/dcc/dcc_conf
96 cat > $RPM_BUILD_ROOT/var/dcc/flod <<EOF
97 # hostname,port rem-id [passwd-id] [out-opts] [in-opts]
100 # nonesuch.example.com,- 32767 100
104 rm -rf $RPM_BUILD_ROOT
107 /usr/sbin/useradd -d /var/dcc -r dcc >/dev/null 2>&1 || :
111 /usr/sbin/userdel -r dcc > /dev/null 2>&1 || :
115 /sbin/chkconfig --add dccd || :
116 /sbin/chkconfig --level 016 dccd off || :
117 /usr/bin/cdcc info > /var/lib/dcc/map.txt || :
120 echo The scripts need configured and added into your web configuration.
121 echo see /var/dcc/cgi-bin/README
127 # This is remove rather than update
129 /sbin/chkconfig --del dccd || :
130 /etc/init.d/dccd stop || :
134 %defattr(644,root,root,755)
138 %dir /var/dcc/userdirs/local
139 %dir /var/dcc/userdirs/cyrus
140 %dir /var/dcc/userdirs/procmail
141 %dir /var/dcc/userdirs/esmtp
143 %doc CHANGES FAQ.html FAQ.txt INSTALL.html INSTALL.txt LICENSE cdcc.html dbclean.html dblist.html dccd.html dcc.html dccm.html dccproc.html dccsight.html homedir/flod homedir/ids homedir/map.txt homedir/README misc/dcc.m4 misc/dccdnsbl.m4 misc/hackmc misc/na-spam misc/ng-spam
144 %config(noreplace) /var/dcc/dcc_conf
145 %config(noreplace) /var/dcc/whiteclnt
146 %config(noreplace) /var/dcc/whitecommon
147 %config(noreplace) /var/dcc/whitelist
148 %config(noreplace) /var/dcc/ids
149 %config(noreplace) /var/dcc/flod
150 %config(noreplace) /var/dcc/dcc_db
151 %config(noreplace) /var/dcc/dcc_db.hash
152 %config(noreplace) /var/dcc/map
154 %{_sysconfdir}/init.d/dccd
156 %attr(755,root,root) %{_bindir}/cdcc
157 %attr(755,root,root) %{_bindir}/dccproc
158 %attr(755,root,root) %{_sbindir}/dbclean
159 %attr(755,root,root) %{_sbindir}/dblist
160 %attr(755,root,root) %{_sbindir}/dccd
161 %attr(755,root,root) %{_sbindir}/dccm
162 %attr(755,root,root) %{_sbindir}/dccsight
163 %attr(755,root,root) %{_sbindir}/refeed
164 %attr(755,root,root) %{_sbindir}/start-dccd
165 %attr(755,root,root) %{_sbindir}/start-dccm
166 %attr(755,root,root) %{_sbindir}/stop-dccd
167 %attr(755,root,root) %{_sbindir}/wlist
168 %{_datadir}/sendmail-cf/feature/dcc.m4
169 %{_datadir}/sendmail-cf/feature/dccdnsbl.m4
174 %defattr(644,root,root,755)
175 %dir /var/dcc/cgi-bin
176 /var/dcc/cgi-bin/chgpasswd
177 /var/dcc/cgi-bin/common
178 /var/dcc/cgi-bin/edit-whiteclnt
179 /var/dcc/cgi-bin/http2https
180 /var/dcc/cgi-bin/list-log
181 /var/dcc/cgi-bin/list-msg
182 /var/dcc/cgi-bin/README
183 /var/dcc/cgi-bin/webuser-notify