I'm running Windows server 2008, 32-bit. All the latest fixpacks are installed.

I used SC exactly like it said:

SC create spamd binPath=c:\spamassassin\spamd.exe

It came back and said service installed successfully. I bring up the services window, and it is listed as expected. I selected it and tried to start it, and got an immediate error.

I had already seen the Lemke article. I actually installed the JAM version of SpamAssassin. They make a point about include spamd. But as usual, give no information on how to use it in a production server environment. I sent them a question as well.

Are you saying that no one has EVER run spamd as a windows service, and it is impossible to do so short of buying some 3rd party software?? I assume that if no one has ever installed it as a service, no one is using spamassassin in server mode (i.e. from JAMES) on windows. That is pretty amazing considering the popularity of both james and spamassassin.

If there are indeed users of both on Windows, and if running as a service without additional expense is not possible, how are they doing it?

I just want to know how everyone else is doing this on windows with the JAMES mail server, unless I'm the very first person to try it (???)


On 8/17/2010 4:54 PM, Ted Mittelstaedt wrote:


On 8/17/2010 2:23 PM, René Berber wrote:
Jerry M wrote:

Ted,

I used SC.exe and it installed spamd successfully as a service (at least
that's what sc told me).  But when I try to start it, I get "Error 1053
The service did not respond to the start or control request in a timely
fashion".  The microsoft help on that message is completely useless.

smapd is NOT a Windows service, you can't install it just like that.


Rene, the instsrv.exe and srvany.exe programs were written by
Microsoft to allow non-service, command-line daemon programs to
be run as services.  The sc.exe program replaced instsrv.exe
for newer Windows versions.

srvany.exe is a wrapper that responds to service commands and
runs the command-line program just like the user runs it at the
command line.  Microsoft distributed it through the ResKit because
it is a limited program, for example it does not handle GUI output from the program, etc. and Microsoft didn't want to support it with 100% of
the programs out there.  Generally the stuff MS distributes through
the ResKit are programs that work "most of the time" and perform
some wildly useful task in a specific circumstance.

So yes, you CAN install programs as services "just like that" and
a lot of people have done it with many different programs that are
not services.

I believe with 64-bit windows one other caveat with srvany is if
the thing you are trying to start with srvany.exe is in the real 64 bit
windows\system32 folder, you need to type that in as windows\Sysnative
(Vista only) or to move it somewhere else (XP/2003).

I'm NOT guaranteeing spamd is going to run on all Windows systems
with srvany.  I am just answering the original posters request on
the "by the book" way of running a program as a service.

If sc and srvany.exe don't work then you can use

http://www.coretechnologies.com/products/AlwaysUp/srvany.html

or

http://iain.cx/src/nssm/

Both are commercial and cost money but handle a much larger variety
of software than sc & srvany

Have you seen Daniel Lemke's announcement on this list?
http://article.gmane.org/gmane.mail.spam.spamassassin.general/128839

Perhaps the HOWTO referred on that article (I haven't read it) is of
some help.

The OP may be running that version of spamd already, he didn't say.

Ted

Reply via email to