How to use rspamd.conf.local and rspamd.conf.local.override?

194 views
Skip to first unread message

Alexander Moisseev

unread,
Jun 19, 2015, 2:27:37 AM6/19/15
to rsp...@googlegroups.com
Could you provide some examples of rspamd.conf.local and rspamd.conf.local.override?
For instance how to set controller password, how to change symbol weight?

rspam...@judo.za.org

unread,
Jun 24, 2015, 2:07:00 PM6/24/15
to rsp...@googlegroups.com
Hi,

To change symbol's weight or add a new symbol you could for example add the following to rspamd.conf.local:

metric {
    group {
        name = "spf";
        symbol {
            weight = 0.0;
            description = "SPF verification failed";
            name = "R_SPF_FAIL";
        }
}

If you don't want to use defaults from metrics.conf you could instead add its contents to rspamd.conf.local.override and edit to taste.

To change controller password: redefine all worker {} blocks in rspamd.conf.local.override - for example:

worker {
    bind_socket = "localhost:11333";
    .include "$CONFDIR/worker-normal.inc"
}

worker {
    bind_socket = "localhost:11334";
    type = "controller";
    count = 1;
    secure_ip = "::1 127.0.0.1";
    static_dir = "${WWWDIR}";
    password = "$1$...";
}

Best,
-AL.
Reply all
Reply to author
Forward
0 new messages