Package: exim4-config Version: 4.71-3 Severity: normal
I have a regular expression that I want to put into MAIN_LOCAL_DOMAINS, so that it ends up as MAIN_LOCAL_DOMAINS=@:localhost:5200-glenwood.net:^[^.]+\$ The backslash before the $ is required in order to make exim interpret the $ as an anchor and not as the start of a parameter expansion. If the backslash isn't there, exim issues an error to the paniclog whenever mail is sent. In order to set this up with update-exim4.conf, I tried setting dc_other_hostnames='5200-glenwood.net;^[^.]+\\$' But update-exim4.conf strips both backslashes away, so there's none in MAIN_LOCAL_DOMAINS. So next I tried dc_other_hostnames='5200-glenwood.net;^[^.]+\\\\$' But then update-exim4.conf complains that /usr/sbin/update-exim4.conf: non-ascii value 5200-glenwood.net;^[^.]+\$ read from /etc/exim4/update-exim4.conf.conf, sanitizing to 5200-glenwood.net;^[^.]+\$ So it seems that at present, it's not possible to do this with dc_other_domains. As a workaround, I put the assignment of MAIN_LOCAL_DOMAINS directly into my exim configuration. That works fine. Thanks, Andrew. -- Package-specific info: Exim version 4.71 #1 built 01-Jan-2010 13:39:44 Copyright (c) University of Cambridge, 1995 - 2007 Berkeley DB: Berkeley DB 4.8.26: (December 18, 2009) Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS move_frozen_messages Content_Scanning DKIM Old_Demime Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp Fixed never_users: 0 Size of off_t: 8 GnuTLS compile-time version: 2.8.5 GnuTLS runtime version: 2.8.3 Configuration file is /var/lib/exim4/config.autogenerated # /etc/exim4/update-exim4.conf.conf # # Edit this file and /etc/mailname by hand and execute update-exim4.conf # yourself or use 'dpkg-reconfigure exim4-config' # # Please note that this is _not_ a dpkg-conffile and that automatic changes # to this file might happen. The code handling this will honor your local # changes, so this is usually fine, but will break local schemes that mess # around with multiple versions of the file. # # update-exim4.conf uses this file to determine variable values to replace # the DEBCONFsomethingDEBCONF strings in the configuration template files. # # Most settings found in here do have corresponding questions in the # Debconf configuration, but not all of them. # # This is a Debian specific file # Cause exim to route mail sent to users at unqualified hostnames # (e.g. and...@helium) for local delivery. We don't want it sent out # via the smarthost, which will fail. There are three ways to do this: # (1) Set primary_hostname = helium. This works for u...@helium, # which is the usual case, since by default MAIN_LOCAL_DOMAINS # includes @, which is a synonym for primary_hostname. # (2) Set MAIN_LOCAL_DOMAINS to include a regex for all unqualified # hostnames. This will also then work for e.g. and...@arsenic. # (3) Add the above-mentioned regex to dc_other_hostnames. # update-exim4.conf will then propagate that to MAIN_LOCAL_DOMAINS. dc_other_hostnames='5200-glenwood.net;^[^.]+\\$' dc_eximconfig_configtype='smarthost' dc_local_interfaces='127.0.0.1;192.168.1.2' dc_readhost='5200-glenwood.net' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='192.168.0.0/16' dc_smarthost='smtp.comcast.net::587' dc_localdelivery='maildir_home' CFILEMODE='644' dc_use_split_config='true' dc_hide_mailname='false' dc_mailname_in_oh='true' mailname:5200-glenwood.net -- System Information: Distributor ID: Ubuntu Description: Ubuntu 9.10 Release: 9.10 Codename: karmicArchitecture: amd64 (x86_64) Kernel: Linux 2.6.31-20-generic (SMP w/3 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages exim4-config depends on: ii adduser 3.110ubuntu7 add and remove users and groups ii debconf [debconf-2.0] 1.5.27ubuntu2 Debian configuration management sy exim4-config recommends no packages. exim4-config suggests no packages. -- debconf information: exim4/dc_other_hostnames: 5200-glenwood.net;^[^.]+\\$ exim4/dc_eximconfig_configtype: mail sent by smarthost; received via SMTP or fetchmail exim4/no_config: true exim4/hide_mailname: false exim4/dc_postmaster: exim4/dc_smarthost: smtp.comcast.net::587 exim4/dc_relay_domains: exim4/dc_relay_nets: 192.168.0.0/16 exim4/mailname: 5200-glenwood.net exim4/dc_readhost: 5200-glenwood.net exim4/use_split_config: true exim4/exim4-config-title: exim4/dc_localdelivery: Maildir format in home directory exim4/dc_local_interfaces: 127.0.0.1;192.168.1.2 exim4/dc_minimaldns: false -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org