New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help please blocking spam #1566
Comments
This can be achieved by adding additional symbols to the multimap filter. In this symbol you could indeed reject email using a prefilter. Step 1 is creating the config file to add the symbol to the multimap filter.
Note that the prefilter " action = "reject";" instructs rspamd to reject the email. The sender will receive a failed delivery notification email that this email was rejected. Another option is too use discord (accept the email and discard it). If you remove " action = "reject";", then the email will get score 14 and will be moved to the spam folder depending on the spam score threshold setting of the user. Step 2 is to create the blacklist file that will contain the domains to be blocked. You don't have to add the domains yet. This can also be done via the webgui.
Step 3 is to restart rspamd to pick up the new multimap.conf file. If you use docker-compose:
Step 4 is too access the webui of rspamd and go to configuration. You should listed here: I hope this helps. I plan to create a PR to add this to the FAQ section |
It worked like a charm! Many thanks for your help |
1586: Add documentation in regard to the spam filter in Mailu. Added all su… r=mergify[bot] a=Diman0 …ggestions from Liquidat and Nebukadneza.. I have added the suggestions mentioned in pull request #1575 ## What type of PR? Adds FAQ section 'Spam filtering' that describes how spam filtering works. It also describes how you can create your own local black list. This enables the user to set up a map that can be live-updated via Rspamd webgui for blocking emails from listed sender domains. ## What does this PR do? ### Related issue(s) #1167 #1566 Closes issue #1167 ## Prerequistes Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. [ N/A] In case of feature or enhancement: documentation updated accordingly [ Done] Unless it's docs or a minor change: add changelog entry file. Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
Apologies if this is not the right spot to ask, but it's the only place I could find sort of about the same topic; Made a multimap.conf
and a badwords.map
I restart;
And check if the the config is there; I then send a mail, containing "trialwordforspam" and the filter goes straight through: As if the rule isn't triggered at all. What am I missing here? |
Hi @Eloque, I had the same use case except I wanted to look for a string instead of a word. I couldn't get your example working and I have some different settings for my map, but I'm sharing what is working for me hoping it can be adapted for what you need.
Background/more info described in this blogpost |
hi, I tried using this method but the menu on the list doesn't appear |
Hello, I'm new using rspamd and want to know if anyone knows how to block some domain.
There is a domain (let it be "spamdomain.com") that is spamming constantly, and I don't know how to stop it.
I'm using WebUI, and I was reading in your docs https://rspamd.com/doc/modules/multimap.html that multimap and prefilters would help with this, but I'm super noob and don't know where to put it, neither the syntax (I tried to understand the docs, but it was confusing to me). I suspect that the filter that I need is "email:domain", right?
Anyone can give me a hand with this?
Many thanks in advance
The text was updated successfully, but these errors were encountered: