Re: sendmail error, "MX list for mydomain.com points back to server.mydomain.com"

From: vagabond <vagabond_at_blackfoot.net>
Date: Sat, 20 May 2023 04:45:34 UTC
On 2023-05-19 16:41, Dan Mahoney (Ports) wrote:
> Any luck?

Unfortunately, no
I was going to send the below last night but wanted to try some more 
things.
I did, but haven't gotten much useful info.

On 2023-05-18 16:11, little.analyst892@aceecat.org wrote:
> On Thu, May 18, 2023 at 03:36:52PM -0700, vagabond wrote:

>> ;; res_nquerydomain(ns.dreamchaser.org, dreamchaser.org, 1, 28)
>> ;; res_query(ns.dreamchaser.org.dreamchaser.org, 1, 28)
>> ;; res_nmkquery(QUERY, ns.dreamchaser.org.dreamchaser.org, IN, AAAA)
>> ;; res_send()
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45481
>> ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>> ;;      ns.dreamchaser.org.dreamchaser.org, type = AAAA, class = IN
>> ;; Querying server (# 1) address = 127.0.0.1
>> ;; new DG socket
>> ;; got answer:
>> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 45481

> Not a complete answer, but all these commands look up the IPv4 address
> (ie. the A record), while the debug output is for the IPv6 (AAAA).

I think that output was too limited; it does issue an AAAA request, and 
that's
the above output.  I may not have had the appropriate debug codes turned 
on to
see the request; there's a bazillion of them and not well documented.

It dawned on me this morning that sendmail shouldn't be doing any IPv6 
stuff at all,
as I have commented out the line:
   dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

However, if I run sendmail like this:
   sendmail -d0.8 -d8.99 -v -L sm-dbg -bD
I see it drilling down to find all the local addresses, including ipv6 
addresses.
If you omit the -d8.99 the output I see is:
           Canonical name: ns.dreamchaser.org
          UUCP nodename: ns.dreamchaser.org
                 a.k.a.: [66.109.141.57]
                 a.k.a.: ns.dreamchaser.org.
                 a.k.a.: ns
                 a.k.a.: [192.168.151.101]
                 a.k.a.: [IPv6:0:0:0:0:0:0:0:1]
                 a.k.a.: localhost.dreamchaser.org.
                 a.k.a.: [IPv6:fe80:0:0:0:0:0:0:1]
                 a.k.a.: [127.0.0.1]
so it feels like ipv6 is not really/fully turned off.
I'm kinda at my wits end.  I haven't gotten a good handle on the 
diagnostic code.
I tried turning everything on (or thought that's what I was doing) and 
ran out of memory,
which was a surprise.

Questions:
   Is anyone (besides me) still running only ipv4,
     and if so, would you be willing to start sendmail as:
       sendmail -d0.8 -bD
     (then kill it ^C) and send me the output?
   Can someone running both ipv4 and ipv6 do the same?

I was thinking about trying to turn ipv6 on but I don't have a clue how 
easy that
is to do, and I'm not convinced it would solve the issue.

Another path I'm considering is installing postfix and seeing what it 
thinks, but I'm
going to spend a little more time beating on this first.

Gary