Stop Incoming Email Except from External Spam Filter

Prathibha gamage

Registered
Aug 30, 2016
2
0
1
Dubai
cPanel Access Level
Root Administrator
This is related to the following thread.

Stop Incoming Email Except from External Spam Filter

But when I add the below code to my exim configuration, it blocks sending emails from outlook as well. How can I allow sending by outlook or webmail, but receive email only from my spam filter IPs?

accept hosts = :
deny
!hosts = @[] : net-iplsearch;/etc/trustedmailhosts
message = This server does not handle mail directly
 

Prathibha gamage

Registered
Aug 30, 2016
2
0
1
Dubai
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
I tried this as well. But the same issue, outlook clients also gets blocked. How can I restrict remote emails to be accepted only from my external spam filter + all emails sent by mail clients? maybe I should check the sending email domain?
This would require a custom Exim configuration. I couldn't find any other examples other than the previously linked threads, but you may find the Exim user's mailing list helpful for this question:

Exim-users Info Page

Thank you.