Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2021 11:22:25 -0400
From:      Dan Langille <dan@langille.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: dma: could not open flush file: Permission denied
Message-ID:  <3da63ae4-ce3b-c080-df92-59e3d8d74ff3@langille.org>
In-Reply-To: <YRu%2BuzH5sJlHRYkj@ceres.zyxst.net>
References:  <6746c30a-53c7-7e84-3840-d2ff692af4a5@langille.org> <YRu%2BuzH5sJlHRYkj@ceres.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
tech-lists wrote on 8/17/21 9:50 AM:
> Hi,
>
> On Sun, Aug 08, 2021 at 10:54:32AM -0400, Dan Langille wrote:
>> I recently switched from postfix to dma on some servers which don't need
>> incoming smtp. On 4 of those 6 servers, I'm seeing this nightly: Aug 7
>> 03:02:15  stage-nginx01 dma[dma][79633]: could not open flush file: 
>> Permission denied
>>
>> I can't see a difference between the hosts. But I'm sure it's 
>> something in periodic daily
>> Thank you
>
> which dma do you use - the one in base or the one in ports?

 From base.
>
> version info:
>
> % pkg info dma
> dma-0.13.20210614,1
> Name           : dma
> Version        : 0.13.20210614,1
> Installed on   : Thu Jul  1 04:19:51 2021 BST
> Origin         : mail/dma
> Architecture   : FreeBSD:13:amd64
>
> I *think* the one in base is v0.11
>
> I have this in /etc/crontab :
>
> */5     *       *       *       *       root    /usr/local/libexec/dma -q

I don't have that.
>
> % less /etc/periodic.conf
>
> daily_status_include_submit_mailq="NO"
> daily_clean_hoststat_enable="NO"
> daily_queuerun_enable="NO"
> daily_submit_queuerun="NO"
> daily_status_mail_rejects_enable="NO"

I have added the above to one host (test-ingress01) for comparison.
>
> % less /etc/mail/mailer.conf
> sendmail        /usr/local/libexec/dma
> send-mail       /usr/local/libexec/dma
> mailq           /usr/local/libexec/dma
> newaliases      /usr/local/libexec/dma
> hoststat        /usr/local/libexec/dma
> purgestat       /usr/local/libexec/dma

I do not have the send-mail, hoststat, & purgestat entries.  I bet those 
last two are relevant.

I have added those two entries to another host (test-nginx01), removing 
the 'local' directory, because I am using base, not ports.

Thank you.  I'll report back tomorrow.

-- 
Dan Langille
dan@langille.org : https://langille.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3da63ae4-ce3b-c080-df92-59e3d8d74ff3>