Announcement

Collapse
No announcement yet.

SpamAssassin for Win32 as a Service

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpamAssassin for Win32 as a Service

    Hi all ,
    I'm trying to install SpamAssassin for Win32 as a Service for integration with hMailServer on win2k3 EE 32bit
    using tools provided by Windows Server 2003 Resource Kit Tools
    with the following tools
    Instsrv.exe: Service Installer & Srvany.exe: Applications as Services Utility
    here's an example

    my steps as follows
    1- command line arguments for spamd.exe as follows
    -l This allows you to use spamc to learn a msg as ham, spam, or to forget what it previously learned.
    -s This sets the log path to spamd.log
    --round-robin Use the old style spawn method
    Code:
    c:\sa\spamd.exe -l -s c:\sa\spamd.log ----round-robin
    Daemonize spamd.exe
    Code:
     
    instsrv.exe Spamd c:\sa\spamd.exe -l -s c:\sa\spamd.log --round-robin srvany.exe
    the above command adds the Spamd to services.msc snapin
    when i show properties of the command binary path it shows only
    Code:
    c:\sa\spamd.exe
    with no arguments
    also it fails to satrt

    so i tried to modify binpath using
    Code:
    sc
    with the following command
    Code:
     
    sc config spamd binpath= " c:\sa\spamd.exe -l -s c:\sa\spamd.log --round-robin"
    successfly i modified the path to binary to be as follows
    Code:
     
    c:\sa\spamd.exe -l -s c:\sa\spamd.log --round-robin
    but it also fails to start
    i tried to modify registery database directly
    but spamd fails to start
    any ideas would be a great assist
    by the way it's an issue with services managment facility not SpamAssassin issue
    because the spamd.exe with command line arguments works vey well
    Code:
    spamd.exe -l -s c:\sa\spamd.log --round-robin
    thanks in advance
    Last edited by [email protected]; 18th July 2009, 20:08.

  • #2
    Re: SpamAssassin for Win32 as a Service

    i've found the sloution
    here
    thanks

    Comment

    Working...
    X