Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122463 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 87B7B1ACEBF for ; Thu, 22 Feb 2024 15:30:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1708615851; bh=4vTX0yS67CQ0rndXha0x5aB1DAhyER9upS34TSwkkbo=; h=Date:From:To:Subject:References:In-Reply-To:From; b=bKuIdMtdGmf73TJNS4VH+OitwVAC9Y5k7ulyUgG4LBdDhq6SuzzTfC1z4UbiKYxbB Pbigyl0ILcc6cClSfeJHwpVwDqvcW3SV6V3oQQNHeCc+pua6UOGrO2nkWwPGtB1prF mLNfnKvQ/G9/PnEDZJrAv6zrS2QwlGN3gw2CxXA8PXHUpwCtRocWf54DSy8K7vGyTK Kq4JuBcyzkYOpH3VlvGiK4qrK8X/htHnP4efoP28Juyn7BcvgYpGPROHpjMc9JVrek j9Kdu27bYTUpF3fH9sdf+kInLYY/3zSqFsPuAzX1qaSV9oepLaMMmHCQAtAS9vkXuk wYU7ppzJUSyFg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 46BAC180080 for ; Thu, 22 Feb 2024 15:30:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mint.phcomp.co.uk (freshmint.phcomp.co.uk [78.32.209.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 22 Feb 2024 07:30:48 -0800 (PST) Received: from addw by mint.phcomp.co.uk with local (Exim 4.96) (envelope-from ) id 1rdB0U-00DH5X-2N for internals@lists.php.net; Thu, 22 Feb 2024 15:29:06 +0000 Date: Thu, 22 Feb 2024 15:29:06 +0000 To: internals@lists.php.net Subject: Re: [PHP-DEV] What's up with emails? Message-ID: Mail-Followup-To: internals@lists.php.net References: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Parliament Hill Computers Ltd From: addw@phcomp.co.uk (Alain D D Williams) On Thu, Feb 22, 2024 at 09:05:22AM -0500, Derick Rethans wrote: > Gmail is rejecting emails after we moved the servers without telling us why, in enough detail to do anything about it. I run other mail lists and have had similar problems with gmail recently. The problem seems to be SPF. This says which IP addresses can be used for sending email for particular domains. gmail has recently become much stricter. List emails are sent from php-smtp4.php.net (45.112.84.5). However the 'From' address is still that of the original sender -- which is OK for the email that I am replying to as it is From: Derick Rethans and the MX for php.net is php-smtp4-ip4.php.net. which has address 45.112.84.5 However I suspect that *this* email (the one that I am typing now) will get bounced by gmail as my address is: addw@phcomp.co.uk and 45.112.84.5 is not allowed (by SPF) to send email for phcomp.co.uk. So: how to fix ? Make the From: address internals@lists.php.net The envelope address is already, something like internals+bounces-122457-addw=phcomp.co.uk@lists.php.net This means a fix to whatever list processor that you are using. Other recommendations: • MX for lists.php.net is php-smtp4-ip4.php.net. Change to php-smtp4.php.net. • SPF for lists.php.net is "v=spf1 a mx a:osu1php.osuosl.org. ip4:45.112.84.5 ip6:2a02:cb43:8000::1102" Change to "v=spf1 a mx -all" •• osu1php.osuosl.org. does not seem to exist - so zap it •• If you make the MX change that I suggest then the following are redundant: ip4:45.112.84.5 ip6:2a02:cb43:8000::1102 •• -all means no other addresses accepted. gmail started making that implicit in the last few months, it is this that is causing the current problems. Once that has settled down you should enable sending email from (& thus to) IPv6 addresses. This is the way that the world is moving. It is not hard. Regards -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 https://www.phcomp.co.uk/ Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html #include