SpamAssassin, as a powerful tool to block spam on LinuxVPS, has been widely liked by webmasters. In fact, SpamAssassin can also be installed on Windows servers, and used with hmailserver or other email servers. SpamAssassin for Windows is provided by Jam Software. After the official installation package is installed, you can only run the program manually without being used as a service by other programs. Of course, there is no way to install SpamAssassin. Let's talk about how to install SpamAssassin on a windows Server and register it as a service.
Install SpamAssassin for Windows
Install SpamAssassin:
Download from the official (http://www.jam-software.com/spamassassin/), then install it directly, open the file root directory after installation
In this example, spamd.exe is the required program. You only need to run spamd.
Connection between hMailserver and SpamAssassin
You only need to check and the local port is 783. The default port is good.
After saving the file, you can test it. If you can see the test information, it indicates that spamd is working properly. Otherwise, an error is reported.
Register spamd.exe as a Service
Register the exeprogram as a Service Catalog with instsrv.exeand srvany.exe. These two programs are attacks in Windows Resource Kits and can be searched and downloaded online. Then, enter instsrv.exe and srvany.exe to a directory, for example, D: \ spamd.
Run CMD as Administrator
1. Execute the command D: \ spamd \ instsrv.exe spamd D: \ spamd \ srvany.exe
Open RegEdit and expand the branch:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services
Find the newly added service spamd.
Right-click a new item and name it
Right-click the item and choose Parameters.
Click this item, and then create two new string values on the right side.
The first name is Application, with the value: Application Path, D: \ Program Files (x86) \ JAM Software \ SpamAssassin for Windows \ spamd.exe.
The second name is AppDirectory. The value is the directory where the application is located. D: \ Program Files (x86) \ JAM Software \ SpamAssassin for Windows \
Open the service, find spamd, and change the startup type to automatic. You can set the user of the service and then start the spamd service.
Return to hmailserver and test SpamAssassin. OK.