Solved mailq error

Hi forum
I'm a newbie setting up a fresh install of FreeBSD.
Using dma rather than sendmail, so have /etc/mail/mailer.conf as follows:

Code:
 # Execute dma instead of sendmail
sendmail    /usr/libexec/dma
mailq        /usr/libexec/dma
newaliases    /usr/libexec/dma
rmail        /usr/libexec/dma
periodic daily is giving me an error in daily email, which confirms dma is working.
Code:
Mail in submit queue:
mailq: invalid arguments
This seems caused by mailq -Ac from the script /etc/periodic/daily/440.status.mailq
Running mailq -Ac from the command line produces same error.
Please, any clues for how to fix.
(Yes, I did check the documentations, but no solution found. Maybe I look in the wrong place.)
 
Jose: Should be /usr/local/libexec/dma in mailer.conf
Hmmm. Thanks for suggestion, but seems not quite right.
Code:
[root@freebsd ~]# ls  /usr/local/libexec/dma
ls: /usr/local/libexec/dma: No such file or directory
I'm using fresh install of FreeBSD 13.0
 
from mailwrapper(8)
Code:
Other configuration files may need to be altered when replacing
     sendmail(8).  For example, if the replacement MTA does not support the -A
     option with mailq(1), daily_status_include_submit_mailq should be turned
     off in /etc/periodic.conf.
 
from mailwrapper(8)
Code:
Other configuration files may need to be altered when replacing
     sendmail(8).  For example, if the replacement MTA does not support the -A
     option with mailq(1), daily_status_include_submit_mailq should be turned
     off in /etc/periodic.conf.
But dma(8) does claim to support the -Ac option. It was the first thing I checked.
 
But dma(8) does claim to support the -Ac option. It was the first thing I checked.
Same, I checked there too.
-Ac is the very first option listed in dma(8)

I really would like to understand how to use dma the-right-way.
Do I use dma included in base, or do I need to pkg install dma ?
My use case is super simple. A small single purpose webserver, for internal lan use only.
Emails (ie only server generated outgoing messages) delivered to a postfix mailserver on separate hardware,
using SMARTHOST and NULLCLIENT options in /etc/dma/dma.conf
The delivery of emails seems working as intended.
It is just the periodic maintenance scripts causing bother.
 
IMHO there is a feature, not a bug.

The issue is resolved by adding the following line/s to /etc/periodic.config
Code:
# 440.status-mailq
daily_status_include_submit_mailq="NO"

Please, is this the-right-way to do it ?

As noted above, I'm a mere newbie to FreeBSD, and very aware of the FreeBSD reputation for reliable documentation.
Sure, Chapter 29.4 of the excellent FreeBSD Handbook should be updated to include instructions for dma, as an alternative to sendmail or postfix.
 
Back
Top