From nobody Wed May 17 18:48:07 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 4QM2JS38D9z4BT2n for ; Wed, 17 May 2023 18:51:36 +0000 (UTC) (envelope-from vagabond@blackfoot.net) Received: from mx2.blackfoot.net (mx2.blackfoot.net [216.14.232.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mx2.blackfoot.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QM2JR2khJz4GF6 for ; Wed, 17 May 2023 18:51:35 +0000 (UTC) (envelope-from vagabond@blackfoot.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blackfoot.net header.s=ew header.b=kMgzsXgX; spf=pass (mx1.freebsd.org: domain of vagabond@blackfoot.net designates 216.14.232.11 as permitted sender) smtp.mailfrom=vagabond@blackfoot.net; dmarc=none Received: from bmfe1.blackfoot.net ([66.109.128.161]) by mx2.blackfoot.net ({0885e9ce-1b01-11e7-852e-37eff1d936ea}) via TCP (outbound) with ESMTP id 20230517184808001_0000 for ; Wed, 17 May 2023 12:48:08 -0600 X-RC-FROM: X-RC-RCPT: Received: from webmail.blackfoot.net (unknown [192.168.100.133]) by bmfe1.blackfoot.net (Postfix) with ESMTP id 6FE1140D29 for ; Wed, 17 May 2023 12:48:07 -0600 (MDT) 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 Date: Wed, 17 May 2023 11:48:07 -0700 From: vagabond To: Freebsd Questions Subject: sendmail error, "MX list for mydomain.com points back to server.mydomain.com" User-Agent: Roundcube Webmail/1.4.11 Message-ID: <303e35e4d89e68dcd9863239dcda568e@blackfoot.net> X-Sender: vagabond@blackfoot.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-MAG-OUTBOUND: blackfoot.redcondor.net@66.109.128.161/32 DKIM-Signature: a=rsa-sha256; b=kMgzsXgXOs3nVQzF+6BhToiMfbUKAjjOOE/V2Ln6nZ27MsDx4n/aOHh/9vtFhfWG8s2QXD9j+ANpaNtvoVjEmmV4AXSb6xHbroeKVvlq59z6oI4A7E+Q/4v29INsjg41KN7M7tcH0Cne+UK6wiNuZ6yTnyHbse2DyUmYR5JIa41hYDLoVozZdMgOS8zVFhzViTZ3u8QF4Yu30t9/1l3BeFN7BYPCg+CTx+LstZ9zsMTDWSHc31hVTxZh0nDcF8A5ZFut0UO68YawVqna1qdOYs3Shu4gg24IGmk8hRkzgS9pyc2jb8M6gx7fkxrc9SG6oZv1vNlXRA4nAvtRiOs3ew==; s=ew; c=relaxed/relaxed; d=blackfoot.net; v=1; bh=/l0YlijR1exKuNmdS02U/ygW+It57qUSoqz4L1kc880=; h=from:to:message-id; X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ptr]; R_DKIM_ALLOW(-0.20)[blackfoot.net:s=ew]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[blackfoot.net:+]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:21947, ipnet:216.14.224.0/19, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[blackfoot.net]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4QM2JR2khJz4GF6 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N I'm at my wits end. running 12.4 release, recently upgraded from 12.3 I can't receive any mail, although I can send (at least to an external account of mine) ok. But using the "mail" command on the local machine has the same problem as incoming mail from outside, e.g. mail -s "local to local" user@mydomain.com fails the same way incoming mail from outside fails: /var/log/maillog: SYSERR(root): MX list for mydomain.com. points back to mydomain.com sm-mta[42872]: 34HHlVD9043017: to=, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=33742, relay=mydomain.com., dsn=5.3.5, stat=Local configuration error sm-mta[42872]: 34HHlVD9043017: 34HHlVDA043017: DSN: Local configuration error sm-mta[42872]: 34HHlVDA043017: Losing ./qf34HHlVDA043017: savemail panic sm-mta[42872]: 34HHlVDA043017: SYSERR(root): savemail: cannot save rejected email anywhere Running dns and mail from same box. my isp has bogus dns entries for my domain; trying to get that straightened out, but they are extremely slow responding. Regardless, since this is happening on delivery to the local machine, sendmail should be dealing with info returned from my local server, right? Not sending queries upstream for mydomain.com? The local zone file looks like this: $TTL 3600 @ IN SOA myserver.mydomain.com. root.mydomain.com. ( 2023051705 14400 ; Refresh delta, seconds (4 hrs (recommended)) 3600 ; Retry delta, if refresh fails, seconds (1 hr, recommended) 3600 ; Expire, seconds (1 hrs) 600 ) ; Minimum time-to-live, seconds (10 min, for testing) IN NS myserver.mydomain.com. ; authoritative name server IN NS ns.secondary1.com. IN NS ns.secondary2.com. mydomain.com. IN A aa.bb.cc.dd ; myserver IN A aa.bb.cc.dd ; mydomain.com. IN MX 10 myserver.mydomain.com. ; mydomain.com. IN SPF "v=spf1 +mx -all" ; allow MX record IPs to send, no others mydomain.com. IN TXT "v=spf1 +mx -all" ; allow MX record IPs to send, no others ns IN CNAME myserver ; nameserver cannot be CNAME; here for refs from stale dns Queries from outside and inside to mydomain.com seem to work fine, e.g. dig @mydomain.com mydomain.com -t mx ;; ANSWER SECTION: mydomain.com 3600 IN MX 10 myserver.mydomain.com. ;; ADDITIONAL SECTION: myserver.mydomain.com. 3600 IN A aa.bb.cc.dd /etc/resolv.conf: nameserver 127.0.0.1 What does sendmail do to resolve the MX that could make it come to this conclusion? I don't see anything more helpful in a debug log or the sendmail README. Suggestions for how to debug? Thanks, Gary