annotate debian/dcc-server.default @ 3:b689077d4918

Ignore old patches
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 14:31:24 +0100
parents f6716cb00029
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
1 # start server with default local ID specified in /etc/dcc/ids
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
2 OPTIONS="-i 32702"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
3
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
4 ########
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
5 # the following is taken from upstream dcc-conf
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
6 ########
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
7
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
8 # set parameters for DCC start and cron scripts
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
9 # from Rhyolite Software DCC 1.2.50-1.40 $Revision: 1.1 $
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
10 DCC_CONF_VERSION=3
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
11
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
12 # don't set DCC_HOMEDIR since if we got here, it must be set
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
13 DCC_LIBEXEC=/usr/lib/dcc
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
14 DCC_RUNDIR=/var/run
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
15
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
16 # DCC user name
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
17 DCCUID=dcc
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
18
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
19
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
20 DCCD_ENABLE=off
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
21 # DCC server-IDs must be globally unique.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
22 SRVR_ID=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
23 # BRAND can be any short alphanumeric string that hints about the identity
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
24 # of the server.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
25 BRAND=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
26 # used to start dccd
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
27 # A value for `dccd -t` computed from DCCM_REJECT_AT is assumed to set
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
28 # default flooding threshold.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
29 DCCD_ARGS=-6
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
30
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
31
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
32 # Client greylist parameters such as 'on' or 'noIP'
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
33 # GREY_CLIENT_ARGS sets the `dccm -G` and `dccifd -G` value
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
34 # and turns on the local greylist dccd server unless GREY_ENABLE=off
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
35 GREY_CLIENT_ARGS=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
36 # turns local greylist server 'on' or 'off', but does not effect dccm, dccifd
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
37 GREY_ENABLE=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
38
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
39 # GREY_SRVR_ID DCC server-IDs must be globally unique, but greylisting dccd
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
40 # servers are usually isolated. If you have more than one greylist server,
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
41 # ensure that they use distinct server-IDs and that they flood each other
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
42 # with entries in /var/dcc/flod
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
43 GREY_SRVR_ID=$SRVR_ID
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
44 # used to start dccd for grey listing; see also GREY_ENABLE
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
45 GREY_DCCD_ARGS=-6
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
46
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
47
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
48 DCCM_ENABLE=on
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
49 # used to start dccm
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
50 # a common value is
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
51 # DCCM_ARGS="-SHELO -Smail_host -SSender -SList-ID"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
52 DCCM_ARGS=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
53 DCCM_LOGDIR=log
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
54 DCCM_WHITECLNT=whiteclnt
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
55 DCCM_USERDIRS=userdirs
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
56 # set DCCM_LOG_AT to a number that determines "bulk mail" for your situation.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
57 # 50 is a typical value.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
58 # Leave DCCM_REJECT_AT blank until you are confident that most sourced of
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
59 # solicited bulk mail have been white-listed. Then set it to the number
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
60 # that defines "bulk mail" for your site. Note that this rejection
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
61 # or "bulk" threshold does not affect the blacklisting effects of the
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
62 # DCCM_WHITECLNT white list file.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
63 # Add '-aIGNORE' to DCCM_ARGS to ignore the bulkiness of mail except to
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
64 # add X-DCC headers.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
65 DCCM_LOG_AT=5
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
66 DCCM_REJECT_AT=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
67 # override basic list of DCC server checksums controlling rejections or logging
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
68 DCCM_CKSUMS=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
69 # additional DCC server checksums worthy of rejections or logging
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
70 DCCM_XTRA_CKSUMS=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
71
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
72
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
73 DCCIFD_ENABLE=off
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
74 # used to start dccifd
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
75 # a common value is
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
76 # DCCIFD_ARGS="-SHELO -Smail_host -SSender -SList-ID"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
77 DCCIFD_ARGS=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
78 DCCIFD_LOGDIR="$DCCM_LOGDIR"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
79 DCCIFD_WHITECLNT="$DCCM_WHITECLNT"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
80 DCCIFD_USERDIRS="$DCCM_USERDIRS"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
81 DCCIFD_LOG_AT="$DCCM_LOG_AT"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
82 DCCIFD_REJECT_AT="$DCCM_REJECT_AT"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
83 # override basic list of checksums controlling rejections or logging
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
84 DCCIFD_CKSUMS="$DCCM_CKSUMS"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
85 # additional DCC server checksums worthy of rejections or logging
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
86 DCCIFD_XTRA_CKSUMS="$DCCM_XTRA_CKSUMS"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
87
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
88 # days to keep files in DCC log directories
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
89 DBCLEAN_LOGDAYS=14
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
90 # used to start dbclean, including -e and -E
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
91 DBCLEAN_ARGS=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
92
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
93
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
94 # optionally set to something like "local5" or "local5.notice" for
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
95 # dccd, dbclean, and dccm
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
96 DCC_INFO_LOG_FACILITY=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
97 DCC_ERROR_LOG_FACILITY=
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
98
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
99
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
100 # ensure that the log facilities include levels and that $DCC_LOGGER
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
101 # has a default.
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
102 if test ! -z "$DCC_INFO_LOG_FACILITY"; then
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
103 if expr "X$DCC_INFO_LOG_FACILITY" : 'X.*\..*' >/dev/null; then
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
104 :
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
105 else
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
106 DCC_INFO_LOG_FACILITY="$DCC_INFO_LOG_FACILITY.notice"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
107 fi
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
108 DCC_LOG_ARGS="$DCC_LOG_ARGS -Linfo,$DCC_INFO_LOG_FACILITY"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
109 fi
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
110 if test -z "$DCC_ERROR_LOG_FACILITY"; then
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
111 # for $DCC_LOGGER
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
112 DCC_ERROR_LOG_FACILITY=mail.err
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
113 else
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
114 if expr "X$DCC_ERROR_LOG_FACILITY" : 'X.*\..*' >/dev/null; then
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
115 :
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
116 else
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
117 DCC_ERROR_LOG_FACILITY="$DCC_ERROR_LOG_FACILITY.err"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
118 fi
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
119 DCC_LOG_ARGS="$DCC_LOG_ARGS -Lerror,$DCC_ERROR_LOG_FACILITY"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
120 fi
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
121 DCC_LOGGER="logger -s -p ${DCC_ERROR_LOG_FACILITY-mail.err} -t DCC"
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
122
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
123
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
124 # do not change the following
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
125 Configure_DCC_LIBEXEC=/usr/lib/dcc
f6716cb00029 Replace buggy stuff in deb dir, never make phone calls while working
Peter Gervai <grin@grin.hu>
parents:
diff changeset
126 Configure_DCC_RUNDIR=/var/run