Exim Configuration – Understanding Exim Configuration Files on Debian/Ubuntu

configurationdebianeximUbuntu

I want to understand what's going on with this Exim configuration directory.

In /etc/exim4, there's:

* exim4.conf.template
* update-exim4.conf.conf
* conf.d

The conf.d has a mess of directories and files, and inside each are a bunch of if statements which I find really different.

For example:

maildir_home:
  debug_print = "T: maildir_home for $local_part@$domain"
  driver = appendfile
  .ifdef MAILDIR_HOME_MAILDIR_LOCATION
  directory = MAILDIR_HOME_MAILDIR_LOCATION
  .else
  directory = $home/Maildir
  .endif
  .ifdef MAILDIR_HOME_CREATE_DIRECTORY
  create_directory
  .endif
  .ifdef MAILDIR_HOME_CREATE_FILE

My question is,

-where do the CAPS VARIABLES get defined?

  • how can I change them?
  • why are there so many if statements in these configuration files?

Best Answer

This is Debian/Ubuntu's way of managing Exim4. You'll need to limit yourself to using the dpkg-reconfigure exim4-config utility and it's config file, update-exim4.conf.conf to manage it, or, just blow it all away and manage it all yourself. Check out:

http://pkg-exim4.alioth.debian.org/README/README.Debian.html#completely-different-configuration