MTA: Exim

Configuration

by ross at 17:47:13 on March 20, 2014

Edit /usr/local/etc/exim/configure.

--- configure.default    2011-08-13 15:29:20.000000000 +0300
+++ configure    2011-08-21 08:21:21.000000000 +0300
@@ -48,7 +48,7 @@
 # uname() function is called to obtain the name. In many cases this does
 # the right thing and you need not set anything explicitly.
 
-# primary_hostname =
+primary_hostname = mx.example.com
 
 
 # The next three settings create two lists of domains and one list of hosts.
@@ -56,7 +56,7 @@
 # +local_domains, +relay_to_domains, and +relay_from_hosts, respectively. They
 # are all colon-separated lists:
 
-domainlist local_domains = @
+domainlist local_domains = coffin.lan : example.com
 domainlist relay_to_domains =
 hostlist   relay_from_hosts = localhost
 
@@ -173,7 +173,7 @@
 # unqualified addresses from remote sources. If this option is not set, the
 # primary_hostname value is used for qualification.
 
-# qualify_domain =
+qualify_domain = example.com
 
 
 # If you want unqualified recipient addresses to be qualified with a different
@@ -232,8 +232,8 @@
 # connection, leading to delays on starting up SMTP sessions. (The default was
 # reduced from 30s to 5s for release 4.61.)
 
-rfc1413_hosts = *
-rfc1413_query_timeout = 5s
+rfc1413_hosts =
+rfc1413_query_timeout = 0s
 
 
 # By default, Exim expects all envelope addresses to be fully qualified, that
@@ -660,13 +660,16 @@
 
 local_delivery:
   driver = appendfile
-  file = /var/mail/$local_part
+#  file = /var/mail/$local_part
+  maildir_format = true
+  directory = ${home}/Maildir
+  create_directory
   delivery_date_add
   envelope_to_add
   return_path_add
-  group = mail
   user = $local_part
-  mode = 0660
+  directory_mode = 700
+  mode = 600
   no_mode_fail_narrower
 
 
@@ -688,6 +691,8 @@
 
 address_file:
   driver = appendfile
+  maildir_format = true
+  create_directory
   delivery_date_add
   envelope_to_add
   return_path_add
@@ -734,6 +739,8 @@
 
 begin rewrite
 
+# Rewrite envelope From field, From: header
+*@*.lan $local_part@example.com Ff
 
 
 ######################################################################

 

Comments