Comments (9)
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.
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.
For SPAMMY_SUBJECT please remove filter = "text"; as I get "bad search filter: text"
More details here:
from rspamd_rules.
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.
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 wherefilter = "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.
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.
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.
@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.
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.
from rspamd_rules.
Related Issues (8)
- I am having a folder in local.d/blacklisted_ips in which there are multiple files containing malicious IPs. Is there anyway to include a directory containing multiple files in the map variable in multimap.conf instead of a specific filename like ip_bl.map HOT 1
- Pre-Sale questions
- Please add to body-spam map HOT 1
- Blocked e-mails from kannashoes.com HOT 1
- Blocked e-mails from siraj-lighting.com HOT 3
- Unable to parse regex from subject-spam.map HOT 2
- blacklisted-sender-strings.map 'cannot parse regexp' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspamd_rules.