• mailscan does not start on linux. task hangs

    By Christian Brandlehner 2 decades ago

    I tried to upgrade to version 0.99j on Linux but the task mailscan hangs just after starting not printing any information to the console.

    I have to use nsd -kill as the server does not shutdown correct.



    After replacing the binaries with version 0.99i mailscan worked again so I assume the linux binaries are broken.

    • Execution rights, template

      By Hans-Georg Franke 2 decades ago

      Hi,

      do you set the correct exeuction rights for mailscan? Do you change the template?

      (I 've downloaded and installes the zip-archive and everything works fine.)

      What is your linux (kernel) version, -distribution?

      Greetings

      Hans-Georg

      • By Friedrich NEuhofer 2 decades ago

        Dear HansGeorg!



        Today I installed the new version (1.0 of OpenMailScan) and I have the Problem, that Mailscan does not work.



        The Task is running, but mailscan does not scan any attachments.



        mailscan.ext.log is empty.



        mailscan.log:



        [root@atpoltsr01 ~]# tail -100/mnt/samba/lndata/mailscan.log

        19.10.2005 14:04:56: ———————-

        19.10.2005 14:04:56: Other Configuration Error: "(ERROR OCCURED scanning for viruses)"

        19.10.2005 14:04:56: Send mail to originator for other config error: 0

        19.10.2005 14:04:56: Initialization complete.

        19.10.2005 14:04:56: Searching for Mailboxes.

        19.10.2005 14:04:56: No Multiple Mailboxes.

        19.10.2005 14:04:56: Startup completed.

        19.10.2005 15:27:00: Closing messagequeue

        19.10.2005 15:27:00:

        19.10.2005 15:27:00: Termination complete.

        19.10.2005 15:27:00:


        19.10.2005 15:27:07:

        19.10.2005 15:27:07: Startup……

        19.10.2005 15:27:07:


        19.10.2005 15:27:07: PID>17070

        19.10.2005 15:27:07: OpenMailScan Version 1.0, Copyright © 2004 Hans-Georg Franke

        19.10.2005 15:27:07: OpenMailScan comes with ABSOLUTELY NO WARRANTY;

        19.10.2005 15:27:07: This is free software, and you are welcome to redistribute it under certain conditions;

        19.10.2005 15:27:07: For details see included file "license.txt"

        19.10.2005 15:27:07: MAXPATH=256

        19.10.2005 15:27:07: DebugLevel: 3

        19.10.2005 15:27:07: Creating messagequeue

        19.10.2005 15:27:07: Using configdb: "atpoltsr01/Wuestenrot!!virconf.nsf"

        19.10.2005 15:27:07: Calling scanner with "/usr/local/bin/uvscan"

        19.10.2005 15:27:07: Calling with Param "-r –secure –noboot [DIRECTROY]\"

        19.10.2005 15:27:07: Working directory MailScan

        19.10.2005 15:27:07: Report to 0

        19.10.2005 15:27:07: Sending mail with from-address: "MailScan-System"

        19.10.2005 15:27:07: Sending mail with from-subject: ""

        19.10.2005 15:27:07: Sending mail-body read

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode0: 0 - Text: ""

        19.10.2005 15:27:07: Handling before0: 0

        19.10.2005 15:27:07: Deleting file with rc0: 0

        19.10.2005 15:27:07: Replacing text for rc0: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc0: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc0: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode1: 1 - Text: "Not set"

        19.10.2005 15:27:07: Handling before1: 1

        19.10.2005 15:27:07: Deleting file with rc1: 1

        19.10.2005 15:27:07: Replacing text for rc1: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc1: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc1: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode2: 2 - Text: "not set"

        19.10.2005 15:27:07: Handling before2: 1

        19.10.2005 15:27:07: Deleting file with rc2: 1

        19.10.2005 15:27:07: Replacing text for rc2: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc2: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc2: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode3: 13 - Text: "- VIRUSFUND -"

        19.10.2005 15:27:07: Handling before3: 1

        19.10.2005 15:27:07: Deleting file with rc3: 1

        19.10.2005 15:27:07: Replacing text for rc3: - VIRUS GEFUNDEN - folgende vireninfizierte Datei wurde entfernt:

        19.10.2005 15:27:07: Send mail for rc3: CN=SYST-Admin/OU=WDS/O=Wuestenrot

        19.10.2005 15:27:07: Send mail to originator for rc3: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode4: 4 - Text: "not set"

        19.10.2005 15:27:07: Handling before4: 1

        19.10.2005 15:27:07: Deleting file with rc4: 1

        19.10.2005 15:27:07: Replacing text for rc4: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc4: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc4: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode5: 5 - Text: "not set"

        19.10.2005 15:27:07: Handling before5: 1

        19.10.2005 15:27:07: Deleting file with rc5: 1

        19.10.2005 15:27:07: Replacing text for rc5: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc5: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc5: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode6: 6 - Text: "not set"

        19.10.2005 15:27:07: Handling before6: 1

        19.10.2005 15:27:07: Deleting file with rc6: 1

        19.10.2005 15:27:07: Replacing text for rc6: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc6: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc6: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode7: 7 - Text: "not set"

        19.10.2005 15:27:07: Handling before7: 1

        19.10.2005 15:27:07: Deleting file with rc7: 1

        19.10.2005 15:27:07: Replacing text for rc7: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc7: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc7: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: ReturnCode8: 8 - Text: "not set"

        19.10.2005 15:27:07: Handling before8: 1

        19.10.2005 15:27:07: Deleting file with rc8: 1

        19.10.2005 15:27:07: Replacing text for rc8: Suspicous attachment removed:

        19.10.2005 15:27:07: Send mail for rc8: noone@nowhere

        19.10.2005 15:27:07: Send mail to originator for rc8: 0

        19.10.2005 15:27:07: ———————-

        19.10.2005 15:27:07: Other Configuration Error: "(ERROR OCCURED scanning for viruses)"

        19.10.2005 15:27:07: Send mail to originator for other config error: 0

        19.10.2005 15:27:07: Initialization complete.

        19.10.2005 15:27:07: Searching for Mailboxes.

        19.10.2005 15:27:07: No Multiple Mailboxes.

        19.10.2005 15:27:07: Startup completed.









        The rights on mailscan:



        [root@atpoltsr01/opt/lotus/notes/latest/linux]# ll|grep mailscan

        -r-xr-xr-x 1 root daemon 23367 Oct 14 21:56 libmailscan.so

        -r-xr-xr-x 1 root daemon 89458 Oct 14 21:56 mailscan



        I signed virconf.nsf and virconf.ntf with serverID



        Console output:





        To exit this monitor enter a -C







        Lotus Domino (r) Server, Release 6.5.2, June 01, 2004

        Copyright (c) IBM Corporation 1987, 2004. All Rights Reserved.



        19.10.2005 14:04:40 Event Monitor started

        19.10.2005 14:04:42 Server started on physical node atpoltsr01

        19.10.2005 14:04:46 Successfully registered 34 system filters.

        19.10.2005 14:04:46 NOTES.INI contains the following DEBUG parameters:

        19.10.2005 14:04:46 MAILSCAN_DEBUGLEVEL=3

        19.10.2005 14:04:46 MAILSCAN_EXTDEBUGLEVEL=3

        19.10.2005 14:04:46 Warning: Debug parameters could impact operation or performance.

        19.10.2005 14:04:46 Contact your appropriate support vendor.

        19.10.2005 14:04:46 The Console file is/nt_server/lndata/IBM_TECHNICAL_SUPPORT/console.log

        19.10.2005 14:04:46 Console Logging is DISABLED

        19.10.2005 14:04:49 Index update process started

        19.10.2005 14:04:50 Database Replicator started

        19.10.2005 14:04:50 Replicator is set to Ignore Database Quotas

        19.10.2005 14:04:51 Admin Process: atlndomsr01/Wuestenrot is the Administration Server of the Domino Directory.

        19.10.2005 14:04:51 Starting update of database usage statistics

        > show server

        19.10.2005 14:04:51 Database Server started

        19.10.2005 14:04:51 Calendar Connector started

        19.10.2005 14:04:51 Schedule Manager started



        Lotus Domino (r) Server (Release 6.5.2 for UNIX) 19.10.2005 14:04:51



        Server name: atpoltsr01/Wuestenrot - BST atpoltsr01

        Server directory: /nt_server/lndata

        Partition: .nt_server.lndata

        Elapsed time: 00:00:11

        Transactions/minute: Last minute: 0; Last hour: 0; Peak: 0

        Peak # of sessions: 0 at

        Transactions: 0

        Availability Index: 100 (state: AVAILABLE)

        Mail Tracking: Enabled

        Mail Journaling: Not Enabled

        Shared mail: Not Enabled

        Number of Mailboxes: 1

        Pending mail: 0 Dead mail: 0

        Waiting Tasks: 0

        Transactional Logging: Not Enabled

        Fault Recovery: Not Enabled

        Activity Logging: Not Enabled

        Server Controller: Not Enabled

        Diagnostic Directory: /nt_server/lndata/IBM_TECHNICAL_SUPPORT

        Console Logging: Not Enabled

        Console Log File: /nt_server/lndata/IBM_TECHNICAL_SUPPORT/console.log

        > 19.10.2005 14:04:52 Administration Process started

        19.10.2005 14:04:52 MailScan-AddIn:

        19.10.2005 14:04:52 MailScan-AddIn: Startup……

        19.10.2005 14:04:52 MailScan-AddIn:


        19.10.2005 14:04:52 MailScan-AddIn: PID>16168

        19.10.2005 14:04:52 MailScan-AddIn: OpenMailScan Version 1.0, Copyright © 2004 Hans-Georg Franke

        19.10.2005 14:04:52 MailScan-AddIn: OpenMailScan comes with ABSOLUTELY NO WARRANTY;

        19.10.2005 14:04:52 MailScan-AddIn: This is free software, and you are welcome to redistribute it under certain conditions;

        19.10.2005 14:04:52 MailScan-AddIn: For details see included file "license.txt"

        19.10.2005 14:04:52 MailScan-AddIn: MAXPATH=256

        19.10.2005 14:04:52 MailScan-AddIn: DebugLevel: 3

        19.10.2005 14:04:52 MailScan-AddIn: Creating messagequeue

        19.10.2005 14:04:52 MailScan-AddIn: Using configdb: "atpoltsr01/Wuestenrot!!virconf.nsf"

        19.10.2005 14:04:52 Agent Manager started

        19.10.2005 14:04:53 Schedule Manager: Informational: Detailed schedule information collection is not enabled via the domain-wide Server Configuration document.

        19.10.2005 14:04:53 SchedMgr: Validating Schedule Database

        19.10.2005 14:04:54 MT Collector: Started

        19.10.2005 14:04:54 Router: Message Tracking is enabled

        19.10.2005 14:04:54 Router: Message Tracking using directory/nt_server/lndata/mtdata

        19.10.2005 14:04:54 AMgr: Executive '1' started

        19.10.2005 14:04:55 Mail Router started for domain WUESTENROTAT

        19.10.2005 14:04:55 Router: Internet SMTP host atpoltsr01 in domain wuestenrot.at

        19.10.2005 14:04:55 MT Collector: Using directory/nt_server/lndata/mtdata

        19.10.2005 14:04:56 MailScan-AddIn: Calling scanner with "/usr/local/bin/uvscan"

        19.10.2005 14:04:56 MailScan-AddIn: Calling with Param "-r –secure –noboot [DIRECTROY]\"

        19.10.2005 14:04:56 MailScan-AddIn: Working directory MailScan

        19.10.2005 14:04:56 MailScan-AddIn: Report to 0

        19.10.2005 14:04:56 MailScan-AddIn: Sending mail with from-address: "MailScan-System"

        19.10.2005 14:04:56 MailScan-AddIn: Sending mail with from-subject: ""

        19.10.2005 14:04:56 MailScan-AddIn: Sending mail-body read

        19.10.2005 14:04:56 MailScan-AddIn: ———————-

        19.10.2005 14:04:56 MailScan-AddIn: ReturnCode0: 0 - Text: ""

        19.10.2005 14:04:56 MailScan-AddIn: Handling before0: 1

        19.10.2005 14:04:56 MailScan-AddIn: Deleting file with rc0: 1

        19.10.2005 14:04:56 MailScan-AddIn: Replacing text for rc0: Suspicous attachment removed:

        19.10.2005 14:04:56 MailScan-AddIn: Send mail for rc0: noone@nowhere

        19.10.2005 14:04:56 MailScan-AddIn: Send mail to originator for rc0: 0

        19.10.2005 14:04:56 MailScan-AddIn: ———————-

        19.10.2005 14:04:56 MailScan-AddIn: ReturnCode1: 1 - Text: "Not set"

        19.10.2005 14:04:56 MailScan-AddIn: Handling before1: 1

        19.10.2005 14:04:56 MailScan-AddIn: Deleting file with rc1: 1

        19.10.2005 14:04:56 MailScan-AddIn: Replacing text for rc1: Suspicous attachment removed:

        19.10.2005 14:04:56 MailScan-AddIn: Send mail for rc1: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc1: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode2: 2 - Text: "not set"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before2: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc2: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc2: Suspicous attachment removed:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc2: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc2: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode3: 13 - Text: "- VIRUSFUND -"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before3: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc3: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc3: - VIRUS GEFUNDEN - folgende vireninfizierte Datei wurde entfernt:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc3: CN=SYST-Admin/OU=WDS/O=Wuestenrot

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc3: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode4: 4 - Text: "not set"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before4: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc4: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc4: Suspicous attachment removed:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc4: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc4: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode5: 5 - Text: "not set"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before5: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc5: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc5: Suspicous attachment removed:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc5: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc5: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode6: 6 - Text: "not set"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before6: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc6: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc6: Suspicous attachment removed:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc6: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc6: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode7: 7 - Text: "not set"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before7: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc7: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc7: Suspicous attachment removed:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc7: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc7: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: ReturnCode8: 8 - Text: "not set"

        19.10.2005 14:04:57 MailScan-AddIn: Handling before8: 1

        19.10.2005 14:04:57 MailScan-AddIn: Deleting file with rc8: 1

        19.10.2005 14:04:57 MailScan-AddIn: Replacing text for rc8: Suspicous attachment removed:

        19.10.2005 14:04:57 MailScan-AddIn: Send mail for rc8: noone@nowhere

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for rc8: 0

        19.10.2005 14:04:57 MailScan-AddIn: ———————-

        19.10.2005 14:04:57 MailScan-AddIn: Other Configuration Error: "(ERROR OCCURED scanning for viruses)"

        19.10.2005 14:04:57 MailScan-AddIn: Send mail to originator for other config error: 0

        19.10.2005 14:04:57 MailScan-AddIn: Initialization complete.

        19.10.2005 14:04:57 MailScan-AddIn: Searching for Mailboxes.

        19.10.2005 14:04:57 MailScan-AddIn: No Multiple Mailboxes.

        19.10.2005 14:04:57 MailScan-AddIn: Startup completed.



        +



        Linux version:



        [root@atpoltsr01/opt/lotus/notes/latest/linux]# cat/proc/version

        Linux version 2.4.21-37.EL (centos@sillage.bis.pasteur.fr) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)) #1 Wed Sep 28 14:14:23 EDT 2005



        I look forward to hearing from you!



        Greetings



        Fritz

        • Perhaps i use a newer gcc

          By Hans-Georg Franke 2 decades ago

          Hi,

          i'm compiling on a Kernel 2.6 an dusing gcc 3.35. Can you do a compile of mailscan-extmgr (install notes-Api and do a make -f linux.mak)?



          Greetings

          Hans-Georg