Bug#500691: exim4-config: debconf-autogenerated hostname breaks with some locales

Meelis Roos mroos at linux.ee
Tue Sep 30 13:18:56 UTC 2008


Package: exim4-config
Version: 4.63-17
Severity: normal
Tags: patch

/usr/sbin/update-exim4.conf contains a-zA-Z style character class
matching code that is long known to not work with some locales that have
different alphabet order (like Estonian - 'z' after 's' and before 't').
So it strips out any letters from the end of the alphabet and so the
hostname 'foo.cyber.ee' becomes 'foo.c' and mail breaks since it's a
nonexistant domain.

Either use LANG=C explicitly or use POSIX character classes like this
(the patch is tested to fix it for me):

--- /usr/sbin/update-exim4.conf.old	2008-09-30 14:05:09.000000000 +0300
+++ /usr/sbin/update-exim4.conf	2008-09-30 16:03:34.000000000 +0300
@@ -114,7 +114,7 @@
 fi
 
 # take only the first word from /etc/mailname
-mailname="$(</etc/mailname sed -n 's/\([-a-zA-Z0-9@\.]\+\).*/\1/;p;q')"
+mailname="$(</etc/mailname sed -n 's/\([-[:alnum:]@\.]\+\).*/\1/;p;q')"
 
 # barf if lookups are found. They have never been supported here.
 if echo " ${dc_other_hostnames} ${dc_smarthost} ${dc_local_interfaces} ${dc_relay_nets} ${dc_relay_domains}"| grep -q '[[:space:]]\(partial-\)\?\(cdb\|dbm\|dbmnz\|\(d\|ipl\|\(n\?wild\)\?l\)search\|nis\)\([\*@]\)\?[[:space:]]*;'; then

-- Package-specific info:
Exim version 4.63 #1 built 20-Jan-2007 10:40:39
Copyright (c) University of Cambridge 2006
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September  6, 2005)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-16-xen
Locale: LANG=et_EE.UTF-8, LC_CTYPE=et_EE.UTF-8 (charmap=UTF-8)

Versions of packages exim4-config depends on:
ii  adduser                      3.102       Add and remove users and groups
ii  debconf [debconf-2.0]        1.5.11etch2 Debian configuration management sy

exim4-config recommends no packages.

-- debconf information excluded





More information about the Pkg-exim4-maintainers mailing list