diff options
Diffstat (limited to 'debian/debconf/conf.d/router/200_exim4-config_primary')
-rw-r--r-- | debian/debconf/conf.d/router/200_exim4-config_primary | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/debian/debconf/conf.d/router/200_exim4-config_primary b/debian/debconf/conf.d/router/200_exim4-config_primary new file mode 100644 index 0000000..a448400 --- /dev/null +++ b/debian/debconf/conf.d/router/200_exim4-config_primary @@ -0,0 +1,51 @@ +# This file holds the primary router, responsible for nonlocal mails + +.ifdef DCconfig_internet +# configtype=internet +# +# deliver mail directly to the recipient. +dnslookup: + driver = dnslookup + domains = ! +local_domains + transport = remote_smtp + same_domain_copy_routing = yes + # ignore private rfc1918 and APIPA addresses + ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\ + 172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 + no_more + +.endif + + +.ifdef DCconfig_local +# configtype=local +# +# Stand-alone system, so generate an error for mail to a non-local domain +nonlocal: + driver = redirect + allow_fail + data = :fail: Mailing to remote domains not supported + no_more + domains = ! +local_domains + +.endif + + +.ifdef DCconfig_smarthost DCconfig_satellite +# configtype=smarthost or configtype=satellite +# +# Send all non-local mail to a single other machine (smarthost). +smarthost: + driver = manualroute + domains = ! +local_domains + transport = remote_smtp + route_list = * DCsmarthost + host_find_failed = defer + same_domain_copy_routing = yes + no_more + +.endif + + +# The "no_more" above means that all routers below here are for +# domains in the local_domains list, i.e. just like Exim 3 directors. |