ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
clamd.conf setup - Blat
ferris


Joined: 27 Mar 2006
Posts: 2
Reply with quote
I am trying to configure Clam (v 0.88) to send an email via Blat (a command line emailer, v 2.5).

In the clamd.conf file, I have tried both of the commands below, changing the quotes, but neither work.
I can not seem to get Clam to send an email via Blat. (can send using Blat manually).
Would this error show up in any of the log files? I do not see it - have verbose loggin on.

____________________
# Execute a command when virus is found. In the command string %v will
# be replaced by a virus name.

VirusEvent "C:/program files/blat/blat.exe - -body Virus_Detected_%v -subject Virus_Detected_%v" -to virus@myemail.com -noh2 -log log.txt -p ClamAV"
-or-
VirusEvent C:/program files/blat/blat.exe - -body "Virus Detected by Clam AV: %v" -subject "Virus Detected: %v" -to virus@myemail.com -noh2 -log log.txt -p ClamAV

(standard Blat commands are preceeded with a dash, and these commands work when run from cmd)

many thanks.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 1748
Reply with quote
try this:
VirusEvent "C:/program files/blat/blat.exe" - -body "Virus Detected by Clam AV: %v" -subject "Virus Detected: %v" -to virus@myemail.com -noh2 -log log.txt -p ClamAV

or replace "C:/program files/blat/blat.exe" with 8.3 name, ususally c:/progra~1/blat/blat.exe

VirusEvent c:/progra~1/blat/blat.exe - -body "Virus Detected by Clam AV: %v" -subject "Virus Detected: %v" -to virus@myemail.com
View user's profileSend private message
ferris


Joined: 27 Mar 2006
Posts: 2
Reply with quote
thanks for the suggestions (good ones).
alas, i can not seem to get it to work.

(restarting the service after each change etc)

it never seems to get to Blat - nothing shows up in the Blat log.
don't see where it might show up in the Clam logs.

thanks.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 1748
Reply with quote
try some other command, like notepad.exe to see if clamd is calling virusevent
View user's profileSend private message
clamd.conf setup - Blat
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic