Page 1 of 1

want to know how to block .co email

Posted: 08 Mar 2022 22:02
by trident
hi am getting lots of email like this
info@pigcouncil.co,
exporting@medicinegenuine.co,
cross@spottool.co
so as you can see they *@*.co i like to know how to make EFA drop or reject all .co email

as i know they all spam and at 20 to 50 aday doing learn as span is a pain

thanks
Carl

Re: want to know how to block .co email

Posted: 10 Mar 2022 00:21
by shawniverson
Hi,

so to block .co. A few different ways you can do this.

1. Postfix

You can add sender check, you'll need to set up a regex lookup for that, more details here:

https://www.postfix.org/postconf.5.html ... strictions

2. SpamAssassin

You can do this in /etc/mail/spamassassin/local.cf:

Code: Select all

blacklist_from  *@*.co
It may take a bit for the spamassassin cache to expire before the rule takes effect.