From nobody Mon Jan 06 16:14:47 2025 X-Original-To: freebsd-stable@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 4YRfQs46C8z5jnX5 for ; Mon, 06 Jan 2025 16:15:01 +0000 (UTC) (envelope-from SRS0=kAX8=T6=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YRfQr3HbVz3ytZ for ; Mon, 6 Jan 2025 16:15:00 +0000 (UTC) (envelope-from SRS0=kAX8=T6=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=quip.cz header.s=private header.b=Dq5qykEE; dkim=pass header.d=quip.cz header.s=private header.b=gTyGbyTC; spf=none (mx1.freebsd.org: domain of "SRS0=kAX8=T6=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=kAX8=T6=quip.cz=000.fbsd@elsa.codelab.cz"; dmarc=none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 070E2D7894 for ; Mon, 6 Jan 2025 17:14:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1736180092; bh=fObG0Ao8G3s3GziHcEsr96OJ1kbapygjATZJJ75C0uE=; h=Date:To:From:Subject; b=Dq5qykEENR5bJ52AlptcEj5qbGuM74MgKUEa2+IkvVcdsXPNBwoHqw92bl8AKggm2 A9B/FRJQiccGexxhrS5xiIhjPbb32mVkhoEJfeh8OxwTG6Xuuwc/YznZt0/8Wjsjpy aBU/XPQpRGYsgALbAXyW9ZsAEUIELfwcXND/L9gg= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 8A8D9D788E for ; Mon, 6 Jan 2025 17:14:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1736180087; bh=fObG0Ao8G3s3GziHcEsr96OJ1kbapygjATZJJ75C0uE=; h=Date:To:From:Subject; b=gTyGbyTCPE+lEU/mah1ybuAePrXPqJ8KTTc8FgAUnl+kC88z9wDi2MFeRrMoKXcoz q50WZAUKGOOi5/2vTRO8e2sUWD/3/zAhP5yPX5qdEzvLxSDUDQgWTeEJBJtPjh/JNn WTj33w2KU4h6A/70Hj8USTAeevivA3ZmCdS6pFq4= Message-ID: Date: Mon, 6 Jan 2025 17:14:47 +0100 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: freebsd-stable@freebsd.org Content-Language: en-US From: Miroslav Lachman <000.fbsd@quip.cz> Subject: Incompatibility between Sendmail and DMA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4YRfQr3HbVz3ytZ X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=kAX8=T6=quip.cz=000.fbsd@elsa.codelab.cz]; R_DKIM_ALLOW(-0.20)[quip.cz:s=private]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; DMARC_NA(0.00)[quip.cz]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[quip.cz:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=kAX8=T6=quip.cz=000.fbsd@elsa.codelab.cz]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[] After upgrading from 13.3 to 14.2, sending emails from shel lscript, which had worked for about 20 years, stopped working. The code looks like this: mailto="mon mon-sms" subject="DMA check" msg="testing of DMA" echo -e "$msg" | mail -s "$subject" "$mailto" There are 2 space separated recipients, they are defined in /etc/aliases. And there is a quoted variable "$mailto". It worked for all the years I am using FreeBSD with Sendmail or Postfix. But it stopped on 14.x with DMA. When I run the script it fails with: invalid recipient 'mon mon-sms' I understand DMA does not like the quoted variable "$mailto", when I removed the quotes, then DMA can send message to both recipients, but the problem is we have tens of scripts on tens of machines and they will stop working when we upgrade them from 13.3 to 14.2. Can this behavior be changed somehow to be the same as Sendmail? The second problem is that alias in /etc/aliases cannot point to /dev/null. It also causes 'invalid recipient' error. Are these known and documented incompatibility between Sendmail and DMA? Kind regards Miroslav Lachman