GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

SpamAssassin for Win32 as a Service

Home Forums Scripting General Scripting SpamAssassin for Win32 as a Service

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #143212

    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
    c:saspamd.exe -l -s c:saspamd.log —-round-robin
    [/CODE]
    Daemonize spamd.exe
    [CODE]
    instsrv.exe Spamd c:saspamd.exe -l -s c:saspamd.log –round-robin srvany.exe[/CODE]

    the above command adds the Spamd to services.msc snapin
    when i show properties of the command binary path it shows only [CODE]c:saspamd.exe [/CODE] with no arguments
    also it fails to satrt

    so i tried to modify binpath using [CODE]sc [/CODE]
    with the following command
    [CODE]
    sc config spamd binpath= ” c:saspamd.exe -l -s c:saspamd.log –round-robin”
    [/CODE]
    successfly i modified the path to binary to be as follows
    [CODE]
    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]c:saspamd.exe -l -s c:saspamd.log —-round-robin
    [/CODE]
    Daemonize spamd.exe

    instsrv.exe Spamd c:saspamd.exe -l -s c:saspamd.log –round-robin srvany.exe[/CODE]

    the above command adds the Spamd to services.msc snapin
    when i show properties of the command binary path it shows only [CODE]c:saspamd.exe [/CODE] with no arguments
    also it fails to satrt

    so i tried to modify binpath using [CODE]sc [/CODE]
    with the following command
    [CODE]
    sc config spamd binpath= ” c:saspamd.exe -l -s c:saspamd.log –round-robin”
    [/CODE]
    successfly i modified the path to binary to be as follows
    [CODE]
    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]
    instsrv.exe Spamd c:saspamd.exe -l -s c:saspamd.log –round-robin srvany.exe[/CODE]

    the above command adds the Spamd to services.msc snapin
    when i show properties of the command binary path it shows only c:saspamd.exe [/CODE] with no arguments
    also it fails to satrt

    so i tried to modify binpath using [CODE]sc [/CODE]
    with the following command
    [CODE]
    sc config spamd binpath= ” c:saspamd.exe -l -s c:saspamd.log –round-robin”
    [/CODE]
    successfly i modified the path to binary to be as follows
    [CODE]
    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]c:saspamd.exe [/CODE] with no arguments
    also it fails to satrt

    so i tried to modify binpath using sc [/CODE]
    with the following command
    [CODE]
    sc config spamd binpath= ” c:saspamd.exe -l -s c:saspamd.log –round-robin”
    [/CODE]
    successfly i modified the path to binary to be as follows
    [CODE]
    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]sc [/CODE]
    with the following command

    sc config spamd binpath= ” c:saspamd.exe -l -s c:saspamd.log –round-robin”
    [/CODE]
    successfly i modified the path to binary to be as follows
    [CODE]
    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]
    sc config spamd binpath= ” c:saspamd.exe -l -s c:saspamd.log –round-robin”
    [/CODE]
    successfly i modified the path to binary to be as follows

    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]
    c:saspamd.exe -l -s c:saspamd.log –round-robin
    [/CODE]

    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
    spamd.exe -l -s c:saspamd.log –round-robin [/CODE]
    thanks in advance[CODE]spamd.exe -l -s c:saspamd.log –round-robin [/CODE]
    thanks in advance

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.