Bug 275264 - after freebsd-update there's no /usr/libexec/dma that /etc/mail/mailer.conf refers to
Summary: after freebsd-update there's no /usr/libexec/dma that /etc/mail/mailer.conf r...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 14.0-STABLE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-22 15:20 UTC by Oleg Streejak
Modified: 2023-12-01 21:01 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Streejak 2023-11-22 15:20:17 UTC
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.
...
Comment 1 Oleg Streejak 2023-11-22 15:26:30 UTC
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
Comment 2 Oleg Streejak 2023-11-23 10:59:41 UTC
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