Enhancement #2678
Mail filter: remove clamav warning
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-mail-filter | |||
Target version: | v6.5-final | |||
Resolution: | NEEDINFO: | No |
Description
On a fresh installed server with mail server and mail filter, the web interface will show a waning message like this:
Database is older than 5 days. Check logs for more details.${title}
The warning is raised by clamav database which isn't up to date.
The warning can be safely removed, because clamav will update database in background.
Related issues
Associated revisions
Filter UI module: improved antivirus update failure notice. Refs #2678
Read freshclam-updates.log to get update state from freshclam.
An error notification is shown only if freshclam has run in the last
12 hours, its status is "error" and database files are older than 5
days.
History
#1 Updated by Filippo Carletti over 7 years ago
Wouldn't the warning message disappear automatically when clamav updates?
I'd leave the warning for cases where the update really fails for many days in a row.
#2 Updated by Giacomo Sanchietti over 7 years ago
Wouldn't the warning message disappear automatically when clamav updates?
Yes, but the actual text is totally incomprehensible.
I'd leave the warning for cases where the update really fails for many days in a row.
I agree, but this is a configuration page. If we want to leave the alert it should be placed on the Dashboard page.
#3 Updated by Davide Principi over 7 years ago
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
#4 Updated by Davide Principi over 7 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Davide Principi
- % Done changed from 20 to 30
#5 Updated by Davide Principi over 7 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
Test case 1
- Grab the freshclam mirrors from freshclam.conf:
# grep Mirror /etc/freshclam.conf DatabaseMirror db.it.clamav.net DatabaseMirror db.local.clamav.net
- In DNS UI module, define any DatabaseMirror as server self alias, to fake freshclam update failures.
- Run freshclam and verify it's state is
error
:# cat /var/log/clamav/freshclam-updates.log error 2014-03-04T11:52:50Z
- Now fake stale db signatures:
# touch -d @$((`date +%s` - (3600*24*7))) /var/lib/clamav/*
- Open Mail UI interface: you must see the error notification
Test case 2
- Remove DNS aliases
- Restore signatures access/modification timestamp in /var/lib/clamav/*
- Run freshclam
- Open Mail UI interface: you must not see the error notification
#6 Updated by Davide Principi over 7 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
In nethserver-testing:
nethserver-mail-filter-1.1.4-1.0gita8e4916a.ns6.noarch.rpm
#7 Updated by Giacomo Sanchietti over 7 years ago
- Assignee set to Giacomo Sanchietti
#8 Updated by Giacomo Sanchietti over 7 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
Test cases verified, but notification still displays a bad label.
Notification must be moved to dashboard: close this bug after #2686 is verified.
#9 Updated by Davide Principi over 7 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
In nethserver-updates:
nethserver-mail-filter-1.1.5-1.ns6.noarch.rpm
nethserver-antivirus-1.0.7-1.ns6.noarch.rpm