Page 1 of 1

Block by from email domain

Posted: 14 Feb 2018 22:43
by rickriv90210
How do I block by using the email domain it was sent from? I have tried using the blacklist settings and using from "@domain" and to "default", but that does not always block by from email address. Also, when I click "add to blacklist" within message details, it specifies a different sender address and not the displayed from email address so that doesn't accomplish it either.

All I want to do is prevent all messages from a specific domain getting through based on the from email address domain. Thanks.

Re: Block by from email domain

Posted: 15 Feb 2018 15:19
by Zwabber
edit /etc/postfix/header_checks and insert;
/^From:.*\@maildomain.com/ DISCARD

Re: Block by from email domain

Posted: 16 Feb 2018 00:48
by rickriv90210
Thanks. When a message is blocked that way, will it still show up as blocked in the message list? I'd like to visually see all messages that were blocked, also so the stats will be correct.

Re: Block by from email domain

Posted: 16 Feb 2018 10:00
by Zwabber
No because it's blocked (just as you asked :roll: )
If stats are so important, just create rules to forward spammy mail domains to a specified mail address

Re: Block by from email domain

Posted: 16 Feb 2018 16:32
by rickriv90210
OK, makes sense. How can I request a new feature for the ability to block by from email domain? This is a pretty basic expectation of SPAM protection and should be part of the base feature set for EFA in my opinion, meaning it shouldn't need to be handled in a clunky way via shell commands outside of EFA. This is the literally the only issue I have with EFA, everything else is great and for a free product, I'm quite thankful.

Re: Block by from email domain

Posted: 16 Feb 2018 20:12
by Zwabber
Have a look at this topic rickriv90210, maybe it is browser related;
viewtopic.php?f=13&t=2776&p=10974&hilit ... ain#p10974

Re: Block by from email domain

Posted: 17 Feb 2018 02:01
by AITCS
rickriv90210 wrote: 16 Feb 2018 16:32How can I request a new feature for the ability to block by from email domain?
I've just run into the situation where I'd like to implement this feature also (via sender_access, not blacklists).
I have a feeling I once configured something similar in the past, but having a mental block right now.