ClamScan Quarantine issues

NethServer Version: 7.8.2003 (final)
Module: ClamScan 1.0.0

cc: @stephdl

Hi everyone!

Unfortunately, for me is true only “Found Quarantine on old web interface under configuration / antivirus scanner.”, because I cannot restore the emails from Quarantine.

Related to this issue, I received two emails (please see the attached files), both at the same hour, after the scheduled scan was finished.
One is from ClamScan which inform me about the results of the scheduled scan.
The other email is from Cron, regarding an issue (or not) with nethserver-clamscan configuration.

How can I restore those emails (all contains an .xlsx price-list from one supplier)?


hum first I would like to debug

do you have a quarantine db in /var/lib/nethserver/db

the email are in /var/spool/clamav/quarantine, so you can move them back manually

I do not understand, the quarantine db is created at

and you used root to run sbin/e-smith/nethserver-clamscan

hum :-?

I bet the qurantine db does not exist but why… does it is a brand new server ?

Hi @stephdl ,

Thank you for your answer.

Yes, it is.

No, but I have installed ClamScan 3 days ago.

Quarantine db

what is the content of the db quarantine…empty or something interesting inside ?

Need to check…not much time right now…

In Cockpit Quarantine is nothing, only in old GUI but I cannot restore anything.

Take your time!

Kind regards,

could you send me the quarantine db by email stephdl at de-labrusse dot fr

thank in advance

Of course!
Give me 5 minutes, please!

You found funny bug, it seems that the email address broke my code, with a file path it works OTB

Valid, the = of the email path is not accepted … I feel alone tonight :smiley:

NO! You’ll never walk alone! :wink:
We are with you!

1 Like

let me think on the fix…did you succeed to move the email back to the /var/lib/nethserver/vmail folder ?

I didn’t do anything till now.
Do you want to move them “by hand”, as you told me earlier?

I think yes, all in var/spool/clamav/quarantine must be moved to /var/lib/nethserver/vmail/gabriel.xx@xxx/Maildir/cur/

mv /var/spool/clamav/quarantine/* /var/lib/nethserver/vmail/gabriel.xx@xxx/Maildir/cur/

normally permission are kept

mv: target ‘/…/’ is not a directory (of course, the right path)

Sorry! My fault! I forgot to write .ro at the email address!
The emails were moved.

Sorry for that! :grinning:
Sincerely, I wanted to test the ClamScan and the Quarantine function (find “bad” files, quarantine, release from quarantine).
I knew that those files contain macros and I set ClamScan to scan by VBA macros to see if it works.
Partialy, works … :innocent:

1 Like

the quarantine works…the release is broken :smiley:

1 Like

I’m not worried about that. I know you will fix it.
You already found the clue: “=”.

1 Like

I have almost fixed the issue, coming soon

1 Like