Bug#869871: closed by Andreas Metzler (Re: Bug#869871: exim4-config: /etc/mailname is ignored)

2017-08-02 Thread Andreas Metzler
On 2017-08-02 Vladislav Kurz  wrote:
> On 08/02/17 11:21, Debian Bug Tracking System wrote:
>> No (at least not by default), it uses
>> /usr/sbin/sendmail -oi -f lo...@hostname.fqdn -t
>> and the recipient address in To: is qualified with the local hostname.

>> So nothing for exim left to do. Let's close.

> Sure nothing for exim, but I think that the bug is still with mailutils.
> Either they should let sendmail (exim, postfix, whatever) do the
> qualification, or use /etc/mailname (if possible) instead of hostname.

Yes, you are right. However since there is are two (merged) open
bug-report against mailutils for this it is IMHO ok to close this one.
https://bugs.debian.org/253513
https://bugs.debian.org/509810

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



Bug#869871: closed by Andreas Metzler (Re: Bug#869871: exim4-config: /etc/mailname is ignored)

2017-08-02 Thread Vladislav Kurz
On 08/02/17 11:21, Debian Bug Tracking System wrote:

> No (at least not by default), it uses
> /usr/sbin/sendmail -oi -f lo...@hostname.fqdn -t
> and the recipient address in To: is qualified with the local hostname.

> So nothing for exim left to do. Let's close.

Sure nothing for exim, but I think that the bug is still with mailutils.
Either they should let sendmail (exim, postfix, whatever) do the
qualification, or use /etc/mailname (if possible) instead of hostname.

-- 
Best Regards
Vladislav Kurz



Bug#869871: exim4-config: /etc/mailname is ignored

2017-08-01 Thread Vladislav Kurz
On 07/28/17 09:42, Marc Haber wrote:
> On Thu, Jul 27, 2017 at 11:20:32AM +0200, root wrote:
>> after a fresh install of exim4 on debian stretch, and moving our old
>> configuration, I found out that mail to unqualified adresses is sent
>> to user@`hostname -f` instead of user@`cat /etc/mailname`. Just as if
>> MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN was set.
> 
> How are you sending this mail? qualify_domain and qualify_recipient only
> apply to locally generated messages and NOT to messages received from a
> mail client via SMTP.
> 
> You might want to run exim with a debug option and look for the
> qualification code in the debug output.
> 
> Greetings
> Marc
> 

Hello,

I did some more testing. I tried to send using "sendmail -b user", and
it properly qualified the email addresses with the domain name in
/etc/mailname.

Originally I was sending the mail using mail command from mailutils. I
don't know why I had installed mailutils. On all other servers I have
bsd-mailx. So apt-get remove/install, and voila, mails sent using
bsd-mailx have email addresses properly qualified.

So this bug shoudl be rassigned to mailutils

-- 
Best Regards
Vladislav Kurz



Bug#869871: exim4-config: /etc/mailname is ignored

2017-08-01 Thread Marc Haber
On Tue, Aug 01, 2017 at 04:42:24PM +0200, Vladislav Kurz wrote:
> I did some more testing. I tried to send using "sendmail -b user", and
> it properly qualified the email addresses with the domain name in
> /etc/mailname.
> 
> Originally I was sending the mail using mail command from mailutils. I
> don't know why I had installed mailutils. On all other servers I have
> bsd-mailx. So apt-get remove/install, and voila, mails sent using
> bsd-mailx have email addresses properly qualified.

Just out of curiousity, can it be that mailutils uses SMTP to deliver?
Can you show exim's log entires from a message sent with mailutils?

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



Bug#869871: exim4-config: /etc/mailname is ignored

2017-07-28 Thread Marc Haber
On Thu, Jul 27, 2017 at 11:20:32AM +0200, root wrote:
> after a fresh install of exim4 on debian stretch, and moving our old
> configuration, I found out that mail to unqualified adresses is sent
> to user@`hostname -f` instead of user@`cat /etc/mailname`. Just as if
> MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN was set.

How are you sending this mail? qualify_domain and qualify_recipient only
apply to locally generated messages and NOT to messages received from a
mail client via SMTP.

You might want to run exim with a debug option and look for the
qualification code in the debug output.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



Bug#869871: exim4-config: /etc/mailname is ignored

2017-07-27 Thread root
Package: exim4-config
Version: 4.89-2+deb9u1
Severity: normal

Dear Maintainer,

after a fresh install of exim4 on debian stretch, and moving our old
configuration, I found out that mail to unqualified adresses is sent
to user@`hostname -f` instead of user@`cat /etc/mailname`. Just as if
MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN was set.

I have entered the mailname using dpkg-reconfigure exim4-config, and
it is properly set in /etc/mailname and also in
/var/lib/exim4/config.autogenerated:

.ifndef ETC_MAILNAME
ETC_MAILNAME=dopis.cz
.endif

...

.ifndef MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN
.ifndef MAIN_QUALIFY_DOMAIN
qualify_domain = ETC_MAILNAME
.else
qualify_domain = MAIN_QUALIFY_DOMAIN
.endif
.endif

There are no other declarations of
MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN, MAIN_QUALIFY_DOMAIN and
ETC_MAILNAME

I even tried to set MAIN_QUALIFY_DOMAIN, and it did not help either.
Please, look at it and suggest a fix or at least a workaround.

Best Regards
Vladislav Kurz

-- Package-specific info:
Exim version 4.89 #1 built 14-Jun-2017 05:03:07
Copyright (c) University of Cambridge, 1995 - 2017
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2017
Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS 
move_frozen_messages Content_Scanning DKIM DNSSEC Event OCSP PRDR PROXY SOCKS 
TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz 
dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa tls
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
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 generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='internet'
dc_other_hostnames='dopis.cz;diskuze.dopis.cz;news.dopis.cz;skupiny.edb.cz'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains='@mx_secondary;datev.cz'
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='cyrus_delivery'
mailname:dopis.cz
# /etc/default/exim4
EX4DEF_VERSION=''

# 'combined' -   one daemon running queue and listening on SMTP port
# 'no'   -   no daemon running the queue
# 'separate' -   two separate daemons
# 'ppp'  -   only run queue with /etc/ppp/ip-up.d/exim4.
# 'nodaemon' - no daemon is started at all.
# 'queueonly' - only a queue running daemon is started, no SMTP listener.
# setting this to 'no' will also disable queueruns from /etc/ppp/ip-up.d/exim4
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# Options for the SMTP listener daemon. By default, it is listening on
# port 25 only. To listen on more ports, it is recommended to use
# -oX 25:587:10025 -oP /run/exim4/exim.pid
SMTPLISTENEROPTIONS=''

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages exim4-config depends on:
ii  adduser3.115
ii  debconf [debconf-2.0]  1.5.61

exim4-config recommends no packages.

exim4-config suggests no packages.

-- Configuration Files:
/etc/email-addresses changed [not included]
/etc/exim4/conf.d/acl/30_exim4-config_check_mail changed [not included]
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt changed [not included]
/etc/exim4/conf.d/acl/40_exim4-config_check_data changed [not included]
/etc/exim4/conf.d/auth/30_exim4-config_examples changed [not included]
/etc/exim4/conf.d/main/02_exim4-config_options changed [not included]
/etc/exim4/conf.d/router/300_exim4-con