From owner-freebsd-ports@freebsd.org Thu Dec 31 01:23:10 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1D93B4D6BBD for ; Thu, 31 Dec 2020 01:23:10 +0000 (UTC) (envelope-from danm@prime.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 RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D5r4s0wNXz3HNj for ; Thu, 31 Dec 2020 01:23:08 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (localhost [127.0.0.1]) by prime.gushi.org (8.16.1/8.16.1) with ESMTPS id 0BV1N4U5084572 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Dec 2020 17:23:05 -0800 (PST) (envelope-from danm@prime.gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 0BV1N4U5084572 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1609377785; bh=LahIN74zlRtKjEM/v4Jzacs8aQgBAIiNbPhTBEr1/e8=; h=Date:From:To:cc:Subject:In-Reply-To:References; z=Date:=20Wed,=2030=20Dec=202020=2017:23:02=20-0800=20(PST)|From:=2 0"Dan=20Mahoney=20(Gushi)"=20|To:=20Ronald=20Kl op=20|cc:=20freebsd-ports@freebsd.org|Subjec t:=20Re:=20DMA=20--=20difference=20between=20base=20and=20port?|In -Reply-To:=20|References:=20<27a72fde-d9 6c-25e6-ff62-85767da510b7@prime.gushi.org>=20=20=20; b=XonUDTSnes/2n5Uinp/1O9X+FGMmlcDJ/eIOQfGFnA2wysMV6k06vmXMK2YQSxE0n /KKJ/3x5bmB0HwSi0CGGKovmHo1i3esJIH0Lz7psQHup8relzYcxn2ZlSK5PQcTVwx amUiaV4LqXMwQyhujLNTdd9KPw5nP/jyza9PIQzyQ6uH0y/Wl8Kbbuj7fPir4xaKKl em4sRH/i9hujYvPrIH/71xr+WFvMAXoJCjGEa1wTzpxwqbUXilMxxsjViU3FENsdHI lLIs6X81WwyEN147njgBxanVGvxSqXIc88r67Hxk0eU9oUylMGsJJiJKvMmCvs1L9/ KvvhWeJS6sZYg== Received: (from danm@localhost) by prime.gushi.org (8.16.1/8.16.1/Submit) id 0BV1N2Wi084563; Wed, 30 Dec 2020 17:23:02 -0800 (PST) (envelope-from danm) Date: Wed, 30 Dec 2020 17:23:02 -0800 (PST) From: "Dan Mahoney (Gushi)" To: Ronald Klop cc: freebsd-ports@freebsd.org Subject: Re: DMA -- difference between base and port? In-Reply-To: Message-ID: <8882764-18c5-9aa2-618a-c144f8d35ef@prime.gushi.org> References: <27a72fde-d96c-25e6-ff62-85767da510b7@prime.gushi.org> X-OpenPGP-Key-ID: 0x624BB249 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.2 (prime.gushi.org [0.0.0.0]); Thu, 31 Dec 2020 01:23:05 +0000 (UTC) X-Rspamd-Queue-Id: 4D5r4s0wNXz3HNj X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=XonUDTSn; dmarc=pass (policy=none) header.from=gushi.org; spf=pass (mx1.freebsd.org: domain of danm@prime.gushi.org designates 2620:137:6000:10::142 as permitted sender) smtp.mailfrom=danm@prime.gushi.org X-Spamd-Result: default: False [-5.40 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[2620:137:6000:10::142:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gushi.org,none]; DKIM_TRACE(0.00)[gushi.org:+]; FORGED_SENDER(0.30)[freebsd@gushi.org,danm@prime.gushi.org]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2620:137:6000:10::142:from]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[freebsd@gushi.org,danm@prime.gushi.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gushi.org:s=prime2014]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[gushi.org:dkim]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[2620:137:6000:10::142:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2020 01:23:10 -0000 On Tue, 29 Dec 2020, Ronald Klop wrote: > Some questions below. >> On Mon, 21 Dec 2020, Ronald Klop wrote: >> >>> On Mon, 21 Dec 2020 12:12:02 +0100, Dan Mahoney (Gushi) >>> wrote: >>> >>>> Hey there, >>>> At the day job we've been using mail/dma port for a number of years now, >>>> and the rollout and config of files in /usr/local/etc/dma is part of our >>>> deploy process. >>>> It only recently occurred to us that there was a "dma" in base since >>>> probably 11.0 (whomever wrote the release notes missed that -- and the >>>> manpage doesn't mention when it was added to FreeBSD). >>>> We notice that the "newaliases" function in /etc/mail/mailer.conf is >>>> missing from the port version -- which means if you're using ports dma, >>>> you probably want to set newaliases to something like /usr/bin/true (dma >>>> doesn't use an aliases db, so there's no need to rebuild one, as >>>> newaliases would). Again. something we noticed in our deployment process >>>> with puppet. > > > Why are you calling newaliases if dma does not use an aliases db? Standards. This is the reason mailutil *and* DMA support a newaliases function (why the manpage for DMA suggests it, and why DMA supports it). As a matter of sysadminnery regardless of installed mailer, it's considered standard practice: When you update the alias file, you run newaliases. This is, for example, how we have made our puppet manifests work, so it is mailer agnostic. If you do not have something in mailer.conf for newaliases, you get an error. >> 1) No released version will work with "newaliases" unless "newaliases" is >> called as a bareword (so calling /usr/bin/newaliases, as puppet does, >> causes you to get a "no recipients" error) This is fixed in dma head, but >> not in either the current port version, or the freebsd base version. >> > > > I'm a bit confused. You say "this is fixed in dma head". I see no matching > commit about this fix after 0.13 release in > https://github.com/corecode/dma/commits/master . The commit didn't mention this exact issue, but it's: https://github.com/corecode/dma/commit/98bd7fdfd426048d5bffe459d9be643e3033f225 They changed from using $argv[0] (which would have to match only the bareword, like newaliases) to the basename, which strips the rest of the path if the code is called with one. If you doubt this, just point mailutil at dma, and call it as /usr/bin/newaliases Our puppet manifests were calling /usr/bin/newaliases, so we hit this. Hope these clarify things. -Dan -- --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC FB: fb.com/DanielMahoneyIV LI: linkedin.com/in/gushi Site: http://www.gushi.org ---------------------------