Print Page | Close Window

How to setup multiple instances of SF as service

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
Printed Date: 15 July 2018 at 5:17pm

Topic: How to setup multiple instances of SF as service
Posted By: BigRedN
Subject: How to setup multiple instances of SF as service
Date Posted: 15 November 2009 at 1:23pm
I have been working on getting iphones to be able to use outgoing SMTP Auth to our SF implementation. I have found (using debug monitor) that  if I have greylisting enabled the iphone is disconnected  and the user is never given the option to authenticate and bypass the greylisting.

Since I want greylisting enabled, it appears that I have to setup a second instance of SF, on the same host,  to just handle SMTP Auth. I have installed the second instance listening on a different port and the users can authenticate & send mail. However what I can not seem to figure out, is how to setup the 2nd instance to run as a service like the primary instance does. Is this possible on the same host? & if so how do I do it.

Ideally, if a user connected and was authenticated they would bypass greylisiting. This would make it so I would not have to setup a second instance. Is it possible to setup this configuration?

Thank you for your help on this,

Posted By: LogSat
Date Posted: 16 November 2009 at 11:03pm

Greylisting occurs before the sender has a chance to send the authentication request, so it not going to be possible to allow SMTP Auth to bypass the greylisting process. If you know the IP ranges used by the iPhone user you can manually exclude subnets from being tested for greylisting, but that may not be a practical solution for all iPhone users.

It is possible to install multiple instances of SpamFilter on the same server. First of all, you'll need a separate SpamFilter directory for each instance of SpamFilter you want to run. 
SpamFilter installs very cleanly, so besides a full install, you could also make a copy of your primary /Program Files/SpamFilter directory and paste it as a separate name, for ex. "/Program Files/SpamFilter2". You will need to modify the new SpamFilter.ini file (and if using SpamFilter ISP "standard" the \SpamFilter\Domains\SFI\Filters.ini file) to adjust the various entries that have pathnames to reflect the new folder for your new installation.
You can then run SpamFilter from that second directory concurrently to your primary SpamFilter in the 1st directory.You only need to make sure that the listening IP:port combination is different between the different instances, as SpamFilter cannot listen on a socket (IP/port combination) that is used by a different application. So you should either manually edit the SpamFilter.ini file to change the listening IP, or run one copy of SpamFilter at a time while you change the settings.

If you wish to install additional SpamFilter services, after following the above steps to copy the SpamFilter directories, you can use the INSTSRV.EXE utility from the NT Resource Kits:

instsrv SpamFilter2 "C:\Program Files\SpamFilter2\SpamFilterSvc.exe"

This creates the new service SpamFIlter2. You will then need to go to edit the Windows registry to modify the startup line:

Go to 
HKLM\SYSTEM\CurrentControlSet\Services\SpamFilter2 and edit the ImagePath key

Add the following startup parameter at the end of it


So the entry will look something like this:

C:\Program Files\SpamFilter2\SpamFilterSvc.exe /startedbyscm:F9D641D8-40E26D57-SpamFilter

You will now have 2 independent SpamFilter services. You can create as many as you wish...

Please let us know if there are any more questions!

Roberto Franceschetti" rel="nofollow - LogSat Software" rel="nofollow - Spam Filter ISP

Posted By: BigRedN
Date Posted: 19 November 2009 at 10:21pm
Hi Roberto,

The instructions worked very well, I have had the service up and running for the last couple of days with no issues and happy users. I also setup the SSL for the user auth and I have to say your SSL instructions really made it straightforward.

Thank you for your help and great documentation!


Print Page | Close Window