Git Product home page Git Product logo

Comments (9)

myrsk avatar myrsk commented on August 22, 2024 2

Sorry, forgot to mention it relates to this multimap;

MXROUTE_BODY_SPAM {
    type = "content";
    filter = "full";
    map = "https://raw.githubusercontent.com/mxroute/rspamd_rules/master/lists/body-spam.map";
    symbol = "MXROUTE_BODY_SPAM";
    prefilter = true;
    action = "reject";
    regexp = true;
    message = "The text of this email contained a string that we identified to be spam.";
}

Thanks

from rspamd_rules.

mxroute avatar mxroute commented on August 22, 2024 1

Good catch! I think I see what I did wrong here but I want to make sure I fix it properly before I push anything.

from rspamd_rules.

CyberCr33p avatar CyberCr33p commented on August 22, 2024 1

For SPAMMY_SUBJECT please remove filter = "text"; as I get "bad search filter: text"

More details here:

rspamd/rspamd#2561 (comment)

from rspamd_rules.

justrudra avatar justrudra commented on August 22, 2024

Facing the same thing. Came here to raise the issue, found that it has already been done by @myrsk.
However, there is one more block in multimap.conf where where filter = "full" appears:

SPAMMY_SUBJECT {
type = "header";
header = "subject";
filter = "full";
map = "https://raw.githubusercontent.com/mxroute/rspamd_rules/master/lists/subject-spam.map";
symbol = "SPAMMY_SUBJ";
prefilter = true;
action = "reject";
regexp = true;
}

from rspamd_rules.

myrsk avatar myrsk commented on August 22, 2024

Facing the same thing. Came here to raise the issue, found that it has already been done by @myrsk.
However, there is one more block in multimap.conf where where filter = "full" appears:

SPAMMY_SUBJECT {
type = "header";
header = "subject";
filter = "full";
map = "https://raw.githubusercontent.com/mxroute/rspamd_rules/master/lists/subject-spam.map";
symbol = "SPAMMY_SUBJ";
prefilter = true;
action = "reject";
regexp = true;
}

From my testing, SPAMMY_SUBJECT works as expected, it was just complaining on MXROUTE_BODY_SPAM. I could be wrong though.

from rspamd_rules.

myrsk avatar myrsk commented on August 22, 2024

I've updated it to the below, and now it works as expected. @justrudra I guess you can use the below for now

MXROUTE_BODY_SPAM {
    type = "content";
    filter = "text";
    map = "https://raw.githubusercontent.com/mxroute/rspamd_rules/master/lists/body-spam.map";
    symbol = "MXROUTE_BODY_SPAM";
    prefilter = true;
    action = "reject";
    regexp = true;
    message = "The text of this email contained a string that we identified to be spam.";
}

from rspamd_rules.

justrudra avatar justrudra commented on August 22, 2024

I've updated it to the below, and now it works as expected. @justrudra I guess you can use the below for now

MXROUTE_BODY_SPAM {
    type = "content";
    filter = "text";
    map = "https://raw.githubusercontent.com/mxroute/rspamd_rules/master/lists/body-spam.map";
    symbol = "MXROUTE_BODY_SPAM";
    prefilter = true;
    action = "reject";
    regexp = true;
    message = "The text of this email contained a string that we identified to be spam.";
}

@myrsk Thanks for sharing this. It seems to work. But just wondering, what is the difference in values "full" and "text"?

from rspamd_rules.

CyberCr33p avatar CyberCr33p commented on August 22, 2024

@myrsk Thanks for sharing this. It seems to work. But just wondering, what is the difference in values "full" and "text"?

Check here: https://rspamd.com/doc/modules/multimap.html#content-filters

from rspamd_rules.

mxroute avatar mxroute commented on August 22, 2024

I still don't understand why full is dropping an error. Meanwhile I can see the error and that the maps are being properly utilized on my systems, so it doesn't seem to have been preventing it from working. That said, if text works and doesn't drop the error it doesn't seem to be worth spending much time on.

99cb597

from rspamd_rules.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.