How to Block GMail account New block from

mailserver
email
mail
v7

(Ya Ley) #1

**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


(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 “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


(Ya Ley) #3

Hi @mrmarkuz,

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

Thanks


(Markus Neuberger) #4

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


(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
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


(Michael Kicks) #7

Did you try *.date ad blacklist entry?


(Ya Ley) #8

The system is not allow