1 (edited by Bastienus 2019-08-06 19:58:11)

Topic: Too many hops

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedMail    v0.9.9
iRedAdmin    v0.9.7
- Deployed with iRedMail Easy or the downloadable installer?
downloadable installer
- Linux/BSD distribution name and version:
Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Any idea for this following trouble?
Thanks

<xxx@xxx.xyz>: host 127.0.0.1[127.0.0.1] said: 554 5.4.0
   id=01576-01 - Rejected by next-hop MTA on relaying, from
   MTA(smtp:[127.0.0.1]:10030): 554 5.4.0 Error: too many hops (in reply to
   end of DATA command)
Reporting-MTA: dns; messagerie.xxyxxux.xyz
X-Postfix-Queue-ID: 080001208C8
X-Postfix-Sender: rfc822; xxx@xxx.com
Arrival-Date: Tue,  6 Aug 2019 13:07:38 +0200 (CEST)

Final-Recipient: rfc822; xxx@xxx.xyz
Original-Recipient: rfc822;xxx@xxx.xyz
Action: failed
Status: 5.4.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 554 5.4.0 id=01576-01 - Rejected by next-hop MTA on
   relaying, from MTA(smtp:[127.0.0.1]:10030): 554 5.4.0 Error: too many hops
Return-Path: <xxxx@xxx.org>
Received: from shun.xxyxxux.xyze (shun.xxyxxux.xyze [10.10.2.75])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 080001208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:38 +0200 (CEST)
Received: from SI-GRAYSON.xxyxxx.xyz (unknown [10.101.22.237])
    by shun.xxyxxux.xyze (Postfix) with ESMTPS id 412092024A
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:35 +0200 (CEST)
Received: from SI-WAYNE.xxyxxx.xyz (10.101.22.67) by
SI-GRAYSON.xxyxxx.xyz (10.101.22.237) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26; Tue, 6 Aug 2019 13:07:36 +0200
Received: from messagerie.xxyxxux.xyz (192.168.250.210) by
SI-WAYNE.xxyxxx.xyz (10.101.22.67) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26 via Frontend Transport; Tue, 6 Aug 2019 13:07:36 +0200
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id B5F0D1208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:36 +0200 (CEST)
X-Spam-Flag: NO
X-Spam-Score: 0.704
X-Spam-Level:
X-Spam-Status: No, score=0.704 tagged_above=-10 required=6.6
    tests=[ALL_TRUSTED=-1, BAYES_50=0.8, DKIM_SIGNED=0.1, RDNS_NONE=0.793,
    T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001]
    autolearn=no autolearn_force=no
Authentication-Results: ares.xxyxxux.xyze (amavisd-new);
    dkim=fail (1024-bit key) reason="fail (body has been altered)"
    header.d=xxyxxux.org
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10032)
    with ESMTP id n0q1TvmDRwVN for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:36 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id F312E1208DD
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:35 +0200 (CEST)
X-Virus-Scanned: amavisd-new at ares.xxyxxux.xyze
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id 2UEIb_HwAbW2 for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:35 +0200 (CEST)
Received: from shun.xxyxxux.xyze (shun.xxyxxux.xyze [10.10.2.75])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 1EC201208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:35 +0200 (CEST)
Received: from SI-ALFRED.xxyxxx.xyz (unknown [10.101.22.87])
    by shun.xxyxxux.xyze (Postfix) with ESMTPS id 5DE382024A
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:32 +0200 (CEST)
Received: from SI-WAYNE.xxyxxx.xyz (10.101.22.67) by
SI-ALFRED.xxyxxx.xyz (10.101.22.87) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26; Tue, 6 Aug 2019 13:07:33 +0200
Received: from messagerie.xxyxxux.xyz (192.168.250.210) by
SI-WAYNE.xxyxxx.xyz (10.101.22.67) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26 via Frontend Transport; Tue, 6 Aug 2019 13:07:33 +0200
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id CD9021208DD
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:33 +0200 (CEST)
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10032)
    with ESMTP id O8eLUNxD_7GX for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:33 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 21F9E1208D2
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:33 +0200 (CEST)
X-Virus-Scanned: amavisd-new at ares.xxyxxux.xyze
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id tTtxJcrSr0Ci for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:32 +0200 (CEST)
Received: from shun.xxyxxux.xyze (shun.xxyxxux.xyze [10.10.2.75])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 3A82D1208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:32 +0200 (CEST)
Received: from SI-ALFRED.xxyxxx.xyz (unknown [10.101.22.87])
    by shun.xxyxxux.xyze (Postfix) with ESMTPS id 767AB2024A
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:29 +0200 (CEST)
Received: from SI-WAYNE.xxyxxx.xyz (10.101.22.67) by
SI-ALFRED.xxyxxx.xyz (10.101.22.87) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26; Tue, 6 Aug 2019 13:07:31 +0200
Received: from messagerie.xxyxxux.xyz (192.168.250.210) by
SI-WAYNE.xxyxxx.xyz (10.101.22.67) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26 via Frontend Transport; Tue, 6 Aug 2019 13:07:31 +0200
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 04B7F1208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:31 +0200 (CEST)
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10032)
    with ESMTP id qa23FEvnHfRn for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:30 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 50B5A1208D2
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:30 +0200 (CEST)
X-Virus-Scanned: amavisd-new at ares.xxyxxux.xyze
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id Mw60C11-kRcK for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:29 +0200 (CEST)
Received: from shun.xxyxxux.xyze (shun.xxyxxux.xyze [10.10.2.75])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 72B541208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:29 +0200 (CEST)
Received: from SI-ALFRED.xxyxxx.xyz (unknown [10.101.22.87])
    by shun.xxyxxux.xyze (Postfix) with ESMTPS id B701E2024A
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:26 +0200 (CEST)
Received: from SI-WAYNE.xxyxxx.xyz (10.101.22.67) by
SI-ALFRED.xxyxxx.xyz (10.101.22.87) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26; Tue, 6 Aug 2019 13:07:28 +0200
Received: from messagerie.xxyxxux.xyz (192.168.250.210) by
SI-WAYNE.xxyxxx.xyz (10.101.22.67) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26 via Frontend Transport; Tue, 6 Aug 2019 13:07:28 +0200
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 6E9BF1208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:28 +0200 (CEST)
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10032)
    with ESMTP id J2_fx3dsBBHP for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:27 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id B7D2E1208D2
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:27 +0200 (CEST)
X-Virus-Scanned: amavisd-new at ares.xxyxxux.xyze
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id iNwR6sl6jbuL for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:26 +0200 (CEST)
Received: from shun.xxyxxux.xyze (shun.xxyxxux.xyze [10.10.2.75])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id D192E1208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:26 +0200 (CEST)
Received: from SI-GRAYSON.xxyxxx.xyz (unknown [10.101.22.237])
    by shun.xxyxxux.xyze (Postfix) with ESMTPS id 1CA102024A
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:24 +0200 (CEST)
Received: from SI-WAYNE.xxyxxx.xyz (10.101.22.67) by
SI-GRAYSON.xxyxxx.xyz (10.101.22.237) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26; Tue, 6 Aug 2019 13:07:25 +0200
Received: from messagerie.xxyxxux.xyz (192.168.250.210) by
SI-WAYNE.xxyxxx.xyz (10.101.22.67) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26 via Frontend Transport; Tue, 6 Aug 2019 13:07:25 +0200
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 7E6E81208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:25 +0200 (CEST)
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10032)
    with ESMTP id oR36T76Je0yP for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:24 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id B3CA11208D2
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:24 +0200 (CEST)
X-Virus-Scanned: amavisd-new at ares.xxyxxux.xyze
Received: from messagerie.xxyxxux.xyz ([127.0.0.1])
    by localhost (ares.xxyxxux.xyze [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id MB4fofk5XSsu for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:07:22 +0200 (CEST)
Received: from shun.xxyxxux.xyze (shun.xxyxxux.xyze [10.10.2.75])
    by messagerie.xxyxxux.xyz (Postfix) with ESMTP id 1B2451208C8
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:22 +0200 (CEST)
Received: from SI-WAYNE.xxyxxx.xyz (unknown [10.101.22.67])
    by shun.xxyxxux.xyze (Postfix) with ESMTPS id 55CD32024A
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:19 +0200 (CEST)
Received: from SI-GRAYSON.xxyxxx.xyz (10.101.22.237) by
SI-WAYNE.xxyxxx.xyz (10.101.22.67) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26; Tue, 6 Aug 2019 13:07:20 +0200
Received: from d48.altospam.com (195.154.78.197) by
SI-GRAYSON.xxyxxx.xyz (10.101.22.237) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.1034.26 via Frontend Transport; Tue, 6 Aug 2019 13:07:19 +0200
Received: from xxyxxux.org ([51.15.190.171])
    by d48.altospam.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Altospam)
    id 1huxJ2-00011E-Gq
    for xxx@xxx.xyz; Tue, 06 Aug 2019 13:07:19 +0200
Received: from xxyxxux.org (localhost [127.0.0.1])
    by xxyxxux.org (Postfix) with ESMTP id 462sKM2kMfzqWm7
    for <xxx@xxx.xyz>; Tue,  6 Aug 2019 13:07:03 +0200 (CEST)
Authentication-Results: xxyxxux.org (amavisd-new);
    dkim=pass (1024-bit key) reason="pass (just generated, assumed good)"
    header.d=xxyxxux.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=
    xxyxxux.org; h=x-mailer:mime-version:message-id:to
    :references:date:date:subject:subject:content-type:content-type
    :from:from; s=dkim; t=1565089610; x=1567681611; bh=jkJMvmY/V0lfs
    bRUuyrBEKLbM6vlo1RH6SujN/iFjzQ=; b=UF3PkkrBZJEBm2A9LCCr9jsVwL5Aw
    HUVg1RBdeA0gdyaQ4oEXwfL1zEQ3dG2M38gKz0negmbsHokaT/A+cqWCyoZ7lY9V
    WQulgYdstYSMWJu2FQiS9PfY6MGpzHVwu0kyVOy5du8zFx3DCkVgGEGpDYpbLoxb
    m17uL4TUZEdL0A=
X-Virus-Scanned: Debian amavisd-new at xxyxxux.org
Received: from xxyxxux.org ([127.0.0.1])
    by xxyxxux.org (xxyxxux.org [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id rjbCtsoCxc-0 for <xxx@xxx.xyz>;
    Tue,  6 Aug 2019 13:06:50 +0200 (CEST)
Received: from wimax-cali-190-0-0-14.orbitel.net.co (lstlambert-656-1-100-249.w80-14.abo.wanadoo.fr [80.14.148.249])
    by xxyxxux.org (Postfix) with ESMTPSA id 462sJ00pwXzqVbL;
    Tue,  6 Aug 2019 13:05:51 +0200 (CEST)
From: =?utf-8?Q?M=C3=A9lanie_Daoulas?= <xxx@xxx.com>
Date: Tue, 6 Aug 2019 13:05:51 +0200
References: <0EB777CE-13E5-4B17-BDEA-1EFFC5C8249F@xxyxxux.org>
To: xxx@xxx.xyz,
m.leirens@xxyxxux.fr
Message-Id: <6AADAD60-7B12-49EF-A01C-8AD5171BF8C6@xxyxxux.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Content-Type: multipart/mixed; boundary="Apple-Mail=_7C7544CC-8862-4967-B0B7-33EAC59DBA80"
Subject: =?utf-8?Q?Fwd=3A_Toulouse_les_Orgues_=C3=A0_Montpellier?=
X-ALTOSPAM-STATUT: senderok mailok
X-ALTOSPAM-HOST: d48.altospam.com
X-CrossPremisesHeadersFilteredBySendConnector: SI-WAYNE.xxyxxx.xyz
X-OrganizationHeadersPreserved: SI-WAYNE.xxyxxx.xyz
X-CrossPremisesHeadersFilteredBySendConnector: SI-GRAYSON.xxyxxx.xyz
X-OrganizationHeadersPreserved: SI-GRAYSON.xxyxxx.xyz
X-CrossPremisesHeadersFilteredBySendConnector: SI-ALFRED.xxyxxx.xyz
X-OrganizationHeadersPreserved: SI-ALFRED.xxyxxx.xyz
X-CrossPremisesHeadersFilteredBySendConnector: SI-ALFRED.xxyxxx.xyz
X-OrganizationHeadersPreserved: SI-ALFRED.xxyxxx.xyz
X-CrossPremisesHeadersFilteredBySendConnector: SI-ALFRED.xxyxxx.xyz
X-OrganizationHeadersPreserved: SI-ALFRED.xxyxxx.xyz
X-CrossPremisesHeadersFilteredBySendConnector:
    SI-GRAYSON.xxyxxx.xyz
X-OrganizationHeadersPreserved: SI-GRAYSON.xxyxxx.xyz

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Too many hops

Bastienus wrote:

<xxx@xxx.xyz>: host 127.0.0.1[127.0.0.1] said: 554 5.4.0
   id=01576-01 - Rejected by next-hop MTA on relaying, from
   MTA(smtp:[127.0.0.1]:10030): 554 5.4.0 Error: too many hops (in reply to
   end of DATA command)

There're so many "Received:" in mail header. Is it hosted on your server? Why isn't it delivered to mailbox? You need to check its transport setting with SQL commands:

USE vmail;
SELECT domain,transport FROM domain;
SELECT username,transport FROM mailbox WHERE username="<the-recipient-email>" LIMIT 1;

Replace "<the-recipient-email>" by the real email address.

3

Re: Too many hops

Hello Thanks but I do a mistake I am in PGSQL
Best regards

4

Re: Too many hops

The SQL commands are the same as in my previous reply.