~ubuntu-branches/ubuntu/natty/amavisd-new/natty

« back to all changes in this revision

Viewing changes to debian/etc/conf.d/20-debian_defaults

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2007-02-24 19:27:53 UTC
  • mfrom: (3.1.7 feisty)
  • Revision ID: james.westby@ubuntu.com-20070224192753-fvvima53q1jrp34x
Tags: 1:2.4.2-6.1
* Non-maintainer upload to fix pending l10n issues.
* Debconf translations
  - Remove extra debian/po/de.po~
  - Convert all translation files to UTF-8
  - Russian. Closes: #405243
  - Spanish. Closes: #408734
  - Italian. Closes: #409831
* Add very simple LSB headers to init scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use strict;
 
2
 
 
3
# ADMINSTRATORS:
 
4
# Debian suggests that any changes you need to do that should never
 
5
# be "updated" by the Debian package should be made in another file,
 
6
# overriding the settings in this file.
 
7
#
 
8
# The package will *not* overwrite your settings, but by keeping
 
9
# them separate, you will make the task of merging changes on these
 
10
# configuration files much simpler...
 
11
 
 
12
#   see /usr/share/doc/amavisd-new/examples/amavisd.conf-default for
 
13
#       a list of all variables with their defaults;
 
14
#   see /usr/share/doc/amavisd-new/examples/amavisd.conf-sample for
 
15
#       a traditional-style commented file  
 
16
#   [note: the above files were not converted to Debian settings!]
 
17
#
 
18
#   for more details see documentation in /usr/share/doc/amavisd-new
 
19
#   and at http://www.ijs.si/software/amavisd/amavisd-new-docs.html
 
20
 
 
21
$QUARANTINEDIR = "$MYHOME/virusmails";
 
22
 
 
23
$log_recip_templ = undef;    # disable by-recipient level-0 log entries
 
24
$DO_SYSLOG = 1;              # log via syslogd (preferred)
 
25
$syslog_ident = 'amavis';    # syslog ident tag, prepended to all messages
 
26
$syslog_facility = 'mail';
 
27
$syslog_priority = 'debug';  # switch to info to drop debug output, etc
 
28
 
 
29
$enable_db = 1;              # enable use of BerkeleyDB/libdb (SNMP and nanny)
 
30
$enable_global_cache = 1;    # enable use of libdb-based cache if $enable_db=1
 
31
 
 
32
$inet_socket_port = 10024;   # default listenting socket
 
33
 
 
34
$sa_spam_subject_tag = '***SPAM*** ';
 
35
$sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
 
36
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
 
37
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
 
38
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
 
39
 
 
40
$sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is larger
 
41
$sa_local_tests_only = 0;    # only tests which do not require internet access?
 
42
 
 
43
# Quota limits to avoid bombs (like 42.zip)
 
44
 
 
45
$MAXLEVELS = 14;
 
46
$MAXFILES = 1500;
 
47
$MIN_EXPANSION_QUOTA =      100*1024;  # bytes
 
48
$MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes
 
49
 
 
50
# You should:
 
51
#   Use D_DISCARD to discard data (viruses)
 
52
#   Use D_BOUNCE to generate local bounces by amavisd-new
 
53
#   Use D_REJECT to generate local or remote bounces by the calling MTA
 
54
#   Use D_PASS to deliver the message
 
55
#
 
56
# Whatever you do, *NEVER* use D_REJECT if you have other MTAs *forwarding*
 
57
# mail to your account.  Use D_BOUNCE instead, otherwise you are delegating
 
58
# the bounce work to your friendly forwarders, which might not like it at all.
 
59
#
 
60
# On dual-MTA setups, one can often D_REJECT, as this just makes your own
 
61
# MTA generate the bounce message.  Test it first.
 
62
#
 
63
# Bouncing viruses is stupid, always discard them after you are sure the AV
 
64
# is working correctly.  Bouncing real SPAM is also useless, if you cannot
 
65
# D_REJECT it (and don't D_REJECT mail coming from your forwarders!).
 
66
 
 
67
$final_virus_destiny      = D_DISCARD;  # (data not lost, see virus quarantine)
 
68
$final_banned_destiny     = D_BOUNCE;   # D_REJECT when front-end MTA
 
69
$final_spam_destiny       = D_BOUNCE;
 
70
$final_bad_header_destiny = D_PASS;     # False-positive prone (for spam)
 
71
 
 
72
$virus_admin = "postmaster\@$mydomain"; # due to D_DISCARD default
 
73
 
 
74
# Leave empty (undef) to add no header
 
75
$X_HEADER_LINE = "Debian $myproduct_name at $mydomain";
 
76
 
 
77
# REMAINING IMPORTANT VARIABLES ARE LISTED HERE BECAUSE OF LONGER ASSIGNMENTS
 
78
 
 
79
#
 
80
# DO NOT SEND VIRUS NOTIFICATIONS TO OUTSIDE OF YOUR DOMAIN. EVER.
 
81
#
 
82
# These days, almost all viruses fake the envelope sender and mail headers.
 
83
# Therefore, "virus notifications" became nothing but undesired, aggravating
 
84
# SPAM.  This holds true even inside one's domain.  We disable them all by
 
85
# default, except for the EICAR test pattern.
 
86
#
 
87
 
 
88
@viruses_that_fake_sender_maps = (new_RE(
 
89
  [qr'\bEICAR\b'i => 0],            # av test pattern name
 
90
  [qr/.*/ => 1],  # true for everything else
 
91
));
 
92
 
 
93
@keep_decoded_original_maps = (new_RE(
 
94
# qr'^MAIL$',   # retain full original message for virus checking (can be slow)
 
95
  qr'^MAIL-UNDECIPHERABLE$', # recheck full mail if it contains undecipherables
 
96
  qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
 
97
# qr'^Zip archive data',     # don't trust Archive::Zip
 
98
));
 
99
 
 
100
 
 
101
# for $banned_namepath_re, a new-style of banned table, see amavisd.conf-sample
 
102
 
 
103
$banned_filename_re = new_RE(
 
104
# qr'^UNDECIPHERABLE$',  # is or contains any undecipherable components
 
105
 
 
106
  # block certain double extensions anywhere in the base name
 
107
  qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
 
108
 
 
109
  qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Windows Class ID CLSID, strict
 
110
 
 
111
  qr'^application/x-msdownload$'i,                  # block these MIME types
 
112
  qr'^application/x-msdos-program$'i,
 
113
  qr'^application/hta$'i,
 
114
 
 
115
# qr'^application/x-msmetafile$'i,      # Windows Metafile MIME type
 
116
# qr'^\.wmf$',                          # Windows Metafile file(1) type
 
117
 
 
118
# qr'^message/partial$'i, qr'^message/external-body$'i, # rfc2046 MIME types
 
119
 
 
120
# [ qr'^\.(Z|gz|bz2)$'           => 0 ],  # allow any in Unix-compressed
 
121
# [ qr'^\.(rpm|cpio|tar)$'       => 0 ],  # allow any in Unix-type archives
 
122
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ],  # allow any within such archives
 
123
 
 
124
  qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i, # banned extension - basic
 
125
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
 
126
#        inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|
 
127
#        ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|
 
128
#        wmf|wsc|wsf|wsh)$'ix,  # banned ext - long
 
129
 
 
130
# qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i,  # banned extension - WinZip vulnerab.
 
131
 
 
132
  qr'^\.(exe-ms)$',                       # banned file(1) types
 
133
# qr'^\.(exe|lha|tnef|cab|dll)$',         # banned file(1) types
 
134
);
 
135
# See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262631
 
136
# and http://www.cknow.com/vtutor/vtextensions.htm
 
137
 
 
138
 
 
139
# ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING
 
140
 
 
141
@score_sender_maps = ({ # a by-recipient hash lookup table,
 
142
                        # results from all matching recipient tables are summed
 
143
 
 
144
# ## per-recipient personal tables  (NOTE: positive: black, negative: white)
 
145
# 'user1@example.com'  => [{'bla-mobile.press@example.com' => 10.0}],
 
146
# 'user3@example.com'  => [{'.ebay.com'                 => -3.0}],
 
147
# 'user4@example.com'  => [{'cleargreen@cleargreen.com' => -7.0,
 
148
#                           '.cleargreen.com'           => -5.0}],
 
149
 
 
150
  ## site-wide opinions about senders (the '.' matches any recipient)
 
151
  '.' => [  # the _first_ matching sender determines the score boost
 
152
 
 
153
   new_RE(  # regexp-type lookup table, just happens to be all soft-blacklist
 
154
    [qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i         => 5.0],
 
155
    [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],
 
156
    [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],
 
157
    [qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i   => 5.0],
 
158
    [qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i  => 5.0],
 
159
    [qr'^(your_friend|greatoffers)@'i                                => 5.0],
 
160
    [qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i                    => 5.0],
 
161
   ),
 
162
 
 
163
#  read_hash("/var/amavis/sender_scores_sitewide"),
 
164
 
 
165
   { # a hash-type lookup table (associative array)
 
166
     'nobody@cert.org'                        => -3.0,
 
167
     'cert-advisory@us-cert.gov'              => -3.0,
 
168
     'owner-alert@iss.net'                    => -3.0,
 
169
     'slashdot@slashdot.org'                  => -3.0,
 
170
     'securityfocus.com'                      => -3.0,
 
171
     'ntbugtraq@listserv.ntbugtraq.com'       => -3.0,
 
172
     'security-alerts@linuxsecurity.com'      => -3.0,
 
173
     'mailman-announce-admin@python.org'      => -3.0,
 
174
     'amavis-user-admin@lists.sourceforge.net'=> -3.0,
 
175
     'amavis-user-bounces@lists.sourceforge.net' => -3.0,
 
176
     'spamassassin.apache.org'                => -3.0,
 
177
     'notification-return@lists.sophos.com'   => -3.0,
 
178
     'owner-postfix-users@postfix.org'        => -3.0,
 
179
     'owner-postfix-announce@postfix.org'     => -3.0,
 
180
     'owner-sendmail-announce@lists.sendmail.org'   => -3.0,
 
181
     'sendmail-announce-request@lists.sendmail.org' => -3.0,
 
182
     'donotreply@sendmail.org'                => -3.0,
 
183
     'ca+envelope@sendmail.org'               => -3.0,
 
184
     'noreply@freshmeat.net'                  => -3.0,
 
185
     'owner-technews@postel.acm.org'          => -3.0,
 
186
     'ietf-123-owner@loki.ietf.org'           => -3.0,
 
187
     'cvs-commits-list-admin@gnome.org'       => -3.0,
 
188
     'rt-users-admin@lists.fsck.com'          => -3.0,
 
189
     'clp-request@comp.nus.edu.sg'            => -3.0,
 
190
     'surveys-errors@lists.nua.ie'            => -3.0,
 
191
     'emailnews@genomeweb.com'                => -5.0,
 
192
     'yahoo-dev-null@yahoo-inc.com'           => -3.0,
 
193
     'returns.groups.yahoo.com'               => -3.0,
 
194
     'clusternews@linuxnetworx.com'           => -3.0,
 
195
     lc('lvs-users-admin@LinuxVirtualServer.org')    => -3.0,
 
196
     lc('owner-textbreakingnews@CNNIMAIL12.CNN.COM') => -5.0,
 
197
 
 
198
     # soft-blacklisting (positive score)
 
199
     'sender@example.net'                     =>  3.0,
 
200
     '.example.net'                           =>  1.0,
 
201
 
 
202
   },
 
203
  ],  # end of site-wide tables
 
204
});
 
205
 
 
206
1;  # insure a defined return