Open rfmoz opened 5 months ago
I glanced the code, then it seems opendkim does not create statistics file, but fopen with "a" (append) in dkimf_stats_record() in opendkim/stats.c. Also it reports on failure by using syslog if loging is enabled. Isn't there any error log?
... it seems opendkim does not create statistics file, but ...
I'm sorry, mode "a" in fopen(3) create the file if it does not exist.
Hi Futatuki,
Restarting via system only produces one line on the log:
2024-05-15T12:15:14.865994+02:00 servername opendkim[3413459]: OpenDKIM Filter v2.11.0 starting (args: -x /etc/opendkim/opendkim.conf)
Executing the same instruction via strace, doesn't report any reference, good or bad, to the stats file:
strace -f /usr/sbin/opendkim -x /etc/opendkim/opendkim.conf
OpenDKIM 2.11.0~beta2-8 Debian package has these compile options:
which generate this binary:
Stats looks available, but setting on the configuration file
/etc/opendkim/opendkim.conf
:Statistics /var/lib/opendkim/stats.dat
Doesn't produce any stats file. Looking into the fd open by the opendkim worker process, doesn't report it on the list: