Jump to content

Recommended Posts

Hi all. 
I’m trying to configure VirusEvent in the clamd.conf file to send an email when a virus is found. I’ve created a .ps1 file with all the correct information and entered it in the conf file:

VirusEvent “path to file” “Virus Alert: %v”
But I’m getting nothing. If I run the file manually through cmd or PowerShell, I get the email, but if I click the file, it just opens up powershell, showing my settings. Is there something I’m missing?

I will add that I can’t create the script without including a subject, but I want the subject outside of the script. And I didn’t put the email address after the path and before the subject as it’s in the script. I tried adding it, but still nothing. 

Can anyone give advice on how to get this to work?


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...