How to Block GMail account New block from


(Ya Ley) #1

**NethServer Version:7.5
**Module: Mail Filter

How to Block Mail(Black list) account from like a "" ?
I try to add “Filter>Rules by mail address>New block from "” it is not working but it is work if I add Blacklist only domain “

Thank you

(Markus Neuberger) #2

Hi @Ya_Ley,

I could not reproduce, when I put a “New block from” mail address and send a test mail from the blocked address it’s rejected by rspamd and correctly shown in the rspamd web UI. I tried mail addresses like “” too. The blocked sender gets a mail with correct information:

SMTP error from remote mail server after end of data:
    554 5.7.1 Matched map: FROM_BLACKLIST

Maybe you find some hints in /var/log/maillog.

For a working reject you should find a line like:
Jul 25 14:31:09 myserver postfix/cleanup[1112]: 17B8330C3E41: milter-reject: END-OF-MESSAGE from[]: 5.7.1 Matched map: FROM_BLACKLIST; from=<blockedmail@domain.tld> to=<> proto=ESMTP helo=<>

Please post your config:

config show rspamd

(Ya Ley) #3

Hi @mrmarkuz,

Thank you
and please let try to blacklist account that similar


(Markus Neuberger) #4

You’re right. It seems that’s the way gmail works, to blacklist gmail just leave the dot like

(Jeroen Visser) #5

I can confirm this. Some more info:

There is a catch tho … Google Apps dont ignore them afaik

(Ya Ley) #6

Thank you for your information
Anyway, I try to blocked some domain that suffixes ".date" but there are auto generate like a

I mean, domains are auto generate and change the name.
Please help step to blacklist “.date
Thank you

(Michael Kicks) #7

Did you try *.date ad blacklist entry?

(Ya Ley) #8

The system is not allow