rspamd whitelist

Discussion in 'Installation/Configuration' started by jnsc, Jun 8, 2020.

  1. jnsc

    jnsc rotaredoM Moderator

    Since I migrated to rspamd, my user complain that the whitelist is not working. And from the tests I did it seems that they are right. Is the whitelist working on your side?

    Form what I have seen the configuration files /etc/rspamd/local.d/users/spamfilter_wblist_XX.conf get generated, and looks fine, they also get read by rspamd (when I enter an invalid syntax, rspamd will complain), but for an unknown reason I believe that rspamd is not doing anything about this files.

    Is there an easy way to test this rules?
  2. elmacus

    elmacus Active Member HowtoForge Supporter

    Last edited: Jun 10, 2020
  3. jnsc

    jnsc rotaredoM Moderator

    Yes I saw this, but my problem seems to be more general, I tried with many sender/recipients but without success, I also tried to edit the config files by hand, playing with rcpt, mime_rcpt, etc. but with no success.
  4. jnsc

    jnsc rotaredoM Moderator

    Did someone get the whitelist working on there side?
  5. elmacus

    elmacus Active Member HowtoForge Supporter

    I do have alot of whitelist that does work.
    jnsc likes this.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    One thing that you might try is to empty (or move all files to a backup directory) in /etc/rspamd/local.d/users/, and I mean all, not just the whitelist files, and then use Tools > resync for all mail related functions to let ispconfig regenerate them. Maybe you have some old config files there which cause the whitelist to not work.
    jnsc likes this.
  7. jnsc

    jnsc rotaredoM Moderator

    Hi till,
    I'll definitively will try this.
  8. jnsc

    jnsc rotaredoM Moderator

    I did the resync, and still waiting for a real world test, but I have not much hope as a diff between the old and the new folder does not show any differences :-(

    For troubleshooting I use scan function in the ui (by pasting the message source) is this the right test methode?

    Maybe in doing things wrong, but the configuration looks so simple that I do not see what could be wrong

    The mail header :
    To: [email protected]
    From: Name of my user via Rocketbook <[email protected]>
    The rspamd rule
    spamfilter_wblist-16 {
            priority = 25;
            from = "[email protected]";
            rcpt = "[email protected]";
            want_spam = yes;
            apply {
                    actions {
                            reject = null;
                            "add header" = null;
                            greylist = null;
                            "rewrite subject" = null;
    Last edited: Jun 11, 2020
  9. jnsc

    jnsc rotaredoM Moderator

    Ok, I somewhat progressed,
    when using
    echo "test" | rspamc -F "[email protected]" -r "[email protected]"
    Spam: false
    which is what should happen with the mail, but I still don't know why when receiving the mail for real it sees it as spam.
  10. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You are wanting to match mail From/To headers, where the whitelist entry matches envelop from/rcpt.

Share This Page