From nobody Tue May 30 20:12:27 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QW3Tm2Dm1z4Y5QF for ; Tue, 30 May 2023 20:12:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QW3Tm1B7wz4Hpd for ; Tue, 30 May 2023 20:12:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685477548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wo4i7FOYMx8wumvSRVpbr1fTT3oToKms4KgKnscug1A=; b=nTc4FAU0vU05OW/LHptACsvivEf2EC/5RVQAWNi6VuHBtLUDYy5qYtUIRByttJdiz5+csB MElVDrxlAVf6I7S3FGGO3BNWuSDJbaKymBb/K1SP3HSoROUOsY5neycYWKqLkmoWPvro6y 2Fx6+O1NvW9bUkoC7aXsrPzwjzyGtxjjjTdvdKpVzb9ZXk6tVGrZ9ZuxnT4iz5vfa50hGF miYOydk0HkvNqbSuxoGaFfYruH8mfdWlUPu7N66CexSj768R9F3rjEb3uRhK0yXDDuEHhK s+tmB0xjXG9e1CMBYJyQQaCKY0FVlDV2Q5H1aiDTERHMi67oG3Ap4Oiiny5SLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685477548; a=rsa-sha256; cv=none; b=Sedx/ah5y0zu0LUcK9PyZLBVoVtVL2YPv5V8RDYAZX0SUaibryd1eEzKhfGuO2be5q7d4X aP8nMjcdZCw5yCfbMtDyGvHhZKeEvpfb8pRSXCoPMdR5i27gbC+s4G1WSF4R7WtrsB3edc LUgRq/hJzI4H5/L3+sn/3G5l1zkPx5rFl73tJioQ0a/8Pcu50Tk75JHrwP9spIOqOq24HS RtIumq5YTokRRhjkyqgvVYos7F4fi5rqZ3ePh/IrvNC5/VEndOm1AVJYO4BwHq069WNzLM FtOImHQjnRkJ2R3a2yJbRccULsfPqxF49UC9OE70Kpo6XTxXY3Gt/wUqn8PTGQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QW3Tm0GHZz16Nj for ; Tue, 30 May 2023 20:12:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34UKCRxD009755 for ; Tue, 30 May 2023 20:12:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34UKCRO0009754 for ports-bugs@FreeBSD.org; Tue, 30 May 2023 20:12:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271735] mail/sendmail chokes when MX and NS are on same system Date: Tue, 30 May 2023 20:12:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@dreamchaser.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dinoex@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271735 Bug ID: 271735 Summary: mail/sendmail chokes when MX and NS are on same system Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: dinoex@FreeBSD.org Reporter: freebsd@dreamchaser.org Assignee: dinoex@FreeBSD.org Flags: maintainer-feedback?(dinoex@FreeBSD.org) Created attachment 242504 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242504&action= =3Dedit tar file with Notes_sendmail_New_12_4.txt and setup_sendmail_bug.sh If a system is the primary nameserver and the MX host for a domain, sendmail chokes and refuses to deliver mail with the message "MX list for points back to ." This is a regression from the sendmail which came stock with the 12.3 relea= se; it began appearing after an upgrade. It is present with the stock sendmail (8.16.1) and the ports version (8.17.1) I believe this happens whether IPv6 is enabled or not; I run IPv4 only. When sendmail is started as: sendmail -d0.8 -d8.99 -v -X /var/log/sendmail_debug.log -L sm_dbg -bD before processing any requests, sendmail attempts to do an AAAA lookup of ns.domain.com.domain.com. I'm not sure if this is the root of the problem = or not. This was tested on a virgin 12.4-RELEASE system with bind918 package instal= led and the sendmail installed with the system. named was configured as the primary nameserver for fake-domain.com, and /etc/hosts, /etc/resolv.conf, and rc.conf were configured accordingly. Two files are attached: Notes_sendmail_New_12_4.txt setup_sendmail_bug.sh The contents of setup_sendmail_bug.sh are included in Notes_sendmail_New_12_4.txt To reproduce: 1. Bring up a fresh 12.4-RELEASE, configured as indicated in Notes_sendmail_New_12_4.txt: Hostname: ns.fake-domain.com Additional things to install: (not sure if these are necessary) ports src tree GPT partition scheme, use whole disk IPv4 activated DHCP network assignment IPv6 not activated Resolver - ok as is for initial start, needed to get bind918 UTC -- no, US mountain west Other services: none Hardening options: none additional account: user1 UserOne 2. Install bind918 package 3. rndc-confgen -a 4. copy over setup_sendmail_bug.sh and execute it 5. service sendmail stop 6. unplug network cable (not strictly necessary) 7. service named start 8. sendmail -d0.8 -d8.99 -v -X /var/log/sendmail_debug.log -L sm_dbg -bD note the initial queries for ns.fake-domain.com.fake-domain.com 9. log in on another vty as user1 10. mail -s 'user1 to user1' user1 user1 to user1 . 11. mail -s 'user1 to user1@localhost' user1@localhost user1 to user1@localhost . 12. mail -s 'user1 to user1@fake-domain.com' user1@fake-domain.com user1 to user1@fake-domain.com . 13. view /var/mail/user1 observe that the first two messages are delivered fine; but the third fails because of the "MX list for fake-domain.com points back to ns.fake-domain.com" error. 14. The error should also be output on the original root login terminal. --=20 You are receiving this mail because: You are the assignee for the bug.=