Topic: freshclam running, but getting daily email report that is is not. Why
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Downloaded
- Linux/BSD distribution name and version: Ubuntu 24.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MARIADB
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
--------------------- clam-update Begin ------------------------
No updates detected in the log for the freshclam daemon (the
ClamAV update process). If the freshclam daemon is not running,
you may need to restart it. Other options:
A. If you no longer wish to run freshclam, deleting the log file
(configured is /var/log/clamav/freshclam.log ) will suppress this error message.
B. If you use a different log file, update the appropriate
configuration file. For example:
echo "LogFile = log_file" >> /etc/logwatch/conf/logfiles/clam-update.conf
where log_file is the filename of the freshclam log file.
C. If you are logging using syslog, you need to indicate that your
log file uses the syslog format. For example:
echo "*OnlyService = freshclam" >> /etc/logwatch/conf/logfiles/clam-update.conf
echo "*RemoveHeaders" >> /etc/logwatch/conf/logfiles/clam-update.conf
---------------------- clam-update End -------------------------
Freshclam is working:
# systemctl status clamav-freshclam.service
● clamav-freshclam.service - ClamAV virus database updater
Loaded: loaded (/usr/lib/systemd/system/clamav-freshclam.service; enabled;>
Active: active (running) since Sat 2024-11-02 07:09:55 UTC; 1 week 1 day a>
Docs: man:freshclam(1)
man:freshclam.conf(5)
https://docs.clamav.net/
Main PID: 81121 (freshclam)
Tasks: 1 (limit: 18824)
Memory: 206.9M (peak: 1.3G)
CPU: 28.391s
CGroup: /system.slice/clamav-freshclam.service
└─81121 /usr/bin/freshclam -d --foreground=true
Nov 10 20:00:06 box freshclam[81121]: Received signal: wake up
Nov 10 20:00:06 box freshclam[81121]: ClamAV update process started at Sun Nov >
Nov 10 20:00:06 box freshclam[81121]: Sun Nov 10 20:00:06 2024 -> daily.cld dat>
Nov 10 20:00:06 box freshclam[81121]: Sun Nov 10 20:00:06 2024 -> main.cvd data>
Nov 10 20:00:06 box freshclam[81121]: Sun Nov 10 20:00:06 2024 -> bytecode.cvd >
And the logfile is active:
/var/log/clamav# ll
total 36
drwxr-xr-x 2 clamav clamav 4096 Nov 10 00:00 ./
drwxrwxr-x 20 root syslog 4096 Nov 10 00:00 ../
-rw-r----- 1 clamav adm 1215 Nov 10 19:37 clamav.log
-rw-r----- 1 clamav adm 9926 Nov 10 00:00 clamav.log.1
-rw-r----- 1 clamav clamav 878 Nov 3 00:00 clamav.log.2.gz
-rw-r----- 1 clamav adm 430 Nov 10 21:00 freshclam.log
-rw-r----- 1 clamav adm 0 Nov 3 00:00 freshclam.log.1
-rw-r----- 1 clamav clamav 3516 Nov 9 23:00 freshclam.log.2.gz
Why am I getting a daily email saying it is not working?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.