Custom Spam rejection by address/domain

(Dave Land) #1

Hiya folks,
In the spam filtering section, there is a ‘Rules by e-mail’ section that you can enter addresses to reject by default. What is the proper format to make this accept wildcards (like a complete domain)? I tried (star)@(star).tk (forum won’t print the (**) characters), and several other variations, but it doesn’t seem to like wildcards. Thanks!

Dave Land
Land Computer Service

First time use NethServer, many questions
(Filippo Carletti) #2

Amavis accepts wildcards, but the server-manager interface doesn’t.
You need a template-custom like:
@blacklist_sender_maps = ( new_RE(
Untested, let me know if you need help creating the template.

(Davide Principi) #3

Please, try also


Perhaps I’m confused by Postfix syntax… it should block any message directed to tk domain.

(Filippo Carletti) #4

Brilliant @davidep! I’m sure you’re right.
I notice that I made a syntax error, the dot before tk should be protected by a backslash (.).

(Dave Land) #5

I will give that a try later. Thanks!
Gotta go get some other work done though right now so I can pay the electricity bill to keep all this junk running, LOL! :smiley:

Dave Land