exim: Completely review the exim configuration.
[matthijs/servers/drsnuggles.git] / etc / exim4 / conf.d / main / main_config
diff --git a/etc/exim4/conf.d/main/main_config b/etc/exim4/conf.d/main/main_config
new file mode 100644 (file)
index 0000000..9d05b0e
--- /dev/null
@@ -0,0 +1,61 @@
+######################################################################
+#                    MAIN CONFIGURATION SETTINGS                     #
+######################################################################
+
+# LDAP server to use for main lookups
+LDAPSERVER=ldap://ldap.drsnuggles.stderr.nl:389
+LDAPBASE=dc=drsnuggles,dc=stderr,dc=nl
+
+# List of virtual domains for which we deliver to any address that happens to
+# be configured in the LDAP directory.
+domainlist virtual_domains = stdout.nl : blues-brothers.eu
+# List of real hosts for which we deliver mail to real users.
+domainlist real_domains = *.drsnuggles.stderr.nl : drsnuggles.stderr.nl
+# The list of domains for which we handle mail ourselves
+domainlist local_domains = virtual_domains : real_domains
+
+# List of recipient domains to relay _to_. Use this list if you're -
+# for example - fallback MX or mail gateway for domains.
+domainlist relay_to_domains =
+
+# Relay messages for all other vservers and the host. We would specify
+# +real_domains here, but mixing domainlists and hostlist doesn't seem to work
+# at first glance.
+hostlist relay_from_hosts = *.drsnuggles.stderr.nl : drsnuggles.stderr.nl 
+
+# Use this domain on any unqualified addresses that get submitted. Since this
+# can come from any vserver, just use our main hostname.
+qualify_domain = drsnuggles.stderr.nl
+
+# The gecos field in /etc/passwd holds not only the name. see passwd(5).
+gecos_pattern = ^([^,:]*)
+gecos_name = $1
+
+# Defines the access control list that is run when an
+# SMTP MAIL command is received.
+acl_smtp_mail = acl_check_mail
+# Defines the access control list that is run when an
+# SMTP RCPT command is received.
+acl_smtp_rcpt = acl_check_rcpt
+# Defines the access control list that is run when an
+# SMTP DATA command is received.
+acl_smtp_data = acl_check_data
+
+
+# Do a reverse DNS lookup on all incoming IP calls, in order to get the
+# true host name.
+host_lookup = *
+
+# Queue handling
+#
+# Drop undeliverable bounces after this time
+ignore_bounce_errors_after = 2d
+# Bounce frozen messages after this time
+timeout_frozen_after = 7d
+# Tell postmaster about freezing
+freeze_tell = postmaster
+# Define spool directory
+spool_directory = /var/spool/exim4
+
+# Log subjects, for easy tracing of messages and peer dn on TLS connections.
+log_selector = +subject +tls_peerdn +tls_certificate_verified