| Server IP : 85.214.143.32 / Your IP : 216.73.216.142 Web Server : nginx/1.24.0 System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /sbin/ |
Upload File : |
#!/bin/sh
##
## Copyright (c) 2012, The Trusted Domain Project. All rights reserved.
##
## opendmarc-importstats -- import opendmarc output to MySQL
##
## This is intended to be used via a crontab. If import is successful,
## this code exits quietly so there's no output. If it fails, it does
## "ls -l" on the temporary file, so that cron generates mail to whever
## ran the job.
## setup
statsdb="`grep ^HistoryFile /etc/opendmarc.conf | sed 's/^HistoryFile\s\+//'`"
[ -z "$statsdb" ] && exit 0
# OPENDMARC_PASSWORD="password"; export OPENDMARC_PASSWORD
if [ -s "$statsdb" ]
then
mv "$statsdb" "${statsdb}.OLD.$$"
if opendmarc-import < "${statsdb}.OLD.$$"
then
rm "${statsdb}.OLD.$$"
else
ls -l "${statsdb}.OLD.$$"
fi
fi