How to Block GMail account New block from

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

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

Thank you

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 “abc.xyz” 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 smtprelay.domain.at[1.2.3.4]: 5.7.1 Matched map: FROM_BLACKLIST; from=<blockedmail@domain.tld> to=<markus@domain.ws> proto=ESMTP helo=<smtprelay.domain.at>

Please post your config:

config show rspamd

Hi @mrmarkuz,

Thank you
and please let try to blacklist account that similar abc.xyz@gmail.com

Thanks

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

1 Like

I can confirm this. Some more info:

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

2 Likes

Thank you for your information
Anyway, I try to blocked some domain that suffixes ".date" but there are auto generate like a
dinghy@oakive.date
oxidic@oakive.date
gezer@pretlost.date
galton@pretlost.date

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

Did you try *.date ad blacklist entry?

The system is not allow