Ajout : dovecot-antispam + amavis + crm114.
[lhc/ateliers.git] / etc / amavis / 50-user
diff --git a/etc/amavis/50-user b/etc/amavis/50-user
new file mode 100644 (file)
index 0000000..dda0048
--- /dev/null
@@ -0,0 +1,51 @@
+use strict;
+
+## GENERAL
+@local_domains_acl =
+ ( ".heureux-cyclage.org"
+ , ".cyclocoop.org"
+ );
+$max_servers = 2;
+
+## LOGGING AND DEBUGGING
+$log_level = 1;
+# $logfile = undef;
+$do_syslog = 1;
+$syslog_ident = 'amavis';
+$syslog_facility = 'mail';
+# $logline_maxlen = 980;
+
+# $log_short_templ   ... built-in default at the end of file amavisd
+# $log_verbose_templ ... built-in default at the end of file amavisd
+# $log_recip_templ = ... built-in default at the end of file amavisd
+# $log_templ = $log_short_templ;
+
+## MTA INTERFACE - INPUT
+$protocol = 'LMTP';
+@inet_acl = qw( 127.0.0.1 );
+$inet_socket_port = 10024;
+
+## MTA INTERFACE - OUTPUT
+$notify_method  = 'smtp:[127.0.0.1]:10025';
+$forward_method = 'smtp:[127.0.0.1]:10025';
+
+## MODIFICATIONS TO PASSED MAIL
+#$prefer_our_added_header_fields{lc('X-CRM114-CacheID')} = 0;
+#$allowed_added_header_fields{lc('X-CRM114-CacheID')} = 1;
+
+## ANTI-Spam CONTROLS
+$sa_mail_body_size_limit = 400*1024;
+$sa_local_tests_only = 1;
+# $sa_spawned = 0;
+# $dspam = undef;
+# $sa_timeout = 30;
+
+$sa_tag_level_deflt  = -999;          # add spam info headers if at, or above that level
+$sa_tag2_level_deflt = 6.2;           # add 'spam detected' headers at that level
+#$sa_tag3_level_deflt = undef;
+$sa_kill_level_deflt = 6.9;           # triggers spam evasive actions (e.g. blocks mail)
+$sa_dsn_cutoff_level = 10;            # spam level beyond which a DSN is not sent
+# $sa_quarantine_cutoff_level = 25;   # spam level beyond which quarantine is off
+
+#------------ Do not modify anything below this line -------------
+1;  # ensure a defined return