Bug#697612: exim4-daemon-light: "MAIN_LOCAL_DOMAINS=@:localhost" seems not to respect "@"

Diego Guella diego.guella at deviltechnologies.com
Thu Apr 24 13:27:56 UTC 2014


Hi Marc, and thanks for your reply.
Please find my answers inline.


----- Original Message ----- 
From: "Marc Haber" <mh+debian-packages at zugschlus.de>
To: "Diego Guella" <diego.guella at deviltechnologies.com>; 
<697612 at bugs.debian.org>
Cc: <osamu at debian.org>
Sent: Thursday, April 24, 2014 2:32 PM
Subject: Re: Bug#697612: exim4-daemon-light: 
"MAIN_LOCAL_DOMAINS=@:localhost" seems not to respect "@"


> Thanks for the comprehensive report. What do your logs say with regard
> to 1Wcool-0001JR-Kw?

root at devilserver:/var/log/exim4# cat mainlog.1 | grep 1Wcool-0001JR-Kw
-----
2014-04-23 06:29:56 1Wcool-0001JR-Kw <= <> H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=7687 
id=E1WcooT-0001Hx-3t at devilserver
2014-04-23 06:29:56 1Wcool-0001JR-Kw ** 
postmaster at devilserver.deviltechnologies.com: Too many "Received" headers - 
suspected mail loop
2014-04-23 06:29:56 1Wcoom-0001JU-1x <= <> R=1Wcool-0001JR-Kw U=Debian-exim 
P=local S=667
2014-04-23 06:29:56 1Wcool-0001JR-Kw Frozen (delivery error message)
2014-04-23 06:30:05 1Wcool-0001JR-Kw Message is frozen
2014-04-23 07:00:05 1Wcool-0001JR-Kw Message is frozen
2014-04-23 07:30:05 1Wcool-0001JR-Kw Message is frozen
2014-04-23 07:54:54 1Wcool-0001JR-Kw Message is frozen
2014-04-23 08:24:53 1Wcool-0001JR-Kw Message is frozen
2014-04-23 08:29:42 1Wcool-0001JR-Kw Unfrozen by forced delivery
2014-04-23 08:29:42 1Wcool-0001JR-Kw ** 
postmaster at devilserver.deviltechnologies.com: Too many "Received" headers - 
suspected mail loop
2014-04-23 08:29:43 1Wcqgg-0001A1-Pz <= <> R=1Wcool-0001JR-Kw U=Debian-exim 
P=local S=667
2014-04-23 08:29:43 1Wcool-0001JR-Kw Frozen (delivery error message)
2014-04-23 08:43:53 1Wcool-0001JR-Kw Unfrozen by forced delivery
2014-04-23 08:43:53 1Wcool-0001JR-Kw cancelled by root
2014-04-23 08:43:53 1Wcool-0001JR-Kw Completed
-----

>From 08:29:42 on, there are my manual actions to purge the mail queue (this 
was not the only message frozen, there were 50 or so).


In particular, this is where all started (my 2 daily messages from mdadm):
root at devilserver:/var/log/exim4# cat mainlog.1 | head -n 25
-----
2014-04-23 06:25:06 1Wcok6-0000pP-1B <= 
root at devilserver.deviltechnologies.com U=root P=local S=1031
2014-04-23 06:25:06 1Wcok6-0000pS-Bo <= 
root at devilserver.deviltechnologies.com U=root P=local S=1031
2014-04-23 06:25:07 1Wcok6-0000pP-1B => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:07 1Wcok6-0000pP-1B Completed
2014-04-23 06:25:07 1Wcok6-0000pS-Bo => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:07 1Wcok6-0000pS-Bo Completed
2014-04-23 06:25:08 1Wcok7-0000pc-LS <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=1545 
id=E1Wcok6-0000pS-Bo at devilserver
2014-04-23 06:25:08 1Wcok7-0000pb-LS <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=1545 
id=E1Wcok6-0000pP-1B at devilserver
2014-04-23 06:25:08 1Wcok7-0000pc-LS => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:09 1Wcok7-0000pc-LS Completed
2014-04-23 06:25:09 1Wcok7-0000pb-LS => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:09 1Wcok7-0000pb-LS Completed
2014-04-23 06:25:09 1Wcok8-0000ph-O5 <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=2059 
id=E1Wcok6-0000pS-Bo at devilserver
2014-04-23 06:25:09 1Wcok8-0000pi-Oz <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=2059 
id=E1Wcok6-0000pP-1B at devilserver
2014-04-23 06:25:10 1Wcok8-0000ph-O5 => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:10 1Wcok8-0000ph-O5 Completed
2014-04-23 06:25:10 1Wcok8-0000pi-Oz => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:10 1Wcok8-0000pi-Oz Completed
2014-04-23 06:25:10 1WcokA-0000pn-42 <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=2573 
id=E1Wcok6-0000pS-Bo at devilserver
2014-04-23 06:25:10 1WcokA-0000po-6W <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=2573 
id=E1Wcok6-0000pP-1B at devilserver
2014-04-23 06:25:10 1WcokA-0000pn-42 => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:10 1WcokA-0000pn-42 Completed
2014-04-23 06:25:11 1WcokA-0000po-6W => 
root at devilserver.deviltechnologies.com R=smarthost T=remote_smtp_smarthost 
H=vps26197.ovh.net [46.105.16.2] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 
DN="C=IT,ST=Brescia,L=Rovato,O=Devil 
Technologies,CN=vps26197.ovh.net,EMAIL=info at deviltechnologies.com"
2014-04-23 06:25:11 1WcokA-0000po-6W Completed
2014-04-23 06:25:11 1WcokB-0000pt-1Z <= 
root at devilserver.deviltechnologies.com H=2.ip-46-105-16.eu 
(vps26197.ovh.net) [46.105.16.2] P=esmtp S=3087 
id=E1Wcok6-0000pS-Bo at devilserver
-----

Follows a long list of bouncing mails from devilserver and the smarthost, 
the latter correctly sending the mail to devilserver, and devilserver 
uncorrectly forwarding the mail to the smarthost.


> Are you positive that your DNS was OK at the time of this incident and
> that your exim was thus able to determine that
> devilserver.deviltechnologies.com is the local host?

I can _not_ confirm that, because that happened when I wasn't here.
However:
-I am now running with Osamu's workaround.
-If I remove the workaround _now_, exim is again wrong sending the mail to 
the smarthost.

I removed the workaround for you just now to make these tests:

[WORKAROUND OFF]

root at devilserver:/etc/exim4# dig devilserver.deviltechnologies.com
-----

; <<>> DiG 9.7.3 <<>> devilserver.deviltechnologies.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20711
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;devilserver.deviltechnologies.com. IN  A

;; ANSWER SECTION:
devilserver.deviltechnologies.com. 86400 IN A   192.168.200.249

;; AUTHORITY SECTION:
devilserver.deviltechnologies.com. 86400 IN NS 
devilserver.deviltechnologies.com.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Apr 24 15:18:40 2014
;; MSG SIZE  rcvd: 81

-----


root at devilserver:/etc/exim4# exim -v -bt 
root at devilserver.deviltechnologies.com
-----
R: smarthost for root at devilserver.deviltechnologies.com
root at devilserver.deviltechnologies.com
  router = smarthost, transport = remote_smtp_smarthost
  host vps26197.ovh.net [46.105.16.2]
-----


root at devilserver:/etc/exim4# exim -v -bt root at localhost
-----
R: system_aliases for root at localhost
R: smarthost for dguella at devilserver.deviltechnologies.com
dguella at devilserver.deviltechnologies.com
    <-- root at localhost
  router = smarthost, transport = remote_smtp_smarthost
  host vps26197.ovh.net [46.105.16.2]
-----


The correct behaviour should be:
[WORKAROUND ON]

root at devilserver:/etc/exim4# exim -v -bt 
root at devilserver.deviltechnologies.com
-----
R: system_aliases for root at devilserver.deviltechnologies.com
R: system_aliases for dguella at devilserver.deviltechnologies.com
R: userforward for dguella at devilserver.deviltechnologies.com
R: procmail for dguella at devilserver.deviltechnologies.com
dguella at devilserver.deviltechnologies.com
    <-- root at devilserver.deviltechnologies.com
  router = procmail, transport = procmail_pipe
-----

root at devilserver:/etc/exim4# exim -v -bt root at localhost
-----
R: system_aliases for root at localhost
R: system_aliases for dguella at devilserver.deviltechnologies.com
R: userforward for dguella at devilserver.deviltechnologies.com
R: procmail for dguella at devilserver.deviltechnologies.com
dguella at devilserver.deviltechnologies.com
    <-- root at localhost
  router = procmail, transport = procmail_pipe
-----


(If the DNS server reply is wrong or misconfigured, please tell me and I 
will make the appropriate changes and retest!)


> Greetings
> Marc

Thank you,
Diego


>
> On Wed, Apr 23, 2014 at 10:38:30AM +0200, Diego Guella wrote:
>> From: Diego Guella <diego.guella at deviltechnologies.com>
>> Subject: Bug#697612: exim4-daemon-light: "MAIN_LOCAL_DOMAINS=@:localhost"
>>  seems not to respect "@"
>> To: 697612 at bugs.debian.org
>> Cc: Diego Guella <diego.guella at deviltechnologies.com>, osamu at debian.org
>> Reply-To: Diego Guella <diego.guella at deviltechnologies.com>,
>>  697612 at bugs.debian.org
>> Date: Wed, 23 Apr 2014 10:38:30 +0200
>> X-Debian-PR-Package: exim4-daemon-light
>> X-Mailer: Microsoft Outlook Express 6.00.2900.5931
>> List-Id: Reach the exim4 maintainers
>>  <pkg-exim4-maintainers.lists.alioth.debian.org>
>> X-Spam-Score: (--) -2.6
>> X-Spam-Report: torres.zugschlus.de  Content analysis details:   (-2.6
>>  points, 5.0 required)   pts  rule name              description  ----
>>  ---------------------- ------------------------------------------- -0.7
>>  RP_MATCHES_RCVD        Envelope sender domain matches handover relay
>>  domain -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 
>> 1%
>>                              [score: 0.0000]
>>
>> Package: exim4-daemon-light
>> Version: 4.72-6+squeeze3
>>
>> Same problem here.
>> The bad news is, this happened from today, with no configuration
>> changes (that I know of) on the server.
>> The server is in production.
>>
>> Local mails to root at localhost and user at localhost are delivered
>> locally without problems, but local mails to
>> root at devilserver.deviltechnologies.com does get sent to the
>> smarthost.
>> The server configuration is some years old, and it worked perfectly
>> until yesterday! (I get a daily mail from mdadm at 06:25 local time)
>> Today, I found that the mail was bounced and bounced again from my
>> server and the smarthost, and then my server stopped trying, sending
>> this error email message:
>> -----
>> Message 1Wcool-0001JR-Kw has been frozen (delivery error message).
>> The sender is <>.
>>
>> The following address(es) have yet to be delivered:
>>  postmaster at devilserver.deviltechnologies.com: Too many "Received"
>> headers - suspected mail loop
>> -----
>>
>> update-exim4.conf.conf:
>> -----
>> dc_eximconfig_configtype='smarthost'
>> dc_other_hostnames=''
>> dc_local_interfaces=''
>> dc_readhost=''
>> dc_relay_domains=''
>> dc_minimaldns='false'
>> dc_relay_nets=''
>> dc_smarthost='vps26197.ovh.net'
>> CFILEMODE='644'
>> dc_use_split_config='false'
>> dc_hide_mailname='false'
>> dc_mailname_in_oh='true'
>> dc_localdelivery='maildir_home'
>> -----
>>
>> Some other information:
>> -----
>> root at devilserver:/etc/exim4# uname -n
>> devilserver
>> root at devilserver:/etc/exim4# hostname
>> devilserver
>> root at devilserver:/etc/exim4# hostname -f
>> devilserver.deviltechnologies.com
>> root at devilserver:/etc/exim4# grep -v ^# /etc/hosts
>> 127.0.0.1       localhost
>> 192.168.200.249 devilserver.deviltechnologies.com       devilserver
>>
>> ::1     ip6-localhost ip6-loopback
>> fe00::0 ip6-localnet
>> ff00::0 ip6-mcastprefix
>> ff02::1 ip6-allnodes
>> ff02::2 ip6-allrouters
>> -----
>>
>> I have BIND installed, version 1:9.7.3.dfsg-1~squeeze11
>>
>> I tried Osamu Aoki's workaround
>> (dc_other_hostnames='devilserver.deviltechnologies.com') and it
>> fixes the problem for me, too.
>>
>> I assume there is some deeply hidden misconfiguration of something
>> other than exim on my server, or in my network.
>> Again, this setup has worked fine for some years.
>> I have a backup of the server configuration of some months ago, and
>> I can double-check for changes in the configuration files.
>> Do somebody know where can I look at?
>>
>>
>> Thanks,
>> Diego
>>
>> -- 
>> Pkg-exim4-maintainers mailing list
>> Pkg-exim4-maintainers at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exim4-maintainers
>
> -- 
> -----------------------------------------------------------------------------
> Marc Haber         | "I don't trust Computers. They | Mailadresse im 
> Header
> Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 
> 31958061
> Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 
> 31958062
>
> 



More information about the Pkg-exim4-maintainers mailing list