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


----- Original Message ----- From: "Marc Haber" <[email protected]> To: "Diego Guella" <[email protected]>; <[email protected]>
Cc: <[email protected]>
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@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@devilserver 2014-04-23 06:29:56 1Wcool-0001JR-Kw ** [email protected]: 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 ** [email protected]: 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@devilserver:/var/log/exim4# cat mainlog.1 | head -n 25
-----
2014-04-23 06:25:06 1Wcok6-0000pP-1B <= [email protected] U=root P=local S=1031 2014-04-23 06:25:06 1Wcok6-0000pS-Bo <= [email protected] U=root P=local S=1031 2014-04-23 06:25:07 1Wcok6-0000pP-1B => [email protected] 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 protected]"
2014-04-23 06:25:07 1Wcok6-0000pP-1B Completed
2014-04-23 06:25:07 1Wcok6-0000pS-Bo => [email protected] 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 protected]"
2014-04-23 06:25:07 1Wcok6-0000pS-Bo Completed
2014-04-23 06:25:08 1Wcok7-0000pc-LS <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=1545 id=E1Wcok6-0000pS-Bo@devilserver 2014-04-23 06:25:08 1Wcok7-0000pb-LS <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=1545 id=E1Wcok6-0000pP-1B@devilserver 2014-04-23 06:25:08 1Wcok7-0000pc-LS => [email protected] 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 protected]"
2014-04-23 06:25:09 1Wcok7-0000pc-LS Completed
2014-04-23 06:25:09 1Wcok7-0000pb-LS => [email protected] 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 protected]"
2014-04-23 06:25:09 1Wcok7-0000pb-LS Completed
2014-04-23 06:25:09 1Wcok8-0000ph-O5 <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=2059 id=E1Wcok6-0000pS-Bo@devilserver 2014-04-23 06:25:09 1Wcok8-0000pi-Oz <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=2059 id=E1Wcok6-0000pP-1B@devilserver 2014-04-23 06:25:10 1Wcok8-0000ph-O5 => [email protected] 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 protected]"
2014-04-23 06:25:10 1Wcok8-0000ph-O5 Completed
2014-04-23 06:25:10 1Wcok8-0000pi-Oz => [email protected] 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 protected]"
2014-04-23 06:25:10 1Wcok8-0000pi-Oz Completed
2014-04-23 06:25:10 1WcokA-0000pn-42 <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=2573 id=E1Wcok6-0000pS-Bo@devilserver 2014-04-23 06:25:10 1WcokA-0000po-6W <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=2573 id=E1Wcok6-0000pP-1B@devilserver 2014-04-23 06:25:10 1WcokA-0000pn-42 => [email protected] 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 protected]"
2014-04-23 06:25:10 1WcokA-0000pn-42 Completed
2014-04-23 06:25:11 1WcokA-0000po-6W => [email protected] 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 protected]"
2014-04-23 06:25:11 1WcokA-0000po-6W Completed
2014-04-23 06:25:11 1WcokB-0000pt-1Z <= [email protected] H=2.ip-46-105-16.eu (vps26197.ovh.net) [46.105.16.2] P=esmtp S=3087 id=E1Wcok6-0000pS-Bo@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@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@devilserver:/etc/exim4# exim -v -bt [email protected]
-----
R: smarthost for [email protected]
[email protected]
 router = smarthost, transport = remote_smtp_smarthost
 host vps26197.ovh.net [46.105.16.2]
-----


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


The correct behaviour should be:
[WORKAROUND ON]

root@devilserver:/etc/exim4# exim -v -bt [email protected]
-----
R: system_aliases for [email protected]
R: system_aliases for [email protected]
R: userforward for [email protected]
R: procmail for [email protected]
[email protected]
   <-- [email protected]
 router = procmail, transport = procmail_pipe
-----

root@devilserver:/etc/exim4# exim -v -bt root@localhost
-----
R: system_aliases for root@localhost
R: system_aliases for [email protected]
R: userforward for [email protected]
R: procmail for [email protected]
[email protected]
   <-- root@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 <[email protected]>
Subject: Bug#697612: exim4-daemon-light: "MAIN_LOCAL_DOMAINS=@:localhost"
 seems not to respect "@"
To: [email protected]
Cc: Diego Guella <[email protected]>, [email protected]
Reply-To: Diego Guella <[email protected]>,
 [email protected]
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@localhost and user@localhost are delivered
locally without problems, but local mails to
[email protected] 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:
 [email protected]: 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@devilserver:/etc/exim4# uname -n
devilserver
root@devilserver:/etc/exim4# hostname
devilserver
root@devilserver:/etc/exim4# hostname -f
devilserver.deviltechnologies.com
root@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
[email protected]
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




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to