Mercurial > notdcc
comparison homedir/dcc_conf.in @ 0:c7f6b056b673
First import of vendor version
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 13:49:58 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c7f6b056b673 |
---|---|
1 #! /bin/sh | |
2 | |
3 # set parameters for DCC start, stop, and cron scripts | |
4 | |
5 # This file is parsed by /bin/sh, and so parameters must be appropriately quoted | |
6 # Start your own comment lines with something other than "#" such as "##" | |
7 # so that they will be preserved when installing a new version. | |
8 | |
9 | |
10 # from Rhyolite Software DCC 1.3.103-1.77 $Revision$ | |
11 DCC_CONF_VERSION=4 | |
12 | |
13 # don't set DCC_HOMEDIR since if we got here, it must be set | |
14 DCC_LIBEXEC=@libexecdir@ | |
15 DCC_RUNDIR=@dcc_rundir@ | |
16 | |
17 # DCC user name | |
18 DCCUID=@DCCSUID@ | |
19 | |
20 | |
21 DCCD_ENABLE=off | |
22 # DCC server-IDs must be globally unique. | |
23 SRVR_ID= | |
24 # BRAND can be any short alphanumeric string that suggests the identity | |
25 # of the server. | |
26 BRAND= | |
27 # args used to start dccd such as -6 | |
28 DCCD_ARGS= | |
29 | |
30 | |
31 # GREY_CLIENT_ARGS contains "on", "-GnoIP", etc. to turn on greylisting | |
32 # in the dccm and dccifd DCC clients. | |
33 # Also turns on the local greylist dccd server unless GREY_ENABLE=off | |
34 GREY_CLIENT_ARGS= | |
35 # GREY_ENABLE turns local greylist server 'on' or 'off', | |
36 # but does not effect dccm, dccifd | |
37 GREY_ENABLE= | |
38 | |
39 # GREY_SRVR_ID DCC server-IDs must be globally unique, but greylisting dccd | |
40 # servers are usually isolated. If you have more than one greylist server, | |
41 # ensure that they use distinct server-IDs and that they flood each other | |
42 # with entries in @prefix@/flod | |
43 GREY_SRVR_ID=$SRVR_ID | |
44 # Start dccd for grey listing or set server options such as -Gweak-IP. | |
45 # See also GREY_ENABLE. | |
46 GREY_DCCD_ARGS= | |
47 | |
48 # dccm and dccifd client reputation parameters such as -tREP,20 | |
49 REP_ARGS=-tREP,20 | |
50 | |
51 # DNS blacklist -B parameters for dccifd and dccm | |
52 # For example, this checks SMTP client IP addresses for any value Spamhaus' | |
53 # ZEN. It also looks for for values between 127.0.0.0 and 127.0.0.8 for SMTP | |
54 # envelope sender mail_host or mail_host domain names, URLs in mail message | |
55 # bodies, MX servers, DNS (NS) servers. The second and third references to | |
56 # zen.spamhaus.org are recognized and only one for each IP address is sent to | |
57 # the DNSBL server for each IP address. | |
58 # DNSBL_ARGS="'-Bset:rej-msg=5.7.1 550 %ID %BTYPE http://www.spamhaus.org/query/bl?ip=%BTGT' \ | |
59 # -Bzen.spamhaus.org,127.0.0.0/29 -Bzen.spamhaus.org,127.0.0.8 \ | |
60 # -Bset:no-NS -Bset:no-mail_host -Bset:no-URL -Bzen.spamhaus.org" | |
61 DNSBL_ARGS= | |
62 | |
63 | |
64 DCCM_ENABLE=off | |
65 # | |
66 # used to start dccm | |
67 # a common value is | |
68 # DCCM_ARGS="-SHELO -Smail_host -SSender -SList-ID" | |
69 # Note the use of single quotes in | |
70 # DCCM_ARGS="-SHELO '-r5.7.1 550 mail %s from %s rejected with DCC'" | |
71 DCCM_ARGS="-SHELO -Smail_host -SSender -SList-ID" | |
72 # The log directories should be cleaned with the @libexecdir@/cron-dccd nightly | |
73 # cron job. Set DCCM_LOGDIR to the empty or null string to disable logging. | |
74 DCCM_LOGDIR="log" | |
75 DCCM_WHITECLNT=whiteclnt | |
76 DCCM_USERDIRS=userdirs | |
77 # set DCCM_LOG_AT to a number that determines "bulk mail" for your situation. | |
78 # 50 is a typical value. | |
79 # Leave DCCM_REJECT_AT blank until you are confident that most sources of | |
80 # solicited bulk mail have been whitelisted. Then set it to the number | |
81 # that defines "bulk mail" for your site. This rejection or "bulk" threshold | |
82 # does not affect the blacklisting of the DCCM_WHITECLNT whitelist file. | |
83 # Add '-aIGNORE' to DCCM_ARGS to ignore the bulkiness of mail except to | |
84 # add X-DCC headers. | |
85 DCCM_LOG_AT=5 | |
86 DCCM_REJECT_AT= | |
87 # override basic list of DCC server checksums controlling rejections or logging | |
88 DCCM_CKSUMS= | |
89 # additional DCC server checksums worthy of rejections or logging | |
90 DCCM_XTRA_CKSUMS= | |
91 | |
92 | |
93 DCCIFD_ENABLE=off | |
94 # | |
95 # used to start dccifd | |
96 # a common value is | |
97 # DCCIFD_ARGS="-SHELO -Smail_host -SSender -SList-ID" | |
98 DCCIFD_ARGS="-SHELO -Smail_host -SSender -SList-ID" | |
99 DCCIFD_LOGDIR="$DCCM_LOGDIR" | |
100 DCCIFD_WHITECLNT="$DCCM_WHITECLNT" | |
101 # When both dccm and dccifd are used it may be necessary to set | |
102 # DCCIFD_USERDIRS="$DCCM_USERDIRS/local" | |
103 DCCIFD_USERDIRS="$DCCM_USERDIRS" | |
104 DCCIFD_LOG_AT="$DCCM_LOG_AT" | |
105 DCCIFD_REJECT_AT="$DCCM_REJECT_AT" | |
106 # override basic list of checksums controlling rejections or logging | |
107 DCCIFD_CKSUMS="$DCCM_CKSUMS" | |
108 # additional DCC server checksums worthy of rejections or logging | |
109 DCCIFD_XTRA_CKSUMS="$DCCM_XTRA_CKSUMS" | |
110 | |
111 # days to keep files in DCC log directories | |
112 DBCLEAN_LOGDAYS=14 | |
113 # used to start dbclean, including -e and -E | |
114 DBCLEAN_ARGS= | |
115 | |
116 | |
117 # optionally set to something like "local5" or "local5.notice" for | |
118 # dccd, dbclean, dccifd, and dccm. The defaults are equivalent to | |
119 # DCC_INFO_LOG_FACILITY=MAIL.NOTICE and DCC_ERROR_LOG_FACILITY=MAIL.ERR | |
120 DCC_INFO_LOG_FACILITY= | |
121 DCC_ERROR_LOG_FACILITY= | |
122 | |
123 | |
124 # ensure that the log facilities include levels and that $DCC_LOGGER | |
125 # has a default. | |
126 if test -n "$DCC_INFO_LOG_FACILITY"; then | |
127 if expr "X$DCC_INFO_LOG_FACILITY" : 'X.*\..*' >/dev/null; then | |
128 : | |
129 else | |
130 DCC_INFO_LOG_FACILITY="$DCC_INFO_LOG_FACILITY.notice" | |
131 fi | |
132 DCC_LOG_ARGS="$DCC_LOG_ARGS -Linfo,$DCC_INFO_LOG_FACILITY" | |
133 fi | |
134 if test -z "$DCC_ERROR_LOG_FACILITY"; then | |
135 # for $DCC_LOGGER | |
136 DCC_ERROR_LOG_FACILITY=mail.err | |
137 else | |
138 if expr "X$DCC_ERROR_LOG_FACILITY" : 'X.*\..*' >/dev/null; then | |
139 : | |
140 else | |
141 DCC_ERROR_LOG_FACILITY="$DCC_ERROR_LOG_FACILITY.err" | |
142 fi | |
143 DCC_LOG_ARGS="$DCC_LOG_ARGS -Lerror,$DCC_ERROR_LOG_FACILITY" | |
144 fi | |
145 DCC_LOGGER="@DCC_LOGGER@" | |
146 | |
147 | |
148 # capture ./configure values for make-dcc_conf | |
149 Configure_DCC_LIBEXEC=@libexecdir@ | |
150 Configure_DCC_RUNDIR=@dcc_rundir@ | |
151 Configure_DCCUID=@DCCSUID@ | |
152 Configure_DCC_LOGGER="@DCC_LOGGER@" |