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

Benny Pedersen me at junc.eu
Wed Apr 18 19:33:45 PDT 2018


Jonathan Sélea skrev den 2018-04-18 21:52:

> /usr/sbin/opendmarc-import -dbhost=${DBHOST} -dbuser=${DBUSER}
> -dbpasswd=${DBPASS} -dbname=${DBNAME} -verbose < /tmp/${HISTFILE}.$$

cd /tmp && ....

you should not store the history file in /tmp, but in /var/tmp

# cron wrapper

cd /tmp && /usr/sbin/opendmarc-import -dbhost=${DBHOST} 
-dbuser=${DBUSER} -dbpasswd=${DBPASS} -dbname=${DBNAME} -verbose < 
/tmp/${HISTFILE}.$$

export varialbes dont ned to be in command line, since you expose the 
content to other users if done that way

put login/passwords into root bashrc file

make it only read permissions to root

so finaly line can then be

cd /tmp && /usr/sbin/opendmarc-import -verbose < /tmp/${HISTFILE}.$$

--verbose imho


More information about the opendmarc-users mailing list