Block all inbound emails except specific list?

z3d3m0n

Active Member
Feb 8, 2016
34
2
8
Prague
cPanel Access Level
Root Administrator
Hello Community,

i run a small commercial email server and i don't want to deal with spam , is there a way how to block incoming domains, emails except for a certain list?

thx
 

keat63

Well-Known Member
Nov 20, 2014
1,894
248
93
cPanel Access Level
Root Administrator
If you want to do this at server level, then you may have to look at something like CSF mailscanner.
Also, there is an exim mod to block domains, but i found it tempremental.
Search for exim_blacklist, it will appear somewhere.

Alterntively, if you want to do this at domain level then a global email filter in your cpanel will do this.
Although compiling the rule could be tedious.