Create a Service in Windows
March 8th, 2009 Posted in Microsoft, Server 2008There are only a few things I hate more than SPAM. Only a few.
Anyway, I’ve been migrating to my new server and with that comes email. And, of course, with email comes SPAM filtering. So, I’ve been trying to run SpamAssassin. Luckily, someone ported SA to Windows. But, in this case, you have to run the executable or the filtering doesn’t happen.
Now, any self-respecting admin won’t stay logged into his server 24 hours a day, seven days a week. That’s where services come in. Here’s a nice little (easy) write up for creating your own service in Windows. Best of all, it was written by Microsoft.
A note: this article says it’s for 2003 and below (and does mention anything about 64-bit). I’ve just finished installing spamd.exe as a service on my machine and it works fine. That said, I offer no warranties or gaurantees this will work for everyone. Alternatively, there is this from Microsoft’s K nowledgebase – I just didn’t have access to the resource kit at the time. Happy spamming.