Modifying the exim configuration files.

MailCleaner Support
Added almost 4 years ago

In MailCleaner, there are 3 exim servers.

The first one, called Incoming queue is the one accepting the messages for MailCleaner. The mail is then forward to the 2nd exim.
The 2nd one, called filtering queue is the one submitting the message to most of our anti spam-checks. The mail is then forwarded to the 3rd exim
The 3rd one , called outgoing queue delivers the message to the server of your cutomers/users.

If you use MailCleaner also as an outgoing relay, then the relayed mails only go through the 1st queue.

As nothing comes that easily, those 3 servers are also named exim_stage1, exim_stage2 and exim_stage4...

Some of users are modifying the behavior of those servers, that is to say modify the files :

/usr/mailcleaner/etc/exim/exim_stage1.conf_template
/usr/mailcleaner/etc/exim/exim_stage2.conf_template
/usr/mailcleaner/etc/exim/exim_stage4.conf_template

This provokes a drift between our users configuration files and the one we maintain on GitHub. Therefore we added a mechanism in those template files. For example,

/usr/mailcleaner/etc/exim/exim_stage1.conf_template

becomes

/usr/mailcleaner/etc/exim/exim_stage1.conf

When one restart his/her exim_stage1.

If you want to change one of those file, please contact us so that we update our files to take your modification into account and therefore avoid to loose your modification or break your configuration on our next update involving the same file.

If you use the keyword

__INCLUDE__

in one of those configuration file, MailCleaner will include your modified file.

Let s take an example to make it easier :
In MailCleaner s

/usr/mailcleaner/etc/exim/exim_stage1.conf_template

file, you can find this line :

__INCLUDE__ stage1/ldap

Finding this line MailCleaner will first check for the file named

/usr/mailcleaner/etc/exim/custom/stage1/ldap_template

If this file DOES NOT exist, MailCleaner will look for

/usr/mailcleaner/etc/exim/stage1/ldap_template

In both case, MailCleaner will generate in the same folder as the template file, a file without the _template extension and will then include it in the exim configuration file.