commit 5cf3b2a: [Minor] Fix tabulation

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jun 1 21:00:13 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-01 21:57:42 +0100
URL: https://github.com/rspamd/rspamd/commit/5cf3b2a834524a012019659793cccbd1cd789f3b (HEAD -> master)

[Minor] Fix tabulation

---
 conf/modules.d/chartable.conf         |  10 +-
 conf/modules.d/dkim.conf              |  16 +-
 conf/modules.d/dmarc.conf             |   6 +-
 conf/modules.d/emails.conf            |  62 +++----
 conf/modules.d/forged_recipients.conf |  10 +-
 conf/modules.d/fuzzy_check.conf       |  60 +++----
 conf/modules.d/hfilter.conf           |  18 +--
 conf/modules.d/ip_score.conf          |   6 +-
 conf/modules.d/maillist.conf          |   8 +-
 conf/modules.d/mid.conf               |  20 +--
 conf/modules.d/mime_types.conf        |  42 ++---
 conf/modules.d/multimap.conf          | 254 ++++++++++++++---------------
 conf/modules.d/once_received.conf     |  18 +--
 conf/modules.d/phishing.conf          |  32 ++--
 conf/modules.d/ratelimit.conf         |  50 +++---
 conf/modules.d/rbl.conf               | 296 +++++++++++++++++-----------------
 conf/modules.d/regexp.conf            |   8 +-
 conf/modules.d/replies.conf           |  26 +--
 conf/modules.d/reputation.conf        |   6 +-
 19 files changed, 474 insertions(+), 474 deletions(-)

diff --git a/conf/modules.d/chartable.conf b/conf/modules.d/chartable.conf
index ad08eaf48..8112147f0 100644
--- a/conf/modules.d/chartable.conf
+++ b/conf/modules.d/chartable.conf
@@ -14,9 +14,9 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 chartable {
-    threshold = 0.300000;
-    symbol = "R_MIXED_CHARSET";
-    .include(try=true,priority=5) "${DBDIR}/dynamic/chartable.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/chartable.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/chartable.conf"
+  threshold = 0.300000;
+  symbol = "R_MIXED_CHARSET";
+  .include(try=true,priority=5) "${DBDIR}/dynamic/chartable.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/chartable.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/chartable.conf"
 }
diff --git a/conf/modules.d/dkim.conf b/conf/modules.d/dkim.conf
index 2cb0e903e..c57b57d14 100644
--- a/conf/modules.d/dkim.conf
+++ b/conf/modules.d/dkim.conf
@@ -14,13 +14,13 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 dkim {
-    dkim_cache_size = 2k;
-    dkim_cache_expire = 1d;
-    time_jitter = 6h;
-    trusted_only = false;
-    skip_multi = false;
+  dkim_cache_size = 2k;
+  dkim_cache_expire = 1d;
+  time_jitter = 6h;
+  trusted_only = false;
+  skip_multi = false;
 
-    .include(try=true,priority=5) "${DBDIR}/dynamic/dkim.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/dkim.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/dkim.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/dkim.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/dkim.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/dkim.conf"
 }
diff --git a/conf/modules.d/dmarc.conf b/conf/modules.d/dmarc.conf
index 2944a2dcb..bd1b74b97 100644
--- a/conf/modules.d/dmarc.conf
+++ b/conf/modules.d/dmarc.conf
@@ -14,7 +14,7 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 dmarc {
-    .include(try=true,priority=5) "${DBDIR}/dynamic/dmarc.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/dmarc.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/dmarc.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/dmarc.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/dmarc.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/dmarc.conf"
 }
diff --git a/conf/modules.d/emails.conf b/conf/modules.d/emails.conf
index 74a67cf46..8511eed2b 100644
--- a/conf/modules.d/emails.conf
+++ b/conf/modules.d/emails.conf
@@ -14,36 +14,36 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 emails {
-    rules {
-        RSPAMD_EMAILBL {
-            delimiter = ".";
-            encoding = "base32";
-            hashlen = 32;
-            dnsbl = "email.rspamd.com";
-            check_replyto = true;
-            hash = "blake2";
-            returncodes = {
-              RSPAMD_EMAILBL = "127.0.0.2";
-            }
-        }
-        MSBL_EBL {
-            dnsbl = "ebl.msbl.org";
-            domain_only = false;
-            check_replyto = true;
-            hash = "sha1";
-            returncodes = {
-              MSBL_EBL = [
-                "127.0.0.2",
-                "127.0.0.3"
-              ];
-              MSBL_EBL_GREY = [
-                "127.0.1.2",
-                "127.0.1.3"
-              ];
-            }
-        }
+  rules {
+    RSPAMD_EMAILBL {
+      delimiter = ".";
+      encoding = "base32";
+      hashlen = 32;
+      dnsbl = "email.rspamd.com";
+      check_replyto = true;
+      hash = "blake2";
+      returncodes = {
+        RSPAMD_EMAILBL = "127.0.0.2";
+      }
     }
-    .include(try=true,priority=5) "${DBDIR}/dynamic/emails.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/emails.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/emails.conf"
+    MSBL_EBL {
+      dnsbl = "ebl.msbl.org";
+      domain_only = false;
+      check_replyto = true;
+      hash = "sha1";
+      returncodes = {
+        MSBL_EBL = [
+          "127.0.0.2",
+          "127.0.0.3"
+        ];
+        MSBL_EBL_GREY = [
+          "127.0.1.2",
+          "127.0.1.3"
+        ];
+      }
+    }
+  }
+  .include(try=true,priority=5) "${DBDIR}/dynamic/emails.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/emails.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/emails.conf"
 }
diff --git a/conf/modules.d/forged_recipients.conf b/conf/modules.d/forged_recipients.conf
index fe17d1e4d..510172af5 100644
--- a/conf/modules.d/forged_recipients.conf
+++ b/conf/modules.d/forged_recipients.conf
@@ -14,10 +14,10 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 forged_recipients {
-    symbol_sender = "FORGED_SENDER";
-    symbol_rcpt = "FORGED_RECIPIENTS";
+  symbol_sender = "FORGED_SENDER";
+  symbol_rcpt = "FORGED_RECIPIENTS";
 
-    .include(try=true,priority=5) "${DBDIR}/dynamic/forged_recipients.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/forged_recipients.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/forged_recipients.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/forged_recipients.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/forged_recipients.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/forged_recipients.conf"
 }
diff --git a/conf/modules.d/fuzzy_check.conf b/conf/modules.d/fuzzy_check.conf
index 2569a6881..6f0fe808c 100644
--- a/conf/modules.d/fuzzy_check.conf
+++ b/conf/modules.d/fuzzy_check.conf
@@ -14,36 +14,36 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 fuzzy_check {
-    min_bytes = 1k; # Since small parts and small attachments causes too many FP
-    timeout = 2s;
-    retransmits = 1;
-    rule "rspamd.com" {
-        algorithm = "mumhash";
-        servers = "round-robin:fuzzy1.rspamd.com:11335,fuzzy2.rspamd.com:11335";
-        encryption_key = "icy63itbhhni8bq15ntp5n5symuixf73s1kpjh6skaq4e7nx5fiy";
-        symbol = "FUZZY_UNKNOWN";
-        mime_types = ["*"];
+  min_bytes = 1k; # Since small parts and small attachments causes too many FP
+  timeout = 2s;
+  retransmits = 1;
+  rule "rspamd.com" {
+    algorithm = "mumhash";
+    servers = "round-robin:fuzzy1.rspamd.com:11335,fuzzy2.rspamd.com:11335";
+    encryption_key = "icy63itbhhni8bq15ntp5n5symuixf73s1kpjh6skaq4e7nx5fiy";
+    symbol = "FUZZY_UNKNOWN";
+    mime_types = ["*"];
+    max_score = 20.0;
+    read_only = yes;
+    skip_unknown = yes;
+    short_text_direct_hash = true;
+    fuzzy_map = {
+      FUZZY_DENIED {
         max_score = 20.0;
-        read_only = yes;
-        skip_unknown = yes;
-        short_text_direct_hash = true;
-        fuzzy_map = {
-            FUZZY_DENIED {
-                max_score = 20.0;
-                flag = 1;
-            }
-            FUZZY_PROB {
-                max_score = 10.0;
-                flag = 2;
-            }
-            FUZZY_WHITE {
-                max_score = 2.0;
-                flag = 3;
-            }
-        }
+        flag = 1;
+      }
+      FUZZY_PROB {
+        max_score = 10.0;
+        flag = 2;
+      }
+      FUZZY_WHITE {
+        max_score = 2.0;
+        flag = 3;
+      }
     }
-    # Include dynamic conf for the rule
-    .include(try=true,priority=5) "${DBDIR}/dynamic/fuzzy_check.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fuzzy_check.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fuzzy_check.conf"
+  }
+  # Include dynamic conf for the rule
+  .include(try=true,priority=5) "${DBDIR}/dynamic/fuzzy_check.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fuzzy_check.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fuzzy_check.conf"
 }
diff --git a/conf/modules.d/hfilter.conf b/conf/modules.d/hfilter.conf
index d14376304..05b5a604c 100644
--- a/conf/modules.d/hfilter.conf
+++ b/conf/modules.d/hfilter.conf
@@ -14,14 +14,14 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 hfilter {
-    helo_enabled = true;
-    hostname_enabled = true;
-    url_enabled = true;
-    from_enabled = true;
-    rcpt_enabled = true;
-    mid_enabled = false;
+  helo_enabled = true;
+  hostname_enabled = true;
+  url_enabled = true;
+  from_enabled = true;
+  rcpt_enabled = true;
+  mid_enabled = false;
 
-    .include(try=true,priority=5) "${DBDIR}/dynamic/hfilter.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/hfilter.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/hfilter.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/hfilter.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/hfilter.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/hfilter.conf"
 }
diff --git a/conf/modules.d/ip_score.conf b/conf/modules.d/ip_score.conf
index 16a4f7686..065c6ca2e 100644
--- a/conf/modules.d/ip_score.conf
+++ b/conf/modules.d/ip_score.conf
@@ -20,7 +20,7 @@ ip_score {
 #    no_action_score = -2;
 #    add_header_score = 1;
 #    whitelist = "file:///ip_map";
-    .include(try=true,priority=5) "${DBDIR}/dynamic/ip_score.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/ip_score.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ip_score.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/ip_score.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/ip_score.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ip_score.conf"
 }
diff --git a/conf/modules.d/maillist.conf b/conf/modules.d/maillist.conf
index d06a3cdfb..f86bf06cc 100644
--- a/conf/modules.d/maillist.conf
+++ b/conf/modules.d/maillist.conf
@@ -14,8 +14,8 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 maillist {
-    symbol = "MAILLIST";
-    .include(try=true,priority=5) "${DBDIR}/dynamic/maillist.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/maillist.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/maillist.conf"
+  symbol = "MAILLIST";
+  .include(try=true,priority=5) "${DBDIR}/dynamic/maillist.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/maillist.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/maillist.conf"
 }
diff --git a/conf/modules.d/mid.conf b/conf/modules.d/mid.conf
index 589ce746a..8c153b6b9 100644
--- a/conf/modules.d/mid.conf
+++ b/conf/modules.d/mid.conf
@@ -14,15 +14,15 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 mid = {
-    source = {
-        url = [
-            "https://maps.rspamd.com/rspamd/mid.inc.zst",
-            "$LOCAL_CONFDIR/local.d/mid.inc",
-            "fallback+file://${CONFDIR}/mid.inc"
-        ];
-    }
+  source = {
+    url = [
+      "https://maps.rspamd.com/rspamd/mid.inc.zst",
+      "$LOCAL_CONFDIR/local.d/mid.inc",
+      "fallback+file://${CONFDIR}/mid.inc"
+    ];
+  }
 
-    .include(try=true,priority=5) "${DBDIR}/dynamic/mid.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mid.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mid.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/mid.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mid.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mid.conf"
 }
diff --git a/conf/modules.d/mime_types.conf b/conf/modules.d/mime_types.conf
index 7bbc0aa08..a92f426a3 100644
--- a/conf/modules.d/mime_types.conf
+++ b/conf/modules.d/mime_types.conf
@@ -14,27 +14,27 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 mime_types {
-    file = [
-        "https://maps.rspamd.com/rspamd/mime_types.inc.zst",
-        "${DBDIR}/mime_types.inc.local",
-        "fallback+file://${CONFDIR}/mime_types.inc"
-    ]
+  file = [
+    "https://maps.rspamd.com/rspamd/mime_types.inc.zst",
+    "${DBDIR}/mime_types.inc.local",
+    "fallback+file://${CONFDIR}/mime_types.inc"
+  ]
 
-    # Match specific extensions to specific content types
-    extension_map = {
-      html = "text/html";
-      txt = [
-        "message/disposition-notification",
-        "text/plain",
-        "text/rfc822-headers"
-      ];
-      pdf = [
-        "application/octet-stream",
-        "application/pdf"
-      ];
-    }
+  # Match specific extensions to specific content types
+  extension_map = {
+    html = "text/html";
+    txt = [
+      "message/disposition-notification",
+      "text/plain",
+      "text/rfc822-headers"
+    ];
+    pdf = [
+      "application/octet-stream",
+      "application/pdf"
+    ];
+  }
 
-    .include(try=true,priority=5) "${DBDIR}/dynamic/mime_types.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mime_types.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mime_types.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/mime_types.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mime_types.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mime_types.conf"
 }
diff --git a/conf/modules.d/multimap.conf b/conf/modules.d/multimap.conf
index b71f4d653..540775ee1 100644
--- a/conf/modules.d/multimap.conf
+++ b/conf/modules.d/multimap.conf
@@ -14,155 +14,155 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 multimap {
-    # Freemail Addresses
-    freemail_envfrom {
-        type = "from";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/free.txt.zst";
-        symbol = "FREEMAIL_ENVFROM";
-        description = "Envelope From is a Freemail address";
-        score = 0.0;
-    }
+  # Freemail Addresses
+  freemail_envfrom {
+    type = "from";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_ENVFROM";
+    description = "Envelope From is a Freemail address";
+    score = 0.0;
+  }
 
-    freemail_envrcpt {
-        type = "rcpt";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/free.txt.zst";
-        symbol = "FREEMAIL_ENVRCPT";
-        description = "Envelope Recipient is a Freemail address";
-        score = 0.0;
-    }
+  freemail_envrcpt {
+    type = "rcpt";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_ENVRCPT";
+    description = "Envelope Recipient is a Freemail address";
+    score = 0.0;
+  }
 
-    freemail_from {
-        type = "header";
-        header = "from";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/free.txt.zst";
-        symbol = "FREEMAIL_FROM";
-        description = "From is a Freemail address";
-        score = 0.0;
-    }
+  freemail_from {
+    type = "header";
+    header = "from";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_FROM";
+    description = "From is a Freemail address";
+    score = 0.0;
+  }
 
-    freemail_to {
-        type = "header";
-        header = "To";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/free.txt.zst";
-        symbol = "FREEMAIL_TO";
-        description = "To is a Freemail address";
-        score = 0.0;
-    }
+  freemail_to {
+    type = "header";
+    header = "To";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_TO";
+    description = "To is a Freemail address";
+    score = 0.0;
+  }
 
-    freemail_cc {
-        type = "header";
-        header = "Cc";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/free.txt.zst";
-        symbol = "FREEMAIL_CC";
-        description = "To is a Freemail address";
-        score = 0.0;
-    }
+  freemail_cc {
+    type = "header";
+    header = "Cc";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_CC";
+    description = "To is a Freemail address";
+    score = 0.0;
+  }
 
-    freemail_replyto {
-        type = "header";
-        header = "Reply-To";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/free.txt.zst";
-        symbol = "FREEMAIL_REPLYTO";
-        description = "Reply-To is a Freemail address";
-        score = 0.0;
-    }
+  freemail_replyto {
+    type = "header";
+    header = "Reply-To";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/free.txt.zst";
+    symbol = "FREEMAIL_REPLYTO";
+    description = "Reply-To is a Freemail address";
+    score = 0.0;
+  }
 
-    # Disposable Addresses
-    disposable_envfrom {
-        type = "from";
-        filter = "email:domain";
-        map = "https://rspamd.com/freemail/disposable.txt.zst";
-        symbol = "DISPOSABLE_ENVFROM";
-        description = "Envelope From is a Disposable e-mail address";
-        score = 0.0;
-    }
+  # Disposable Addresses
+  disposable_envfrom {
+    type = "from";
+    filter = "email:domain";
+    map = "https://rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_ENVFROM";
+    description = "Envelope From is a Disposable e-mail address";
+    score = 0.0;
+  }
 
-    disposable_envrcpt {
-        type = "rcpt";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
-        symbol = "DISPOSABLE_ENVRCPT";
-        description = "Envelope Recipient is a Disposable e-mail address";
-        score = 0.0;
-    }
+  disposable_envrcpt {
+    type = "rcpt";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_ENVRCPT";
+    description = "Envelope Recipient is a Disposable e-mail address";
+    score = 0.0;
+  }
 
-    disposable_from {
-        type = "header";
-        header = "from";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
-        symbol = "DISPOSABLE_FROM";
-        description = "From a Disposable e-mail address";
-        score = 0.0;
-    }
+  disposable_from {
+    type = "header";
+    header = "from";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_FROM";
+    description = "From a Disposable e-mail address";
+    score = 0.0;
+  }
 
-    disposable_to {
-        type = "header";
-        header = "To";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
-        symbol = "DISPOSABLE_TO";
-        description = "To a disposable e-mail address";
-        score = 0.0;
-    }
+  disposable_to {
+    type = "header";
+    header = "To";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_TO";
+    description = "To a disposable e-mail address";
+    score = 0.0;
+  }
 
-    disposable_cc {
-        type = "header";
-        header = "Cc";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
-        symbol = "DISPOSABLE_CC";
-        description = "To a disposable e-mail address";
-        score = 0.0;
-    }
+  disposable_cc {
+    type = "header";
+    header = "Cc";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_CC";
+    description = "To a disposable e-mail address";
+    score = 0.0;
+  }
 
-    disposable_replyto {
-        type = "header";
-        header = "Reply-To";
-        filter = "email:domain";
-        map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
-        symbol = "DISPOSABLE_REPLYTO";
-        description = "Reply-To a disposable e-mail address";
-        score = 0.0;
-    }
+  disposable_replyto {
+    type = "header";
+    header = "Reply-To";
+    filter = "email:domain";
+    map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
+    symbol = "DISPOSABLE_REPLYTO";
+    description = "Reply-To a disposable e-mail address";
+    score = 0.0;
+  }
 
-    .include(try=true,priority=5) "${DBDIR}/dynamic/multimap.conf"
-    .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/multimap.conf"
-    .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/multimap.conf"
+  .include(try=true,priority=5) "${DBDIR}/dynamic/multimap.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/multimap.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/multimap.conf"
 }
 
 /* Example setup
 sender_from_whitelist_user {
-            type = "from";
-            filter = "email:user";
-            map = "file:///tmp/from.map";
-            symbol = "SENDER_FROM_WHITELIST_USER";
-            action = "accept"; # Prefilter mode
+          type = "from";
+          filter = "email:user";
+          map = "file:///tmp/from.map";
+          symbol = "SENDER_FROM_WHITELIST_USER";
+          action = "accept"; # Prefilter mode
 }
 sender_from_regexp {
-            type = "header";
-            header = "from";
-            filter = 'regexp:/.*@/';
-            map = "file:///tmp/from_re.map";
-            symbol = "SENDER_FROM_REGEXP";
+          type = "header";
+          header = "from";
+          filter = 'regexp:/.*@/';
+          map = "file:///tmp/from_re.map";
+          symbol = "SENDER_FROM_REGEXP";
 }
 url_map {
-            type = "url";
-            filter = "tld";
-            map = "file:///tmp/url.map";
-            symbol = "URL_MAP";
+          type = "url";
+          filter = "tld";
+          map = "file:///tmp/url.map";
+          symbol = "URL_MAP";
 }
 url_tld_re {
-            type = "url";
-            filter = 'tld:regexp:/\.[^.]+$/'; # Extracts the last component of URL
-            map = "file:///tmp/url.map";
-            symbol = "URL_MAP_RE";
+          type = "url";
+          filter = 'tld:regexp:/\.[^.]+$/'; # Extracts the last component of URL
+          map = "file:///tmp/url.map";
+          symbol = "URL_MAP_RE";
 }
 */
 
diff --git a/conf/modules.d/once_received.conf b/conf/modules.d/once_received.conf
index 233d662ef..c0aaf3330 100644
--- a/conf/modules.d/once_received.conf
+++ b/conf/modules.d/once_received.conf
@@ -14,14 +14,14 @@
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 once_received {
-    good_host = "mail";
-    bad_host = "static";
-    bad_host = "dynamic";
-    symbol_strict = "ONCE_RECEIVED_STRICT";
-    symbol = "ONCE_RECEIVED";
-    symbol_mx = "DIRECT_TO_MX";
+  good_host = "mail";
+  bad_host = "static";
+  bad_host = "dynamic";
+  symbol_strict = "ONCE_RECEIVED_STRICT";
+  symbol = "ONCE_RECEIVED";
*** OUTPUT TRUNCATED, 491 LINES SKIPPED ***


More information about the Commits mailing list