Page 1 of 1

Block incoming email from specific domain @qq.com

Posted: Tue Jan 02, 2018 3:49 pm
by lakis21
Hello,
I am trying to block all incoming from specific domain: *@qq.com.
Can anyone help me step by step?
I tried using spam-block.conf but I didn't have any success.
CentOS 6.8
Exim version 4.84_2 #1 built 09-Jun-2016 11:48:30
Thanks in advance!

Re: Block incoming email from specific domain @qq.com

Posted: Tue Jan 02, 2018 8:36 pm
by imperio
The requirements of the rules are not executed

Re: Block incoming email from specific domain @qq.com

Posted: Wed Jan 03, 2018 5:58 am
by lakis21
imperio wrote:The requirements of the rules are not executed
Thanks for the prompt reply!
Can anyone help me how to do it, step by step?
Thank you once again!

Re: Block incoming email from specific domain @qq.com

Posted: Wed Jan 03, 2018 7:07 am
by imperio

Re: Block incoming email from specific domain @qq.com

Posted: Wed Jan 03, 2018 8:26 am
by lakis21
Thank you for helping me to Update OS and Web : Fields.
Sorry for any inconvenience i may have caused.

Re: Block incoming email from specific domain @qq.com

Posted: Thu Jan 04, 2018 4:00 pm
by lakis21
Can anyone please help me and saw me how I can block email from a specific domains?
for example: [email protected]
Thanks in advance!

Re: Block incoming email from specific domain @qq.com

Posted: Fri Jan 05, 2018 2:05 am
by mehargags
You need to create a block list and then tell Exim to process it by setting up an ACL
Search Google for exim block domain for incoming mails you will get many good pointers.

A few good mentions (even though they are for cPanel, they should work fine for anyone with EXIM MTA)
https://www.ndchost.com/wiki/cpanel/exi ... -by-domain
https://www.tekovic.com/exim-acl-for-bl ... in-senders

Re: Block incoming email from specific domain @qq.com

Posted: Sun Jan 07, 2018 8:38 am
by lakis21
mehargags wrote:You need to create a block list and then tell Exim to process it by setting up an ACL
Search Google for exim block domain for incoming mails you will get many good pointers.

A few good mentions (even though they are for cPanel, they should work fine for anyone with EXIM MTA)
https://www.ndchost.com/wiki/cpanel/exi ... -by-domain
https://www.tekovic.com/exim-acl-for-bl ... in-senders
Thank you mehargags!!!!
I think it worked! I just did two thinks (after I read you second link)
1. add the following line after acl_check_data:

Code: Select all

deny senders = /etc/deny_senders
2. create the following file /etc/deny_senders with the following line

Code: Select all

*@qq.com
after that I restart the server and it worked!!!!

THANK YOU!!!!