Bug#550841: Smarthost authentication not working with IPv6

Klaus Keppler kk at keppler-it.de
Tue Oct 13 11:55:35 UTC 2009


Package: exim4-config
Version: 4.63-17
Severity: important
Tags: patch ipv6

The configuration template at /etc/exim4/exim4.conf.template is not 
capable of handling IPv6 smarthosts with SMTP authentication.

The following section does a lookup in /etc/exim4/passwd.client and (if 
found) returns the $host_address value in the hosts_try_auth list:

---cut---
remote_smtp_smarthost:
   debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
   driver = smtp
   hosts_try_auth = ${if exists{CONFDIR/passwd.client} \
         {\
         ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\
         }\
         {} \
       }
---cut---

If $host_address is an IPv6 address, the colons are interpreted as 
address seperators. To use an IPv6 address, the hosts_try_auth list 
should start with "<; ", thus only a semicolon will be used as seperator.

FIX:
- hosts_try_auth = ${if exists{CONFDIR/passwd.client} \
+ hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \

Best regards,

    Klaus Keppler





More information about the Pkg-exim4-maintainers mailing list