[exim-cvs] configure.default handle IPv6 localhost better.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] configure.default handle IPv6 localhost better.
Gitweb: http://git.exim.org/exim.git/commitdiff/ff284120aa17a2b2d16d13bcdf67b794800f047c
Commit:     ff284120aa17a2b2d16d13bcdf67b794800f047c
Parent:     035c7f1e7b6996382634129129d4e14826191148
Author:     Phil Pennock <pdp@???>
AuthorDate: Mon Mar 11 14:18:23 2013 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Mon Mar 11 14:18:23 2013 -0400


    configure.default handle IPv6 localhost better.


    Base patch by Alain Williams.
    Tweaked, to avoid putting an IPv6-dependency into the default
    uncommented form, and some rewording.


    Bugzilla 880.
    GitHub PR #1.
---
 doc/doc-txt/ChangeLog     |    4 ++++
 src/src/configure.default |   13 +++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index e309317..c8155aa 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -171,6 +171,10 @@ JH/14 SMTP PRDR (http://www.eric-a-hall.com/specs/draft-hall-prdr-00.txt).
 PP/16 Fix problems caused by timeouts during quit ACLs trying to double
       fclose().  Diagnosis by Todd Lyons.


+PP/17 Update configure.default to handle IPv6 localhost better.
+      Patch by Alain Williams (plus minor tweaks).
+      Bugzilla 880.
+


Exim version 4.80.1
-------------------
diff --git a/src/src/configure.default b/src/src/configure.default
index 792b3ec..1274349 100644
--- a/src/src/configure.default
+++ b/src/src/configure.default
@@ -56,7 +56,9 @@

domainlist local_domains = @
domainlist relay_to_domains =
-hostlist relay_from_hosts = 127.0.0.1
+hostlist relay_from_hosts = localhost
+# (We rely upon hostname resolution working for localhost, because the default
+# uncommented configuration needs to work in IPv4-only environments.)

# Most straightforward access control requirements can be obtained by
# appropriate settings of the above options. In more complicated situations,
@@ -91,12 +93,13 @@ hostlist relay_from_hosts = 127.0.0.1
# to any other host on the Internet. Such a setting commonly refers to a
# complete local network as well as the localhost. For example:
#
-# hostlist relay_from_hosts = 127.0.0.1 : 192.168.0.0/16
+# hostlist relay_from_hosts = <; 127.0.0.1 ; ::1 ; 192.168.0.0/16
#
# The "/16" is a bit mask (CIDR notation), not a number of hosts. Note that you
# have to include 127.0.0.1 if you want to allow processes on your host to send
# SMTP mail by using the loopback address. A number of MUAs use this method of
-# sending mail.
+# sending mail. Often, connections are made to "localhost", which might be ::1
+# on IPv6-enabled hosts. Do not forget CIDR for your IPv6 networks.

# All three of these lists may contain many different kinds of item, including
# wildcarded names, regular expressions, and file lookups. See the reference
@@ -539,6 +542,8 @@ dnslookup:
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
+# if ipv6-enabled then instead use:
+# ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1
no_more


@@ -553,7 +558,7 @@ dnslookup:
# domains = ! +local_domains
# transport = remote_smtp
# route_data = MAIL.HOSTNAME.FOR.CENTRAL.SERVER.EXAMPLE
-# ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
+# ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1
# no_more