want to know how to block .co email

Questions and answers about how to do stuff
Post Reply
trident
Posts: 3
Joined: 28 Feb 2020 19:50

want to know how to block .co email

Post 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
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: want to know how to block .co email

Post 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.
Post Reply