Date: Wed, 30 Jun 2021 16:00:16 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: "Dan Mahoney (Gushi)" <freebsd@gushi.org> Cc: freebsd-ports@freebsd.org Subject: Re: DMA -- difference between base and port? Message-ID: <819714705.77.1625061616562@localhost> In-Reply-To: <8882764-18c5-9aa2-618a-c144f8d35ef@prime.gushi.org> References: <27a72fde-d96c-25e6-ff62-85767da510b7@prime.gushi.org> <op.0vzr21pukndu52@sjakie> <e3965857-8ba1-62ba-9f39-dbb5945251f@prime.gushi.org> <op.0wd40ykqkndu52@sjakie> <8882764-18c5-9aa2-618a-c144f8d35ef@prime.gushi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_76_741453501.1625061616552 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: "Dan Mahoney (Gushi)" <freebsd@gushi.org> Datum: donderdag, 31 december 2020 02:23 Aan: Ronald Klop <ronald-lists@klop.ws> CC: freebsd-ports@freebsd.org Onderwerp: Re: DMA -- difference between base and port? > > 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) >>> <freebsd@gushi.org> 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 > --------------------------- > > > > Hi, I don't know if you are still using it, but the port got updated to the latest upstream version this afternoon. https://cgit.freebsd.org/ports/commit/?id=a5446834816f9ba1733f022f62b5b8166012ae24 Does this help your issue? Regards, Ronald. ------=_Part_76_741453501.1625061616552--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?819714705.77.1625061616562>