MTA: Exim

Enable Exim filters

by ross at 06:07:12 on October 22, 2012

Exim has special feature called “filters”. There are system and user's filters. Here's the docs: filter files and system filtering.

In order to enable the system filter add /usr/local/etc/exim/configure before “ACL CONFIGURATION” section:

system_filter = /etc/mail/exim.filter
system_filter_user = mailnull

Create the file (note: every filter starts with ”# Exim filter” line):

# Exim filter

# Uncomment to freeze all incomming messages:
#freeze text "Test filter rule"
# chmod mailnull:mail /etc/mail/exim.filter

You can turn user's .forward files into filters. Just uncomment the line of userforward router:


Restart Exim:

# service exim restart