Home · Latest · Trends  /  Plain Text
4

Exim - How to block certain domain

rated 4 times [  4] [ 0]  / comments: 0 / hits: 778  / 2 years ago, wed, feb 28, 2018, 11:02:34
1. In etc/exim/exim.conf after this line:

# $Cambridge: exim/exim-src/src/configure.default,v 1.14 2009/10/16 07:46:13 tom Exp $
put this line:
system_filter = /etc/exim/filters
2. Create file filters in /etc/exim/ folder with code:
if $header_from: contains "example.com" or $header_from: contains "example2.com" then fail endif
3. Restart Exim:
service exim restart
4. Log:
2018-02-28 10:48:37 1gr3f4-0081uq-O7 <= user@example.com H=g.example.com [xxx.xxx.xx.xx] 2018-02-28 10:48:37 1gr3f4-0081uq-O7 cancelled by system filter
More From » Plain Text
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
Install SpamAssassin and Exim on a CentOS
3 years ago, thu, sep 8, 2016
Common SSH commands for CSF [ConfigServer]
3 years ago, wed, dec 28, 2016
Simple CSS javascript social share buttons
3 years ago, tue, jan 3, 2017
Basic ClamAV antivirus engine SSH command line commands
3 years ago, thu, jan 19, 2017
How to leverage browser caching with htaccess
2 years ago, sat, jun 10, 2017
CSF / LFD block force attacks on Exim Centos
2 years ago, mon, jun 26, 2017
Basic SSH Exim mail queue commands
2 years ago, sat, sep 2, 2017
2 years ago, tue, feb 27, 2018
Sponsor
Posted
paki

paki

Member since Sep 7, 2016
Total Code Snippets: 12
Total Comments: 0
Location: n/a
Following
User not following anyone yet.