Package: exim4-config
Version: 4.87-3~bpo8+1
Severity: normal

Hi,

I have exim4 configured as "mail sent by smarthost; received via smtp or 
fetchmail".

I recently added FQDN to my hostname, so according to Debian reference I edited 
/etc/hosts like this:

127.0.0.1 localhost
127.0.1.1 myhostname.mydomain.local myhostname

and left /etc/hostname like this:
myhostname

/bin/hostname -f now reports:
myhostname.mydomain.local

and /bin/hostname now reports:
myhostname

I ran dpkg-reconfigure exim4-config to configure /etc/mailname as 
myhostname.mydomain.local, and in facts exim4
correctly qualifyes local user addresses with myhostname.mydomain.local. But it 
recognizes these addresses as remote
and tries to send to configured smarthost instead deliver them locally.

dpkg-reconfigure exim4-config at one step says:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please enter a semicolon-separated list of recipient domains for which this 
machine should consider itself the final destination.
These domains are commonly called 'local domains'. The local hostname 
(myhost.mydomain.local) and 'localhost' are always added
to the list given here.

By default all local domains will be treated identically. If both a.example and 
b.example are local domains, acc@a.example and
acc@b.example will be delivered to the same final destination. If different 
domain names should be treated differently, it is
necessary to edit the config files afterwards.

Other destinations for which mail is accepted:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So it says that myhost.mydomain.local will be added to local domains. Bun 
actually local hostname is in local domains list as @,
and @ is expanded with uname(), that collects only myhostname part, so exim4 
does not recognize myhost.mydomain.local (which is
used to fully qualify local/incomplete addresses) as local delivery.

A workaround is to specify myhost.mydomain.local into the list queried in above 
step, but something is misleading (I dont't
know if it is message during dpkg-reconfigure, @ expansion or something in 
system configuration).

Thank you for your work.

-- Package-specific info:
Exim version 4.87 #2 built 22-May-2016 12:50:12
Copyright (c) University of Cambridge, 1995 - 2016
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2016
Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM DNSSEC Event 
OCSP PRDR SOCKS
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz 
dbmnz dnsdb 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: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages exim4-config depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.56

exim4-config recommends no packages.

exim4-config suggests no packages.

-- Configuration Files:
/etc/exim4/passwd.client [Errno 13] Permission denied: 
u'/etc/exim4/passwd.client'

-- debconf information excluded

Reply via email to