Fwd: Undeliverable: Re: Backend handling replication slot stuck using 100% cpu, unkillable

Поиск
Список
Период
Сортировка
Искать

Fwd: Undeliverable: Re: Backend handling replication slot stuck using 100% cpu, unkillable

От:
hubert depesz lubaczewski <depesz@depesz.com>
Дата:
Вложения:

mx.google.com rejected your message to the following email addresses:

diogojoliveira@gmail.com

Your message wasn't delivered because the recipient's email provider rejected it.

mx.google.com gave this error:
This mail is unauthenticated, which poses a security risk to the sender and Gmail users, and has been blocked. The sender must authenticate with at least one of SPF or DKIM. For this message, DKIM checks did not pass and SPF check for [depesz.com] did not pass with ip: [2a01:111:f400:fe5b::205]. The sender should visit https://support.google.com/mail/answer/81126#authentication for instructions on setting up authentication. a15-20020aa7d90f000000b0051a47011c0dsi11808560edr.112 - gsmtp







Diagnostic information for administrators:

Generating server: CPWPR80MB7193.lamprd80.prod.outlook.com

diogojoliveira@gmail.com
mx.google.com
Remote server returned '550-5.7.26 This mail is unauthenticated, which poses a security risk to the 550-5.7.26 sender and Gmail users, and has been blocked. The sender must 550-5.7.26 authenticate with at least one of SPF or DKIM. For this message, 550-5.7.26 DKIM checks did not pass and SPF check for [depesz.com] did not pass 550-5.7.26 with ip: [2a01:111:f400:fe5b::205]. The sender should visit 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for 550 5.7.26 instructions on setting up authentication. a15-20020aa7d90f000000b0051a47011c0dsi11808560edr.112 - gsmtp'

Original message headers:

Received: from CPWPR80MB7879.lamprd80.prod.outlook.com (2603:10d6:103:254::9) by CPWPR80MB7193.lamprd80.prod.outlook.com (2603:10d6:103:207::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 12:58:23 +0000
Resent-From: <diogojoliveira@hotmail.com>
Received: from CPWPR80MB7879.lamprd80.prod.outlook.com ([::1]) by CPWPR80MB7879.lamprd80.prod.outlook.com ([fe80::1ef2:29e:4be3:56a4%6]) with Microsoft SMTP Server id 15.20.6544.026; Mon, 3 Jul 2023 12:58:23 +0000
Authentication-Results: spf=pass (sender IP is 217.196.149.56) smtp.mailfrom=lists.postgresql.org; dkim=fail (signature did not verify) header.d=depesz.com;dmarc=fail action=none header.from=depesz.com;
Received-SPF: Pass (protection.outlook.com: domain of lists.postgresql.org designates 217.196.149.56 as permitted sender) receiver=protection.outlook.com; client-ip=217.196.149.56; helo=malur.postgresql.org; pr=C
X-IncomingTopHeaderMarker: OriginalChecksum:45D1A90A2847CEB34D9B9E090A791847762DA124B490A720F9A8B77EA65A9536;UpperCasedChecksum:90CF451873BA8732FC109637876DA48F5C7EA9B9877E92431978619EADD8E09B;SizeAsReceived:2766;Count:26
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com;	s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To:	Message-ID:Subject:To:Sender:From:Date:Cc:Content-Transfer-Encoding:	Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:	Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:	List-Subscribe:List-Post:List-Owner:List-Archive;	bh=lfqQxXnbJXredxyMinU9Lvpzss4xGBa8BH80HgkaV2k=; b=pm/VUx1PRYAg01JyAfNdUP/rTH	41jeGEJBXS6Rilzl8HB66EJEeEapyMIhyt/Zq33giGQ003vRhlMTf+M4JB0rBbu+2E6FyiPY0xwXR	KCjaE5fqNq9XN3g/fTX72NGJFZ8lsoPOrbBjhXhXdEuwLi8Nb1z8SSmIBHdxQCdo6oqU=;
Date: Mon, 3 Jul 2023 14:58:07 +0200
From: hubert depesz lubaczewski <depesz@depesz.com>
Sender: depesz@depesz.com
To: pgsql-bugs mailing list <pgsql-bugs@postgresql.org>
Subject: Re: Backend handling replication slot stuck using 100% cpu, unkillable
Message-ID: <ZKLF3zT4kV+VUGjJ@depesz.com>
Reply-To: depesz@depesz.com
References: <ZKKywNsS9tR/3R80@depesz.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <ZKKywNsS9tR/3R80@depesz.com>
List-Id: <pgsql-bugs.lists.postgresql.org>
List-Help: <https://lists.postgresql.org/manage/>
List-Subscribe: <https://lists.postgresql.org/manage/>
List-Post: <mailto:pgsql-bugs@lists.postgresql.org>
List-Owner: <mailto:pgsql-bugs-owner@lists.postgresql.org>
List-Archive: <https://www.postgresql.org/list/pgsql-bugs>
Archived-At: <https://www.postgresql.org/message-id/ZKLF3zT4kV%2BVUGjJ%40depesz.com>
Precedence: bulk
List-Unsubscribe: <https://lists.postgresql.org/unsub/37/05c145d04424123193777873bcfcdd5e494c95ea6a9dc1a15382665d8ba93cd8/>
X-IncomingHeaderCount: 26
Return-Path: depesz@depesz.com
X-EOPAttributedMessage: 0
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic:	DM3NAM02FT048:EE_|CPWPR80MB7701:EE_|CPWPR80MB7879:EE_|CPWPR80MB7193:EE_
X-MS-UserLastLogonTime: 7/2/2023 2:31:13 PM
X-MS-Office365-Filtering-Correlation-Id: f60e14d0-3b86-455a-8a9d-08db7bc52c61
X-MS-Exchange-EOPDirect: true
X-Sender-IP: 217.196.149.56
X-SID-PRA: DEPESZ@DEPESZ.COM
X-SID-Result: FAIL
X-Microsoft-Antispam: BCL:0;
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 12:58:18.6108 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: f60e14d0-3b86-455a-8a9d-08db7bc52c61
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT048.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CPWPR80MB7701
X-MS-Exchange-Transport-EndToEndLatency: 00:00:03.7441398
X-MS-Exchange-Processed-By-BccFoldering: 15.20.6544.025
X-MS-Exchange-Inbox-Rules-Loop: diogojoliveira@hotmail.com
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-2698a.templateTenant

Re: Undeliverable: Re: Backend handling replication slot stuck using 100% cpu, unkillable

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 3 Jul 2023, at 15:05, hubert depesz lubaczewski  wrote:

> not sure if -www is the correct mailing list for problems with mailing
> lists,

It is.

> forwarding error mail that I'm getting when
> I'm sending to pgsql-bugs.

This is fairly common, IIUC GMail believes that the list sending email as you
is violating the SPF configuration for @depesz.com.

--
Daniel Gustafsson



Re: Undeliverable: Re: Backend handling replication slot stuck using 100% cpu, unkillable

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Daniel Gustafsson  writes:
>> On 3 Jul 2023, at 15:05, hubert depesz lubaczewski  wrote:
>> forwarding error mail that I'm getting when
>> I'm sending to pgsql-bugs.

> This is fairly common, IIUC GMail believes that the list sending email as you
> is violating the SPF configuration for @depesz.com.

I get similar gripes on a routine basis from diogojoliveira and some
other addresses.  As near as I can tell, the actual problem is that
these people have arranged to forward list mail from their subscribed
account to gmail, and the forwarding is being done in a way that
makes it have the original sender's envelope FROM (... not the
list's envelope FROM, nor the forwarding person's).  But it's visibly
coming from the forwarding machine.  If there's a hard SPF policy for
the envelope sender's domain, kaboom!

gmail is not doing anything except what you told them to, ie
believe that this is a forgery.  The fault is in the person's
custom forwarding arrangements.  I gather unfortunately that
this is quite hard to do correctly.

(Personally, I've given up and just added spam filtering rules
to bit-bucket these reports.  Those folks are probably not
seeing any list mail from me, but that's their problem not mine.)

			regards, tom lane


Re: Undeliverable: Re: Backend handling replication slot stuck using 100% cpu, unkillable

От:
Stephen Frost <sfrost@snowman.net>
Дата:
Вложения:
Greetings,

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Daniel Gustafsson  writes:
> >> On 3 Jul 2023, at 15:05, hubert depesz lubaczewski  wrote:
> >> forwarding error mail that I'm getting when
> >> I'm sending to pgsql-bugs.
> 
> > This is fairly common, IIUC GMail believes that the list sending email as you
> > is violating the SPF configuration for @depesz.com.
> 
> I get similar gripes on a routine basis from diogojoliveira and some
> other addresses.  As near as I can tell, the actual problem is that
> these people have arranged to forward list mail from their subscribed
> account to gmail, and the forwarding is being done in a way that
> makes it have the original sender's envelope FROM (... not the
> list's envelope FROM, nor the forwarding person's).  But it's visibly
> coming from the forwarding machine.  If there's a hard SPF policy for
> the envelope sender's domain, kaboom!

There's certainly up-sides and down-sides to rewriting FROM and From
lines.  Generally speaking, the kind of forwarding that doesn't change
the email at all works pretty well and is exactly what the mailing lists
do and is what gmail recommends when forwarding to them, because it
doesn't end up breaking DKIM.  The issue is that when the emails aren't
DKIM signed then there's no way to verify that they haven't been changed
by the forwarder and when there's an SPF rule saying to bounce those
emails, that's what happens.

It's also possible to set up ARC on the forwarder to provide assurance
that the forwarder validated the email when it arrived and to claim that
to the end system, but that only works if the end system trusts the
forwarding system and that doesn't tend to happen across organizations
(gmail may trust its own ARC signatures and so email that goes from a
random system to gmail and which gmail validates and then forwards on
while adding their ARC signature but breaking DKIM can be accepted by
gmail still, but my own efforts to get gmail to accept my ARC signatures
has gone exactly nowhere).

I've also looked into trying to not send bounces when this happens but
unfortunately there doesn't seem to be an easy way to make that happen
except to disable bounce reports from being generated at all, which
would be far worse.

For better or worse, these days if you care about delivery and avoiding
bounces, you pretty much have to be doing SPF+DKIM+DMARC with all the
annoyence that entails.  If you don't care much about delivery then
you can expect to get such bounces.

Thanks,

Stephen
FAQ