MailScanner / v5

MailScanner v5
GNU General Public License v2.0
187 stars 60 forks source link

date: invalid date error when running MailScanner --lint #664

Closed gordoncolyn closed 3 months ago

gordoncolyn commented 1 year ago

When running MailScanner --lint I get the following errors and esetsefs does not give a result at the end of the errors;

Output below; There are 18 messages in the Processing Attempts Database Using locktype = posix MailScanner.conf says "Virus Scanners = esetsefs clamd" Found these virus scanners installed: esetsefs, clamd

Virus and Content Scanning: Starting date: invalid date ‘28/03/2023 12:55:34’ /usr/lib/MailScanner/wrapper/esetsefs-wrapper: line 53: [: -ge: unary operator expected date: invalid date ‘28/03/2023 12:58:36’ /usr/lib/MailScanner/wrapper/esetsefs-wrapper: line 53: [: -ge: unary operator expected date: invalid date ‘28/05/2023 19:24:04’ /usr/lib/MailScanner/wrapper/esetsefs-wrapper: line 53: [: -ge: unary operator expected Clamd::ERROR:: Can't open file or directory ERROR :: ./1/neicar.com Clamd::INFECTED::Win.Test.EICAR_HDB-1 :: ./1/ Virus Scanning: Clamd found 2 infections Infected message 1 came from 10.1.1.1 Virus Scanning: Found 2 viruses

To Reproduce MailScanner --lint on command line

Expected behavior There are 34 messages in the Processing Attempts Database Using locktype = posix MailScanner.conf says "Virus Scanners = esetsefs clamd" Found these virus scanners installed: esetsefs, clamd

Virus and Content Scanning: Starting Esets::INFECTED::Eicar Virus Scanning: esetsefs found 1 infections Clamd::INFECTED::Win.Test.EICAR_HDB-1 :: ./1/ Clamd::INFECTED:: Win.Test.EICAR_HDB-1 :: ./1/eicar.com Virus Scanning: Clamd found 2 infections Infected message 1 came from 10.1.1.1 Virus Scanning: Found 3 viruses

Virus Scanner test reports: Esets said "found Eicar in eicar.com" Clamd said "eicar.com was infected: Win.Test.EICAR_HDB-1"

Server (please complete the following information):

Additional context This error did not show on intial install, it seemed to only show up after patching, but I cannot tell when....

github-actions[bot] commented 1 year ago

Thank you for submitting your first issue to MailScanner! We will respond to you soon!

shawniverson commented 1 year ago

@gordoncolyn Take a look at /usr/lib/MailScanner/esetefs-wrapper and adjust the DATEORDER variable as follows.

DATEORDER='%d %m %Y'