Koozali.org: home of the SME Server

Bug on antivirus activation?

Offline Fumetto

  • *
  • 876
  • +1/-0
Bug on antivirus activation?
« on: September 07, 2021, 03:36:54 AM »
I read messages log for... my personal entertainment... :D and I found what could be a bug...
I have activated the virus scan of the emails from the server manager and...
Quote
Sep  7 03:14:06 server /etc/e-smith/web/functions/emailsettings[15387]: /home/e-smith/db/mailpatterns: OLD UmFyIRoHA=pattern|Body|UmFyIRoHA|Description|Rar archive (UmFyIRoHA)|Glob|yes|LineStart|yes|status|disabled
Sep  7 03:14:06 server /etc/e-smith/web/functions/emailsettings[15387]: /home/e-smith/db/mailpatterns: NEW UmFyIRoHA=pattern|Body|UmFyIRoHA|Description|Rar archive (UmFyIRoHA)|Glob|yes|LineStart|yes|Status|disabled|status|disabled
Perhaps in the configuration script there is an uppercase (or lowercase) to correct; I don't know where, but if someone shows me where to look, I can take a look too

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Bug on antivirus activation?
« Reply #1 on: September 07, 2021, 05:42:08 AM »
good catch


this is a bug. 

should be Status in this db.  when adding the new pattern status has been used.

could you open a bug against SME 10.0 ?

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Bug on antivirus activation?
« Reply #2 on: September 07, 2021, 11:59:31 AM »
This is because we have this:

Code: [Select]
UmFyIRoHA=pattern
    Body=UmFyIRoHA
    Description=Rar archive (UmFyIRoHA)
    Glob=yes
    LineStart=yes
    status=disabled

If you update/modify that mail pattern you get this:

Code: [Select]
UmFyIRoHA=pattern
    Body=UmFyIRoHA
    Description=Rar archive (UmFyIRoHA)
    Glob=yes
    LineStart=yes
    Status=disabled
    status=disabled
 

That is because of this:

ll e-smith-email-5.6.0.old/root/etc/e-smith/db/mailpatterns/defaults/UmFyIRoHA
total 24
-rw-r--r-- 1 john john 10 Sep  7 11:52 Body
-rw-r--r-- 1 john john 24 Sep  7 11:52 Description
-rw-r--r-- 1 john john  4 Sep  7 11:52 Glob
-rw-r--r-- 1 john john  4 Sep  7 11:52 LineStart
-rw-r--r-- 1 john john  9 Sep  7 11:52 status
-rw-r--r-- 1 john john  8 Sep  7 11:52 type


That should be 'Status'.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fumetto

  • *
  • 876
  • +1/-0
Re: Bug on antivirus activation?
« Reply #3 on: September 08, 2021, 04:49:56 AM »
Bug open.