Block e-mail sender server wide

jtgroup

Active Member
Nov 21, 2017
32
2
8
UK
cPanel Access Level
Root Administrator
Hello everyone,

I would like to block some e-mail accounts from sending messages to any domains hosted on our server, is this possible?

I have found some threads on this forum explaining how but some are 10+ years old so I'm hoping there is a quick, easy and more up-to-date way of doing this?

Kind regards


James
 

keat63

Well-Known Member
Nov 20, 2014
1,913
259
113
cPanel Access Level
Root Administrator
Assume these external email addresses.

Eg, you want to stop somebody.com sending to all domains on your server ?

You can create an exim blacklist.
Take a look at post 3.
Block receiving emails from specific domain to any mailing list?

or

If you know the IP of the offending server, Block the IP in CSF Firewall.

or

Purchase and install CSF MailScanner and block them from there.
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello James,

The information in the previous post should help. Let us know if you have any questions.

Thanks!
 

jlucho

Well-Known Member
Aug 5, 2006
85
1
158
hi guys

I have the same search


for example , a sender: [email protected], he sends me messages and also to my hosting clients.

The current version of cPanel contemplates blocking specific senders, so that it cannot send me, and neither my hosting users?
 
Last edited:

keat63

Well-Known Member
Nov 20, 2014
1,913
259
113
cPanel Access Level
Root Administrator
I found that the exim blacklist wasn't fool proof.

CSF Mailscanner, whilst not free, it's not expensive either.
It's a brilliant tool for such as this.
You can block an email or a TLD at server level.

I'm not affiliated with CSF, but do highly recommend this tool.