gitlab service desk don't process mails if the full email address is only mentioned in Received: header
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
While troubleshooting #534571, I noticed mails sent to the address generated by gitlab and visible in the Service Desk issues page does not work. Most likely because the last Recieved: is from amavis. I think gitlab should process all Received: headers for matches, not just the last for cases like this.
Return-Path: <praveen@onenetbeyond.org>
X-Original-To: git-staging-incoming@puri.sm
Delivered-To: git-staging-incoming@puri.sm
Received: from localhost (localhost [127.0.0.1])
by comms.puri.sm (Postfix) with ESMTP id EF51BE3CEE
for <git-staging-incoming@puri.sm>; Sun, 6 Apr 2025 09:06:26 -0700 (PDT)
Received: from comms.puri.sm ([127.0.0.1])
by localhost (comms.puri.sm [127.0.0.1]) (amavis, port 10024) with ESMTP
id 9CTti-nSCS8l for <git-staging-incoming@puri.sm>;
Sun, 6 Apr 2025 09:06:26 -0700 (PDT)
Authentication-Results: comms.puri.sm;
dkim=pass (1024-bit key; unprotected) header.d=onenetbeyond.org header.i=@onenetbeyond.org header.a=rsa-sha256 header.s=stigmate header.b=aTBeGLOb;
dkim-atps=neutral
Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234])
by comms.puri.sm (Postfix) with ESMTPS id 367FEE3CE7
for <git-staging-incoming+ops-test-service-desk-3258-1avtqmyc4c9sdwxzc7jwmy0w6-issue@puri.sm>; Sun, 6 Apr 2025 09:06:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onenetbeyond.org;
s=stigmate; t=1743955584;
bh=ekYha+NGeyit5v6Y829QOJlewb63gKddW8Iby57houI=;
h=Date:To:Subject:From:From;
b=aTBeGLObWIklfbytBywJExDGXC1Ltvjy/SVGARpZqdhRk+KsFQn+5uhHvaYSxofsB
9KtFy+pFkpJ3ohXlu0Q/69Tke004JNWQglCuwb0YBipNVGf7yBNfXsxuobdxmfSHTK
Byta5PYw9gutoSD6/OQ7arZ62O3f3VFeYEN6S4Bs=
Received: from mx3.investici.org (unknown [127.0.0.1])
by latitanza.investici.org (Postfix) with ESMTP id 4ZVxzN6rhnzGp3c
for <git-staging-incoming+ops-test-service-desk-3258-1avtqmyc4c9sdwxzc7jwmy0w6-issue@puri.sm>; Sun, 6 Apr 2025 16:06:24 +0000 (UTC)
Message-ID: <f4f01834-a6d1-42cd-aecc-71b7fbd5350b@onenetbeyond.org>
Date: Sun, 6 Apr 2025 21:36:19 +0530
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: git-staging-incoming@puri.sm
Subject: Enter the issue title
Content-Language: en-US
From: Pirate Praveen <praveen@onenetbeyond.org>
One we set up a forwarding / alias to this address, this starts working, then it adds an X-Original-To field. I think the direct address should also work if any of the Received headers have matching address.
Edited by 🤖 GitLab Bot 🤖