[Bug 275264] after freebsd-update there's no /usr/libexec/dma that /etc/mail/mailer.conf refers to

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Nov 2023 10:59:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275264

--- Comment #2 from Oleg Strizhak <oleg@pcbtech.ru> ---
One more (imho related) bug:

/etc/mail $ make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
sendmail: no recipients
*** Error code 66

Stop.
make: stopped in /etc/mail

on this server (another one, now it's 14.0-RELEASE FreeBSD 14.0-RELEASE #0
releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:51:26 UTC 2023    
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/i386.i386/sys/GENERIC i386, also
freebsd-update'd) all the files are in place

-r-xr-sr-x  1 root smmsp -  657K Nov 23 09:45 /usr/libexec/sendmail/sendmail*
-r-sr-xr--  1 root mail  -  6.0K Nov 23 09:45 /usr/libexec/dma-mbox-create*
-r-xr-sr-x  1 root mail  -   56K Nov 23 09:45 /usr/libexec/dma*


revert mailer.conf to sendmail:

/etc/mail $ sed -Ei -dma -e
's,/usr/libexec/dma,/usr/libexec/sendmail/sendmail,' mailer.conf 

--- mailer.conf-dma     2023-11-23 09:44:27.014665000 +0300
+++ mailer.conf 2023-11-23 12:27:53.311738000 +0300
@@ -7,3 +7,3 @@
-sendmail       /usr/libexec/dma
-mailq          /usr/libexec/dma
-newaliases     /usr/libexec/dma
+sendmail       /usr/libexec/sendmail/sendmail
+mailq          /usr/libexec/sendmail/sendmail
+newaliases     /usr/libexec/sendmail/sendmail


and now it runs ok:

/etc/mail $ make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/etc/mail/aliases: 29 aliases, longest 10 bytes, 297 bytes total
chmod 0640 /etc/mail/aliases.db

-- 
You are receiving this mail because:
You are the assignee for the bug.