# Host and connection rules scores
#
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
# parameters defined on the top level
#
# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
# parameters defined on the top level
#
# For specific modules or configuration you can also modify
# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
#
# See https://rspamd.com/doc/tutorials/writing_rules.html for details

symbols = {
    "HFILTER_HELO_BAREIP" {
        weight = 3.00;
        description = "Helo host is bare ip";
    }
    "HFILTER_HELO_BADIP" {
        weight = 4.50;
        description = "Helo host is very bad ip";
    }
    "HFILTER_HELO_1" {
        weight = 0.5;
        description = "Helo host checks (very low)";
    }
    "HFILTER_HELO_2" {
        weight = 1.00;
        description = "Helo host checks (low)";
    }
    "HFILTER_HELO_3" {
        weight = 2.00;
        description = "Helo host checks (medium)";
    }
    "HFILTER_HELO_4" {
        weight = 2.50;
        description = "Helo host checks (hard)";
    }
    "HFILTER_HELO_5" {
        weight = 3.00;
        description = "Helo host checks (very hard)";
    }
    "HFILTER_HOSTNAME_1" {
        weight = 0.5;
        description = "Hostname checks (very low)";
    }
    "HFILTER_HOSTNAME_2" {
        weight = 1.00;
        description = "Hostname checks (low)";
    }
    "HFILTER_HOSTNAME_3" {
        weight = 2.00;
        description = "Hostname checks (medium)";
    }
    "HFILTER_HOSTNAME_4" {
        weight = 2.50;
        description = "Hostname checks (hard)";
    }
    "HFILTER_HOSTNAME_5" {
        weight = 3.00;
        description = "Hostname checks (very hard)";
    }
    "HFILTER_HELO_NORESOLVE_MX" {
        weight = 0.20;
        description = "MX found in Helo and no resolve";
    }
    "HFILTER_HELO_NORES_A_OR_MX" {
        weight = 0.3;
        description = "Helo no resolve to A or MX";
    }
    "HFILTER_HELO_IP_A" {
        weight = 1.00;
        description = "Helo A IP != hostname IP";
    }
    "HFILTER_HELO_NOT_FQDN" {
        weight = 2.00;
        description = "Helo not FQDN";
    }
    "HFILTER_FROMHOST_NORESOLVE_MX" {
        weight = 0.5;
        description = "MX found in FROM host and no resolve";
    }
    "HFILTER_FROMHOST_NORES_A_OR_MX" {
        weight = 1.50;
        description = "FROM host no resolve to A or MX";
    }
    "HFILTER_FROMHOST_NOT_FQDN" {
        weight = 3.00;
        description = "FROM host not FQDN";
    }
    "HFILTER_FROM_BOUNCE" {
        weight = 0.00;
        description = "Bounce message";
    }
/*
    # Disabled by default
    "HFILTER_MID_NORESOLVE_MX" {
        weight = 0.50;
        description = "MX found in Message-id host and no resolve";
    }
    "HFILTER_MID_NORES_A_OR_MX" {
        weight = 0.50;
        name = ;
        description = "Message-id host no resolve to A or MX";
    }
    "HFILTER_MID_NOT_FQDN" {
        weight = 0.50;
        description = "Message-id host not FQDN";
    }
*/
    "HFILTER_HOSTNAME_UNKNOWN" {
        weight = 2.50;
        description = "Unknown hostname (no PTR or no resolve PTR to hostname)";
    }
    "HFILTER_RCPT_BOUNCEMOREONE" {
        weight = 1.50;
        description = "Message from bounce and over 1 recipient";
    }
    "HFILTER_URL_ONLY" {
        weight = 2.20;
        description = "URL only in body";
    }
    "HFILTER_URL_ONELINE" {
        weight = 2.50;
        description = "One line URL and text in body";
    }
}