Install SpamAssassin on Windows Server and configure it as a Service

Source: Internet
Author: User
Tags spamassassin
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.