1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

hMailServer Spam Filter / Anti-Virus Settings

Discussion in 'Plesk for Windows - 8.x and Older' started by Patiek, Oct 2, 2006.

  1. Patiek

    Patiek Guest

    Could someone tell me what the "external virusscanner" settings are supposed to be for the hMailServer?

    The specific configuration I am referring to is in the hMailServer Administration panel under Settings > Protocol > SMTP > Antivirus > External Virusscanner tab .

    Specifically, I need to know what the entire string for the executable path should be set to to have Plesk's hmailfilter.exe scan emails as well as what the return value for the hmailfilter.exe should be set to.

    I cannot find any information regarding this in any of Plesk's documentation or knowledge database.
  2. Patiek

    Patiek Guest

    Bump, surely someone has hmailserver installed and can answer this question.
  3. Patiek

    Patiek Guest

    bump, again. Plesk has the worst forum of any control panel software creator that I have ever seen.
  4. ewtech

    ewtech Guest

  5. ewtech

    ewtech Guest

  6. Patiek

    Patiek Guest

    Hooray for spam bots!

    For anyone that is interested, we ended up manually installing clamwin and then using the spamassassin that Plesk already had installed.

    Thus, we setup hmailserver to use the internal / auto-detect AV (since it natively supports clamwin). Then we used hmailserver's scripts feature to plugin a vbscript that can hook onto the OnDeliverMessage() event (similar to below which is taken from http://www.hmailserver.com/forum/viewtopic.php?p=22643#22643 ):
       fname = oMessage.filename
       Dim infile, testfile, sh
       Dim fso
       Set fso = createobject("Scripting.FileSystemObject")
       If Not fso.fileexists(fname) then
          result.Value = 0
          Exit sub
       End If
       infile = fso.getabsolutepathname(fname)
       testfile = infile & ".tmp"
       fso.CopyFile infile, testfile
       Set sh = CreateObject("WScript.Shell")
       Dim cmd, rc
       cmd = "cmd /c perl -S -T -w spamassassin < """ & testfile & """ > """ & infile & """"
       rc = sh.Run( cmd , 0 , TRUE)
       result.Value = 0
       fso.Deletefile testfile
       Set fso = Nothing 
  7. corpwebhost

    corpwebhost Guest


    Can anyone tell me if this works and if webmail users can manage their own spam filtering?
  8. benc@

    benc@ Guest

    Please can anyone help on this? I would like to know what return code I should be checking for for hmailfilter.exe?