From nobody Sun Dec 04 17:40:20 2022 X-Original-To: dev-commits-src-main@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 4NQDV36c8Yz4jp3S; Sun, 4 Dec 2022 17:40:27 +0000 (UTC) (envelope-from mike@mail.karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4NQDV25lsvz3K3p; Sun, 4 Dec 2022 17:40:26 +0000 (UTC) (envelope-from mike@mail.karels.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of mike@mail.karels.net has no SPF policy when checking 216.160.39.52) smtp.mailfrom=mike@mail.karels.net; dmarc=none Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.16.1/8.16.1) with ESMTPS id 2B4HeKAX038447 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 4 Dec 2022 11:40:20 -0600 (CST) (envelope-from mike@mail.karels.net) Received: (from mike@localhost) by mail.karels.net (8.16.1/8.16.1/Submit) id 2B4HeKSN038446; Sun, 4 Dec 2022 11:40:20 -0600 (CST) (envelope-from mike) Message-Id: <202212041740.2B4HeKSN038446@mail.karels.net> To: Baptiste Daroussin cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mike Karels Reply-to: mike@karels.net Subject: rough edges in transition from sendmail to dma List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <38444.1670175620.1@mail.karels.net> Date: Sun, 04 Dec 2022 11:40:20 -0600 X-Spamd-Result: default: False [-1.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[mike@karels.net,mike@mail.karels.net]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[dev-commits-src-main@FreeBSD.org,dev-commits-src-all@FreeBSD.org]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_MATCH_FROMTLD(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_REPLYTO(0.00)[mike@karels.net]; DMARC_NA(0.00)[karels.net]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[mike]; ARC_NA(0.00)[]; ASN(0.00)[asn:209, ipnet:216.160.36.0/22, country:US]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mike@karels.net,mike@mail.karels.net] X-Rspamd-Queue-Id: 4NQDV25lsvz3K3p X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N This is a followup/response to the series of commits switching the default MTA to Dragonfly Mail Agent. I finally upgraded a -current system that submits email that I read, including the daily script output, and ran into some rough edges. I knew about the changes from reading the git commit messages, so I checked for an UPDATING entry. There is none; there should be. I see the RELNOTES entry, but it is quite minimal. So I thought I'd watch what happened overnight. This box has a non-default sendmail configuration. Somewhat to my surprise, I received the email from the daily script on my mail server, but it included some errors. I decided to switch back to sendmail, and it was not obvious how to do it without referring to some of the commit messages. Apparently switching back to sendmail currently requires adding three (or maybe two) sendmail_*_enable="YES" lines to /etc/rc.conf, as well as replacing the /etc/mail/mailer.conf file. I didn't find the sendmail example in /usr/share until after I had copied the file from a 13.1 system. A pointer to the sendmail version in the default mailer.conf would be helpful. Also, the sendmail and dma examples in mailer.conf(5) do not correspond to the example files. It might also be useful to have a check in /etc/rc.d/sendmail to see that sendmail is configured in mailer.conf if sendmail is enabled. As it was, I tried "service sendmail start" before replacing the mailer.conf, and it appeared to succeed, but the processes all exited quickly. Is sendmail_enable="NONE" really deprecated? I see that most of the comments were restored. It would be simpler (if not obvious) to put sendmail_enable="NO" in /etc/rc.conf if /etc/defaults/rc.conf used NONE as it did for a while, rather than having to enable multiple components. Here is the relevant part of the email from the daily script, using all default settings: Removing stale entries from sendmail host status cache: mailwrapper: no mapping in /etc/mail/mailer.conf Mail in local queue: Mail queue is empty Mail in submit queue: mailq: invalid arguments It seems that we shouldn't get errors in a stock configuration, but I'd also prefer not to have to change periodic.conf as well as rc.conf and mailer.conf to get the old behavior. For what it's worth, I configured dma on another -current system, using the equivalent settings for my sendmail configuration (SMARTHOST and MASQUERADE), and this seems to have gone smoothly. I'm willing to help out with smoothing rough edges, including testing, editing, maybe implementing (when/where I know what to do). Mike