Moderators: ScalixSupport, admin
Code: Select all
/var/opt/scalix/rules/omvscan.map: line 976: return: can only `return' from a function or sourced script
Code: Select all
[root@avalon logs]# cat /var/opt/scalix/rules/ALL-ROUTES.VIR
VIRUS-UNCLEANED=1 ACTION=REJECT NDN-INFO=ndninfo.txt
VIRUS-UNCLEANED=0 VIRUS-FOUND=1 ACTION=ALLOW NOTIFY="A virus was found in your outgoing message. It was cleaned and the message was delivered; please ensure that a virus scanner is running and is updated."
Code: Select all
[root@avalon ~]# cp /opt/scalix/examples/general/omvscan.map /var/opt/scalix/rules
[root@avalon ~]# chown root /var/opt/scalix/rules/omvscan.map
[root@avalon ~]# chmod 555 /var/opt/scalix/rules/omvscan.map
Code: Select all
[root@avalon logs]# tail fatal
ERROR Service Router(Service Router) Tue Mar 7 12:55:38 2006
[OM 5183] A Mapper error has been detected.
Pid of logging process: 29886
SERIOUS ERROR Service Router(Service Router) Tue Mar 7 12:55:38 2006
[OM 5183] A Mapper error has been detected.
Pid of logging process: 29886
Code: Select all
+++ Started at Thu Mar 9 11:51:38 2006
clamd daemon 0.88 (OS: linux-gnu, ARCH: i386, CPU: i386)
Log file size limited to 1048576 bytes.
Running as user scalix (UID 100, GID 101)
Reading databases from /var/lib/clamav
Protecting against 46062 viruses.
Unix socket file /var/run/clamd.scalix/clamd.sock
Setting connection queue length to 15
Archive: Archived file size limit set to 10485760 bytes.
Archive: Recursion level limit set to 8.
Archive: Files limit set to 1000.
Archive: Compression ratio limit set to 250.
Archive support enabled.
Archive: RAR support disabled.
Portable Executable support enabled.
Mail files support enabled.
OLE2 support enabled.
HTML support enabled.
Self checking every 1800 seconds.
Code: Select all
ClamAV update process started at Thu Mar 9 11:40:11 2006
main.cvd is up to date (version: 36, sigs: 44686, f-level: 7, builder: tkojm)
daily.cvd is up to date (version: 1319, sigs: 1376, f-level: 7, builder: ccordes)
Code: Select all
[root@avalon logs]# cat fatal
ERROR Service Router(Service Router) Thu Mar 9 11:34:28 2006
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: <none - expect greeting reply>
Reply received: 503 "ClamAV" cannot scan Scalix-owned file Clamd is not configured properly.
Pid of logging process: 16052
ERROR Service Router(Service Router) Thu Mar 9 11:34:28 2006
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: QUIT Please Close This Session
Reply received: 220 Virus Scanning Client Ready
Pid of logging process: 16052
ERROR Service Router(Service Router) Thu Mar 9 11:34:28 2006
[OM 5183] A Mapper error has been detected.
Pid of logging process: 16052
SERIOUS ERROR Service Router(Service Router) Thu Mar 9 11:34:28 2006
[OM 5183] A Mapper error has been detected.
Pid of logging process: 16052
ERROR Service Router(Service Router) Thu Mar 9 11:54:08 2006
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: <none - expect greeting reply>
Reply received: 503 "ClamAV" cannot scan Scalix-owned file Clamd is not configured properly.
Pid of logging process: 16779
ERROR Service Router(Service Router) Thu Mar 9 11:54:08 2006
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: QUIT Please Close This Session
Reply received: 220 Virus Scanning Client Ready
Pid of logging process: 16779
ERROR Service Router(Service Router) Thu Mar 9 11:54:08 2006
[OM 5183] A Mapper error has been detected.
Pid of logging process: 16779
SERIOUS ERROR Service Router(Service Router) Thu Mar 9 11:54:08 2006
[OM 5183] A Mapper error has been detected.
Pid of logging process: 16779
Code: Select all
[root@avalon logs]# cat daemon.stderr
/var/opt/scalix/rules/omvscan.map: line 976: return: can only `return' from a function or sourced script
/var/opt/scalix/rules/omvscan.map: line 976: return: can only `return' from a function or sourced script
Code: Select all
[root@avalon logs]# ls -la /var/opt/scalix/rules
total 60
drwxrwx--- 2 scalix scalix 4096 Mar 9 11:00 .
drwxrwxr-x 50 scalix scalix 4096 Mar 7 16:33 ..
-rw-r--r-- 1 root root 260 Mar 9 10:58 ALL-ROUTES.VIR
-rw-r--r-- 1 root root 185 Mar 9 11:00 ndninfo.txt
-r-xr-xr-x 1 root root 35644 Mar 9 10:59 omvscan.map
Code: Select all
[root@avalon test]# clamdscan --config-file=/etc/clamd.d/scalix.conf
/home/burhan/test/clam.exe: ClamAV-Test-File FOUND
/home/burhan/test/clam.cab: ClamAV-Test-File FOUND
/home/burhan/test/clam.zip: ClamAV-Test-File FOUND
/home/burhan/test/clam.exe.bz2: ClamAV-Test-File FOUND
----------- SCAN SUMMARY -----------
Infected files: 4
Time: 0.007 sec (0 m 0 s)
Code: Select all
REPORT Service Router(Service Router) 03.11.06 17:26:08
[OM 5189] Mapper just invoked:
/var/opt/scalix/rules/omvscan.map
Mapper must now output greeting reply to start the session.
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7803] Started routing of message
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7805] Current message Id
24211360.1142087208428.JavaMail.root(a)webmail.domain.com
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7815] Creator of message
Burhan Khalid/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7807] Started routing of recipient
Burhan Khalid/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7810] Recipient will be routed to service queue LOCAL if not deferred
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7880] Rule-set associated with route: ALL-ROUTES.VIR
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7881] Action from rule-set: REJECT
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7811] Generated non-delivery notification for recipient
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7886] Routing rule violation: Message matched REJECT rule.
(Rule-set: ALL-ROUTES.VIR Rule-name: )
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7808] Finished routing of recipient
Burhan Khalid/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7804] Finished routing of message
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7803] Started routing of message
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7806] Current acknowledgement Id
24211360.1142087208428.JavaMail.root(a)webmail.domain.com
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7807] Started routing of recipient
postmaster/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7810] Recipient will be routed to service queue LOCAL if not deferred
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7808] Finished routing of recipient
postmaster/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7812] Putting message on service queue LOCAL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7804] Finished routing of message
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7803] Started routing of message
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7806] Current acknowledgement Id
24211360.1142087208428.JavaMail.root(a)webmail.domain.com
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7807] Started routing of recipient
Burhan Khalid/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7810] Recipient will be routed to service queue LOCAL if not deferred
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7808] Finished routing of recipient
Burhan Khalid/AUL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7812] Putting message on service queue LOCAL
REPORT Service Router(Service Router) 03.11.06 17:28:23
[OM 7804] Finished routing of message
Code: Select all
2 The example below shows how to configure the ALL-ROUTES.VIR file to repair the
message and notify the sender of an infected attachment:
VIRUS-UNCLEANED=1 ACTION=REJECT NDN-INFO=ndninfo.txt
If the virus software cannot repair the attachment, Scalix discards the message and
a non-delivery notification containing the text in the /var/opt/scalix/
rules/ndninfo.txt file is sent to the sender.
Users browsing this forum: No registered users and 3 guests