From nobody Thu May 18 03:53:56 2023 X-Original-To: questions@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 4QMGLq3tDwz4C0qH for ; Thu, 18 May 2023 03:54:27 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMGLq1GrCz44p5 for ; Thu, 18 May 2023 03:54:27 +0000 (UTC) (envelope-from freebsd@gushi.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (2603-6080-3000-f008-90ba-455c-0633-41d9.res6.spectrum.com [IPv6:2603:6080:3000:f008:90ba:455c:633:41d9]) (authenticated bits=0) by prime.gushi.org (8.16.1/8.16.1) with ESMTPSA id 34I3sBRd001569 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 20:54:13 -0700 (PDT) (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 34I3sBRd001569 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1684382056; bh=shMKinsPBtv5ZJqmrYBwjDmmPGkiBmVQz/2eByQH93Y=; h=Subject:From:In-Reply-To:Date:Cc:References:To; z=Subject:=20Re:=20sendmail=20error,=20"MX=20list=20for=20mydomain. com=20points=20back=20to=0D=0A=20server.mydomain.com"|From:=20"Dan =20Mahoney=20(Ports)"=20|In-Reply-To:=20<30b97a a95162c163c1781ba1a0fa8e25@blackfoot.net>|Date:=20Wed,=2017=20May= 202023=2023:53:56=20-0400|Cc:=20Dewayne=20,=0D=0A=20questions@freebsd.org|References:=20<303e35e4d8 9e68dcd9863239dcda568e@blackfoot.net>=0D=0A=20=0D=0A=20<30b97aa95162c1 63c1781ba1a0fa8e25@blackfoot.net>|To:=20vagabond=20; b=A3InQ97P6M8s+IVmf6+vai+Jr3ij6vSDkL2/VHemxygXdxJ2FYqI+yjp+lTWz3+dD zDmQRkWS2lkwfOVznxneqdAkkchu1rf6CCI5H9IT8AfZ4nLhJLnOIrGOzpkQJKCzXh c4uwcpnbVYGf/guTjbpUej6jswig6l2S3hI7+XSAO6GcRRiIH985gCpx9qd6fVK/al tC9hkR0W0XmhPlLQbXG04y1UlYOIgazyP5wx6bitU/nDYPn+IDnGKL1d2phDTSnWAU lGcJlmUCcbJ17XWH4VLSO5cqNiZEh4OK3wyXpftrJHUVhRhHy2rU1KX/FAMztG/hnt WS7/LukYN9j3A== X-Authentication-Warning: prime.gushi.org: Host 2603-6080-3000-f008-90ba-455c-0633-41d9.res6.spectrum.com [IPv6:2603:6080:3000:f008:90ba:455c:633:41d9] claimed to be smtpclient.apple Content-Type: text/plain; charset=utf-8 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: sendmail error, "MX list for mydomain.com points back to server.mydomain.com" From: "Dan Mahoney (Ports)" In-Reply-To: <30b97aa95162c163c1781ba1a0fa8e25@blackfoot.net> Date: Wed, 17 May 2023 23:53:56 -0400 Cc: Dewayne , questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <303e35e4d89e68dcd9863239dcda568e@blackfoot.net> <30b97aa95162c163c1781ba1a0fa8e25@blackfoot.net> To: vagabond X-Mailer: Apple Mail (2.3731.500.231) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (prime.gushi.org [IPv6:2620:137:6000:10:0:0:0:142]); Thu, 18 May 2023 03:54:16 +0000 (UTC) X-Rspamd-Queue-Id: 4QMGLq1GrCz44p5 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N First, don=E2=80=99t obscure your domain when you=E2=80=99re trying to = show DNS lookups, it really doesn=E2=80=99t help people trying to help = you. If you need more help and feel shy, feel free to contact me = offlist. Second, the =E2=80=9Cmail loops back to me=E2=80=9D error means = something handed you a piece of mail, ostensibly because your system is = the lowest MX host, but your system doesn=E2=80=99t know it=E2=80=99s = the termination point for it. What do you have in /etc/mail/local-host-names? Are you using the stock = freebsd.mc or sendmail.mc or whatever came with the system? The stock = file has: define(`confCW_FILE', `-o /etc/mail/local-host-names=E2=80=99), but in = long-ago sendmail this file was called sendmail.cw. All variants of domains you accept mail for should be in = /etc/mail/local-host-names, and if you want to map separately for each = domain, you need to set up a virtusertable. -Dan (Dayjob: A DNS company you=E2=80=99ve heard of. Also, been running = sendmail in production for 20 years). > On May 17, 2023, at 8:12 PM, vagabond wrote: >=20 >> Do you have a "sendmail -bd" running? >=20 > Yes. >=20 > I tried turning on -d8.10 and got the following output at startup, > which I can't interpret... >=20 > ;; res_nquerydomain(ns.mydomain.com, , 1, 28) > ;; res_query(ns.mydomain.com, 1, 28) > ;; res_nmkquery(QUERY, ns.mydomain.com, IN, AAAA) > ;; res_send() > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31693 > ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 > ;; ns.mydomain.com, type =3D AAAA, class =3D IN > ;; Querying server (# 1) address =3D 127.0.0.1 > ;; new DG socket > ;; got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31693 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: = 0 > ;; ns.mydomain.com, type =3D AAAA, class =3D IN > mydomain.com. 10M IN SOA ns.mydomain.com. = root.mydomain.com. ( > 2023051706 ; serial > 4H ; refresh > 1H ; retry > 1H ; expiry > 10M ) ; minimum >=20 > ;; rcode =3D (NOERROR), counts =3D an:0 ns:1 ar:0 > ;; res_nquerydomain(ns.mydomain.com, mydomain.com, 1, 28) > ;; res_query(ns.mydomain.com.mydomain.com, 1, 28) > ;; res_nmkquery(QUERY, ns.mydomain.com.mydomain.com, IN, AAAA) > ;; res_send() > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44741 > ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 > ;; ns.mydomain.com.mydomain.com, type =3D AAAA, class =3D IN > ;; Querying server (# 1) address =3D 127.0.0.1 > ;; new DG socket > ;; got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 44741 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: = 0 > ;; ns.mydomain.com.mydomain.com, type =3D AAAA, class =3D IN > mydomain.com. 10M IN SOA ns.mydomain.com. = root.mydomain.com. ( > 2023051706 ; serial > 4H ; refresh > 1H ; retry > 1H ; expiry > 10M ) ; minimum >=20 > ;; rcode =3D (NXDOMAIN), counts =3D an:0 ns:1 ar:0 > res_nsearch failed (-1) > _res.options =3D 800012c3, HasWildcardMX =3D 0 >=20 > I don't understand the 0 answers and NXDOMAIN at all > It's not clear to me where all that is coming from, as strings like = res_send() > don't seem to appear in the source. >=20 > Also, that only prints at startup; apparently it doesn't go through = the domain.c code > for delivery to a localhost, even though I get that error message = back. >=20 > Can anyone tell me / point me to how to build sendmail from the code = in > /usr/src/contrib/sendmail ? >=20 > Thanks, >=20 > Gary >=20