[opendmarc-users] opendmarc-reports: can't create report file for domain

Jonathan Sélea jonathan at selea.se
Thu Apr 19 09:52:42 PDT 2018


Thanks!

> cd /tmp && ....
>
> you should not store the history file in /tmp, but in /var/tmp

I am not talking about the historyfile :) I dont think that I have any
issues with it at all.

HistoryFile /var/run/opendmarc/opendmarc.dat
UMask 0002

The catalogue and file is owned by the user opendmarc which is the
uid:gid that opendmarc is running as.

The problem was, that the script that I have that call on the following
was not owned by the correct user, I should have seen that from the start:

/usr/sbin/opendmarc-import -dbhost=${DBHOST} -dbuser=${DBUSER}
-dbpasswd=${DBPASS} -dbname=${DBNAME} -verbose < /tmp/${HISTFILE}.$$
/usr/sbin/opendmarc-reports -dbhost=${DBHOST} -dbuser=${DBUSER}
-dbpasswd=${DBPASS} -dbname=${DBNAME} -verbose -interval=86400
-report-email 'reports at dmarc.domain.tld' -report-org 'domain.tld'
/usr/sbin/opendmarc-expire -dbhost=${DBHOST} -dbuser=${DBUSER}
-dbpasswd=${DBPASS} -dbname=${DBNAME} -verbose

The cronjob was under the user "opendmarc", and it did not have
permission to run it.

Conclusion:
My stupidity was at fault.

/ Jonathan





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3968 bytes
Desc: S/MIME-kryptografisk signatur
URL: <http://www.trusteddomain.org/pipermail/opendmarc-users/attachments/20180419/f3070d29/attachment.bin>


More information about the opendmarc-users mailing list