Note that I used a similar service configuration to run ClamAV as a daemon on the same server and that works great too. Once the SpamD service starts with proper content in the log file you're done! If it's not you may need to adjust the paths in the AppParameters value to reflect the proper paths on your system. Note that the service will start without an error even if there's an error in the AppParameters value so make sure to check the C:\Program Files (x86)\JAM Software\SpamAssassin for Windows\spamd.log log file to make sure SpamD is actually working. Once that's done you're good to start the service. Enter " C:\Program Files (x86)\JAM Software\SpamAssassin for Windows\spamd.exe" as a string value for "Application" (including the " as part of the value).Ĭreate another string value called " AppParameters" and enter the following as a string value: (without the but with the ").Ĭreate another string value named " AppDirectory" and enter " C:\Program Files (x86)\JAM Software\SpamAssassin for Windows\" as the value (without "). Under "Parameters" create a string valued called " Application".
Next, open regedit with administrator privileges and navigate to the key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spamd\Ĭreate a sub-key under " Spamd" called "Parameters". Then, from a command prompt with Administrator privileges, run the following command: sc create Spamd binPath= C:\Windows\System32\srvany.exe DisplayName= "SpamAssassin Daemon"
It's not supported on 2012R2 but it works just fine for this purpose.įirst get srvany.exe from the Windows Server 2003 resource kit and make sure it's installed in c:\windows\system32 (I'll use all default paths in this tutorial, modify as needed). csv file that tries to exec cmd.exe detected body OLEMACRODOWNLOADEXE. I successfully got Spamd.exe to run as a service on Windows Server 2012R2 using srvany.exe. Mail::SpamAssassin::Plugin::OLEVBMacro - search attached documents for evidence. The freeware contains, beside several modules, the following SpamAssassin components as executable files for Windows (.exe): - spamassassin.exe (mail filter) - spamd.exe (daemonized version of SpamAssassin) - WinSpamC.exe (client for spamd) - sa-update.exe (SpamAssassin rule updates) - sa-learn. But it's too old and not compatible with Windows Server 2012 or 圆4 executables (That's what I read in the forums).Ĭan someone tell me why I am getting that 1053 error on the service start, or at least a way to have spamd.exe run as a service in windows server 2012 environment? I know that spamd.exe is capable of running as a Windows Service with an old utility of Microsoft's, SrvAny. There is nearly no topics about sc.exe running spamd.exe file as a service, so I decided to ask that in here. When I right click on it and select "START" I am getting an error like "Error 1053: The service did not respond to the start or control request in a timely fashion." I can now see "Spam Assassin" in the Services. I tried sc create spamassassin binPath="C:\Program Files (x86)\JAM Software\SpamAssassin for Windows\spamd.exe" DisplayName="Spam Assassin" start=auto
I am trying to run spamd.exe file which runs the spamassassin for windows, as a windows service.