[Rspamd-Users] Rewrite subject

Sławomir Dworaczek slawek at dworaczek.info
Thu Sep 14 10:18:35 UTC 2023


Pieces from the configuration, there is information about rewrite subject in two places


neural {
    train {
        learning_rate = 0.010000;
        max_usages = 20;
        max_trains = 1000;
        max_iterations = 25;
    }
    timeout = 20;
}
metric {
    subject = "*** Smiec *** %s";
    actions {
        rewrite_subject = 12;
    }
}
external_relay {
    enabled = false;
}

..............


        whitelist = "/etc/rspamd/antivirus.wl";
        max_size = 20000000;
        patterns {}
    }
}
actions {
    add_header = 6;
    reject = 15;
    rewrite_subject = 12;
    subject = "*** Smiec *** %s";
}
elastic {
    limit = 10;
    import_kibana = false;
    debug = false;
    timeout = 5;
    index_pattern = "rspamd-%Y.%m.%d";
}


----- Original Message ----- 
From: "Sławomir Dworaczek" <slawek at dworaczek.info>
To: <users at lists.rspamd.com>
Sent: Thursday, September 14, 2023 9:26 AM
Subject: Rewrite subject


> Hello
> how to properly configure rspamd to rewrite message subjects.
> All the advice I found on the Internet does not work
> I have it in override.d/metrics.conf
> 
> subject = "*** Probably SPAM *** %s";
> actions {
> rewrite_subject = 12;
> }
> 
> in the logs in the action section I have rewrite subject and the messages do 
> not have a changed subject anyway
> 
> regards 
>


More information about the Users mailing list