• MailScan mit Norman Virus control

    By Olf-Peter Modic 2 decades ago

    Hallo Hans-Georg,



    ich möchte Mailscan in Verbindung mit Notes 7.02/Win32 und Norman Virus Control verwenden.



    NVCC (der Commandlinescanner von Norman) gibt folgenden Fehler wieder:



    Command line: "-c -s -q D:\Programme\Lotus\Domino\data\mailscan\342654" "

    • Could not open D:\Programme\Lotus\Domino\data\mailscan\342654". Invalid module name.

      Das Verzeichnis ist richtig und ist les- und beschreibar. Das lokale Systemkonto hat Vollzugriff (Testweise habe ich jedem Vollzugriff auf das Verzeichnis mailscan mit vererbaren Rechten gegeben).



      Lege ich ein Verzeichnis unterhalb von "mailscan" (dem Verzeichnis in dem Anhänge gescannt werden) an und rufe NVCC von Hand auf funktioniert es prima.



      Command line: "-C -S -Q D:\Programme\Lotus\Domino\data\mailscan\342670 "



      Mir fällt auf, das der Aufruf laut Logfile des Virenscanners:

      Command line: "-C -S -Q D:\Programme\Lotus\Domino\data\mailscan\342670" "



      lautet. Am Ende ist ein weiteres Anführungszeichen.

      Ich vermute dort das Problem, habe aber keine Möglichkeit gefunden das zu unterdrücken oder zu konfigurieren.

      Hast du schonmal ein ähnliches Problem gehabt?
    • Debug-Level bitte auf drei setzen

      By Hans-Georg Franke 2 decades ago

      Hi,



      bitte

      MailScan_DebugLevel=3

      MailScan_logToFile=1

      MailScan_logToLognsf=2

      MailScan_LogFileName=/home/notesdata/MailScan.log



      Aus der MailScan.log ist dann die Zeile nach "Starte scanner mit command:" interessant..



      Welche Version von MailScan setzt Du ein??



      Hans-Georg

      • By Olf-Peter Modic 2 decades ago

        Hi Hans-Georg.



        Danke für die schnelle Antwort.

        Ich verwende die aktuelle Version 1.0b

        Hier der Inhalt des Logs:



        24.04.2007 12:46:28:

        24.04.2007 12:46:28: Startup……

        24.04.2007 12:46:28:


        24.04.2007 12:46:28: PID>1844

        24.04.2007 12:46:28: OpenMailScan Version 1.0b, Copyright © 2004 Hans-Georg Franke

        24.04.2007 12:46:28: OpenMailScan comes with ABSOLUTELY NO WARRANTY;

        24.04.2007 12:46:28: This is free software, and you are welcome to redistribute it under certain conditions;

        24.04.2007 12:46:28: For details see included file "license.txt"

        24.04.2007 12:46:28: MAXPATH=256

        24.04.2007 12:46:28: DebugLevel: 3

        24.04.2007 12:46:28: Creating messagequeue

        24.04.2007 12:46:28: Using configdb: "pdcweb01/intdomain!!virensca.nsf"

        24.04.2007 12:46:30: Calling scanner with "D:\Programme\Norman\NVC\Bin\Nvcc.exe"

        24.04.2007 12:46:30: Calling with Param "-c -s -q [DIRECTROY]\"

        24.04.2007 12:46:30: Working directory mailscan

        24.04.2007 12:46:30: Report to 0

        24.04.2007 12:46:30: Sending mail with from-address: "MailScan-System"

        24.04.2007 12:46:30: Sending mail with from-subject: "Virus in Mail gefunden"

        24.04.2007 12:46:30: Sending mail-body read

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode0: 0 - Text: ""

        24.04.2007 12:46:30: Handling before0: 0

        24.04.2007 12:46:30: Deleting file with rc0: 0

        24.04.2007 12:46:30: Replacing text for rc0: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc0: noone@nowhere

        24.04.2007 12:46:30: Send mail to originator for rc0: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode1: 1 - Text: "[VIRUS GEFUNDEN]"

        24.04.2007 12:46:30: Handling before1: 1

        24.04.2007 12:46:30: Deleting file with rc1: 2

        24.04.2007 12:46:30: Replacing text for rc1: VIRUS!

        24.04.2007 12:46:30: Send mail for rc1: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc1: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode2: 2 - Text: "(EC2)"

        24.04.2007 12:46:30: Handling before2: 1

        24.04.2007 12:46:30: Deleting file with rc2: 2

        24.04.2007 12:46:30: Replacing text for rc2: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc2: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc2: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode3: 3 - Text: "(EC3)"

        24.04.2007 12:46:30: Handling before3: 1

        24.04.2007 12:46:30: Deleting file with rc3: 2

        24.04.2007 12:46:30: Replacing text for rc3: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc3: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc3: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode4: 4 - Text: "(EC4)"

        24.04.2007 12:46:30: Handling before4: 1

        24.04.2007 12:46:30: Deleting file with rc4: 2

        24.04.2007 12:46:30: Replacing text for rc4: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc4: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc4: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode5: 5 - Text: "(EC5)"

        24.04.2007 12:46:30: Handling before5: 1

        24.04.2007 12:46:30: Deleting file with rc5: 2

        24.04.2007 12:46:30: Replacing text for rc5: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc5: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc5: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode6: 6 - Text: "(EC6)"

        24.04.2007 12:46:30: Handling before6: 1

        24.04.2007 12:46:30: Deleting file with rc6: 2

        24.04.2007 12:46:30: Replacing text for rc6: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc6: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc6: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode7: 7 - Text: "(EC7)"

        24.04.2007 12:46:30: Handling before7: 1

        24.04.2007 12:46:30: Deleting file with rc7: 2

        24.04.2007 12:46:30: Replacing text for rc7: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc7: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc7: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: ReturnCode8: 8 - Text: "(EC8)"

        24.04.2007 12:46:30: Handling before8: 1

        24.04.2007 12:46:30: Deleting file with rc8: 2

        24.04.2007 12:46:30: Replacing text for rc8: Suspicous attachment removed:

        24.04.2007 12:46:30: Send mail for rc8: viralerts@localhost

        24.04.2007 12:46:30: Send mail to originator for rc8: 0

        24.04.2007 12:46:30: ———————-

        24.04.2007 12:46:30: Other Configuration Error: "(ERROR OCCURED scanning for viruses)"

        24.04.2007 12:46:30: Send mail to originator for other config error: 0

        24.04.2007 12:46:30: Initialization complete.

        24.04.2007 12:46:30: Searching for Mailboxes.

        24.04.2007 12:46:30: No Multiple Mailboxes.

        24.04.2007 12:46:30: Startup completed.

        24.04.2007 12:48:29:

        24.04.2007 12:48:29: Start with new Note

        24.04.2007 12:48:29:


        24.04.2007 12:48:29: Mail with mimePart-Body found

        24.04.2007 12:48:29: MimePart-Body found. Searching for attachment via tag "filename="

        24.04.2007 12:48:29: Memory for MimePart-Body reserved. size: 196

        24.04.2007 12:48:29: MimePart. Searching for boundary-start

        24.04.2007 12:48:29: MimePart. Boundary already found

        24.04.2007 12:48:29: NO MimePart-Attachment found.

        24.04.2007 12:48:29: MimePart-Body found. Searching for attachment via tag "filename="

        24.04.2007 12:48:29: Memory for MimePart-Body reserved. size: 2844

        24.04.2007 12:48:29: MimePart. Searching for boundary-start

        24.04.2007 12:48:29: MimePart. Boundary already found

        24.04.2007 12:48:29: NO MimePart-Attachment found.

        24.04.2007 12:48:29: MimePart-Body found. Searching for attachment via tag "filename="

        24.04.2007 12:48:29: Memory for MimePart-Body reserved. size: 258

        24.04.2007 12:48:29: MimePart. Searching for boundary-start

        24.04.2007 12:48:29: MimePart. Boundary already found

        24.04.2007 12:48:29: MimePart-Attachment found: filename-token

        24.04.2007 12:48:29: MimePart-Body found. Searching for attachment via tag "filename="

        24.04.2007 12:48:29: Memory for MimePart-Body reserved. size: 2770

        24.04.2007 12:48:29: MimePart. Searching for boundary-start

        24.04.2007 12:48:29: MimePart. Boundary already found

        24.04.2007 12:48:29: NO MimePart-Attachment found.

        24.04.2007 12:48:29: No (more) body-item(s) found

        24.04.2007 12:48:29: MimePart-Body found

        24.04.2007 12:48:29: Next Body to check for MIME

        24.04.2007 12:48:29: MimePart-Body found

        24.04.2007 12:48:29: Next Body to check for MIME

        24.04.2007 12:48:29: MimePart-Body found

        24.04.2007 12:48:29: Next Body to check for MIME

        24.04.2007 12:48:29: MimePart-Body found

        24.04.2007 12:48:29: Next Body to check for MIME

        24.04.2007 12:48:29: Checking for MimePart-Body ready:

        24.04.2007 12:48:29: mimenratt: 1 - nratt: 1

        24.04.2007 12:48:29: mimenratt equals nratt

        24.04.2007 12:48:29: Found 1 Attachment

        24.04.2007 12:48:29: Scanning Attachment

        24.04.2007 12:48:29: length of szFileName: 16

        24.04.2007 12:48:29: Filename before: email_banner.gif

        24.04.2007 12:48:29: Starting while

        24.04.2007 12:48:29: Filename_lower email_banner.gif

        24.04.2007 12:48:29: BLOCKID ASCII not found for

        24.04.2007 12:48:29: Filename email_banner.gif

        24.04.2007 12:48:29: Creating Directory D:\Programme\Lotus\Domino\data\mailscan\342642

        24.04.2007 12:48:29: Cleaning directory D:\Programme\Lotus\Domino\data\mailscan\342642

        24.04.2007 12:48:29: Extracting to D:\Programme\Lotus\Domino\data\mailscan\342642\1 from email_banner.gif

        24.04.2007 12:48:29: Starting scanner with command:

        24.04.2007 12:48:29: ""D:\Programme\Norman\NVC\Bin\Nvcc.exe" -c -s -q "D:\Programme\Lotus\Domino\data\mailscan\342642\""

        24.04.2007 12:48:35: Returncode of virusscanner: 10

        24.04.2007 12:48:35: Getting next attachment

        24.04.2007 12:48:35: Processing delete for returncode 10

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 0 - n: 0

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 1 - n: 1

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 2 - n: 2

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 3 - n: 3

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 4 - n: 4

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 5 - n: 5

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 6 - n: 6

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 7 - n: 7

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 8 - n: 8

        24.04.2007 12:48:35: Loop of returncode 10 - rc(n): 0 - n: 9

        24.04.2007 12:48:35: Next while

        24.04.2007 12:48:35: Attachments ready

        24.04.2007 12:48:35: Start of processRC

        24.04.2007 12:48:35: Manipulating Subject by adding for rc00 before=00

        24.04.2007 12:48:35: MimePart. Boundary

        24.04.2007 12:48:35: Not Manipulating. Text is empty for rc00

        24.04.2007 12:48:35: Removing directory D:\Programme\Lotus\Domino\data\mailscan\342642

        24.04.2007 12:48:35: directory D:\Programme\Lotus\Domino\data\mailscan\342642 removed

        24.04.2007 12:48:35: Updating note

        24.04.2007 12:48:35:

        24.04.2007 12:48:35: processNote ready

        24.04.2007 12:48:35:




        Danke und Gruß



        Olf

        • Scan File/Directory

          By Hans-Georg Franke 2 decades ago

          Hi,

          setze bitte erst einmal den Wert oben auf "File", dann sollte es gehen.



          Im Log sieht man:

          Starting scanner with comman:

          ""D:.….\nvcc.exe" -c -s -q "d:\Pro…….\mailscan\342642\""

          Und da am Ende lauert scheinbar der Fehler. Ich schaue mir das mal an.

          Viele Grüße

          Hans-Georg

          • Option nicht in der Konfiguration vorhanden

            By Olf-Peter Modic 2 decades ago

            Hallo Hans-Georg,



            diese Option ist bei mir im Konfigurationsdokument nicht vorhanden. Laut Dokumentation sollte dieser Punkt ja zwischen "calling commandline…" und "calling parameters…" im Konfigurationsdokument stehen, ist aber bei mir nicht vorhanden - auch nicht an anderer Stelle.

            Ich habe mir aus der aktuellen Schablone zum test eine neue Datenbank angelegt und ein neues Dokument erzeugt, auch dort kann ich die Option nicht entdecken.



            Gruß



            Olf

            • Hi

              By Hans-Georg Franke 2 decades ago

              der Parameter kommt nach "Working Directory"

              und da ist in der Tat das Problem mit der Schablone.



              Füge ein Options-Feld scandir ein mit den Werten:

              File

              Directory



              Dann kannst Du es umschalten auf File.

              Hans-Georg

              • Funktioniert

                By Olf-Peter Modic 2 decades ago

                Hallo Hans-Georg,



                jetzt funktioniert es - vielen Dank.

                Kurze Frage: Wie beeinflusst die Option "File" statt "Directory" den Virenscan?



                Gruß



                Olf

                • Eigentlich gar nicht

                  By Hans-Georg Franke 2 decades ago

                  Hi,

                  bei der Option wird der voll qualifizierte Dateiname mit übergeben, nicht nur das Verzeichnis in das die Datei gespeichert wurde. Der Effekt ist nahezu der gleiche. Ich habe das damals gemacht, falls es Scanner gibt, die das benötigen.

                  Hans-Georg

                  • By Olf-Peter Modic 2 decades ago

                    Hi Hans-Georg,



                    bei der Option "Directory" wurde wie du gesehen hast ein Anführungszeichen zuviel übergeben. Ich frage mich natürlich wieso das scheinbar nur bei mir so der Fall ist. Bei der Option "File" funktioniert es dann prima.

                    Nochmals besten Dank!



                    Gruß



                    Olf