Skip to content
Permalink
Browse files

Explicit default to antivirus/rspamd.conf/replies

  • Loading branch information
stephdl committed Nov 29, 2019
1 parent 54f7847 commit 79243e941d6167fb08b752cc67111cee28edbc9f
@@ -14,13 +14,17 @@ $OUT .= qq(
clamav \{
# If set force this action if any virus is found (default unset: no action is forced, 'rewrite_subject' to tag as spam)
action = "$action";
message = '\$\{SCANNER\}: virus found: "\$\{VIRUS\}"';

# if `true` only messages with non-image attachments will be checked (default true)
scan_mime_parts = $virusAttachment;

# If `max_size` is set, messages > n bytes in size are not scanned
max_size = $scanSize;

# symbol to add (add it to metric if you want non-zero weight)
symbol = "CLAM_VIRUS";

# type of scanner: "clamav", "fprot", "sophos" or "savapi"
type = "clamav";

@@ -41,7 +45,7 @@ clamav \{
# symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
patterns \{
# symbol_name = "pattern";
CLAMAV_VIRUS = "^Eicar-Test-Signature\$";
JUST_EICAR = "^Eicar-Test-Signature\$";
\}

# In version 1.7.0+ patterns could be a list for ordered matching
@@ -36,7 +36,7 @@ classify_headers = [

control_socket = "/var/run/rspamd/control mode=0600";
history_rows = 200;
explicit_modules = ["settings"];
explicit_modules = ["settings","bayes_expiry"];

# Scan messages even if they are not MIME
allow_raw_input = true;
@@ -48,9 +48,16 @@ words_decay = 600;
# Write statistics about rspamd usage to the round-robin database
rrd = "${DBDIR}/rspamd.rrd";

# Write statistics for `rspamc` here
stats_file = "${DBDIR}/stats.ucl";

# Local networks
hs_cache_dir = "$\{DBDIR\}/";

\}
# Timeout for messages processing (must be larger than any internal timeout used)
task_timeout = 8s;

# Emit soft reject when timeout takes place
soft_reject_on_timeout = false;

\}
@@ -18,5 +18,8 @@ worker "rspamd_proxy" \{
# number of worker
count = {$rspamd{MaxProcesses} || '1'};
max_retries = 5;
discard_on_reject = false; # Discard message instead of rejection
quarantine_on_reject = false; # Tell MTA to quarantine rejected messages
spam_header = "X-Spam"; # Use the specific spam header
reject_message = "Spam message rejected"; # Use custom rejection message
\}

@@ -0,0 +1,8 @@
#
# This file will be overwritten by the next rpm update
# use /etc/rspamd/override.d/file.conf' - to override the defaults
#

servers = "/var/run/redis-rspamd/rspamd";
backend = "redis";
expire = 8640000;
@@ -8,3 +8,7 @@
# Redis servers to use
servers = /var/run/redis-rspamd/rspamd;

# This setting is non-default & may be desirable
# the symbol REPLY gets -5 score, but you can
# accept replied email, uncomment below
# action = "no action";

0 comments on commit 79243e9

Please sign in to comment.
You can’t perform that action at this time.