Hello. Just upgraded one of my client server, and when trying to make aliases had an error etc/mail $ make /usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases mailwrapper: cannot exec /usr/libexec/dma: No such file or directory *** Error code 71 Stop. make: stopped in /etc/mail after quick research I found out that /etc/mail/mailer.conf refers to unexistend file /usr/libexec/dma: /etc/mail $ cat /etc/mail/mailer.conf # # mailer.conf for use with dma(8) # # If sendmail is configured, an example of mailer.conf that uses sendmail # instead can be found in /usr/share/examples/sendmail. sendmail /usr/libexec/dma mailq /usr/libexec/dma newaliases /usr/libexec/dma $ ls /usr/libexec/dma ls: /usr/libexec/dma: No such file or directory changed mail.conf back to /usr/libexec/sendmail/sendmail fixed the case, but it seems to me that this is a bug server was 13.2-RELEASE-p5 GENERIC i386, then updated in such a way: $ freebsd-update -r 14.0 upgrade install src component not installed, skipped Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 13.2-RELEASE from update1.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic world/base The following components of FreeBSD do not seem to be installed: kernel/generic-dbg world/base-dbg Does this look reasonable (y/n)? y Fetching metadata signature for 14.0-RELEASE from update1.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. ...
well, just forgot booted from official FreeBSD-14.0-RELEASE-amd64-zfs.qcow2 under qemu and I found that file there: -r-xr-sr-x 1 root mail 67920 Nov 10 13:33 /usr/libexec/dma but not after freebsd-update'd that system
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