On 2018-04-11 13:28, Graeme Fowler wrote:

> On 10 Apr 2018, at 16:51, Nazarevych Ol via Exim-users <exim-users@???> wrote:

> > Why "Internal server" use primary_hostname instead qualify_domain ?

>

> You most likely need to look at your configuration to find that. You don’t 
> say on what operating system you’re running, nor whether you’ve already got 
> dsn_from set somewhere.

>

> By default, exim does not use postmaster@$primary_hostname, so you’ve almost 
> certainly got either a global setting or something in a router or transport 
> (or a rewrite) that’s doing it for you.

>

> Graeme

>

Hello, thanks fot the answer. This is a clear CentOS Linux release 7.4.1708 
(Core) install with Exim version 4.90_1 #2 built 16-Feb-2018 16:47:02
The field dsn_from was set to:

dsn_from = Mail Delivery System <Mailer-Daemon@$qualify_domain>

But this does not does not affect to SPF check on another side on Cisco ESA, 
and Mail delivery reports looks like:

From: mailer-dae...@company.com - there were dsn_from applied, if we change 
dsn_from for something accurate as Mailer-Daemon@$exeactly.com - we can see 
that field changed in a NDN letter.

But this is an declarative fields and real headers looks like:

Received-SPF: None (esa.company.com: no sender authenticity
  information available from domain of
  postmas...@corp17.company.com) identity=mailfrom;
  client-ip=1.1.1.1; receiver=esa.company.com;
  envelope-from=""; x-sender="postmas...@corp17.company.com";
  x-conformance=spf_only
Received-SPF: None (esa.company.com: no sender authenticity
  information available from domain of
  postmas...@corp17.company.com) identity=helo;
  client-ip=1.1.1.1; receiver=esa.company.com;
  envelope-from=""; x-sender="postmas...@corp17.company.com";
  x-conformance=spf_only

Authentication-Results: esa.company.com; spf=None 
smtp.mailfrom=postmas...@corp17.company.com; spf=None 
smtp.helo=postmas...@corp17.company.com; dkim=pass (signature verified) 
header.i=@company.com; spf=None smtp.helo=postmas...@corp17.company.com; 
dmarc=pass (p=reject dis=none) d=company.com
Received: from corp17.company.com ([1.1.1.1])
  by esa.company.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2018 
18:06:39 +0300
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;

Received: from exim by corp17.company.com with local (Exim 4.90_1)
    id 1f5upx-0002G0-08
    for i...@company.com; Tue, 10 Apr 2018 18:05:33 +0300
X-Failed-Recipients: wwwwi...@gmail.com
Auto-Submitted: auto-replied
From: Mail Delivery System <mailer-dae...@company.com> -------------- this is 
correct, but fail SPF check above

To: i...@company.com
Subject: Mail delivery failed: returning message to sender
Date: Tue, 10 Apr 2018 18:05:33 +0300
Content-type: text/plain; charset=us-ascii

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to