Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - Could not bind socket
  FAQ FAQ  Forum Search   Register Register  Login Login

Could not bind socket

 Post Reply Post Reply
Author
MBorik View Drop Down
Newbie
Newbie
Avatar

Joined: 15 May 2009
Location: Denmark
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote MBorik Quote  Post ReplyReply Direct Link To This Post Topic: Could not bind socket
    Posted: 19 May 2009 at 6:29am

We have problem with Spam Filter ISP 3.5.4.692.  

It runs on Windows Server 2003 with SP2 + 1001 Hot fixes *LOL*

Suddenly the Activity Log Window displays a message:  "Exception occurred during PerformPostStartupTasks: Could not bind socket. Address and port are already in use."

This was also frequently causing problems on the "old" server running Windows Server 2000.  We have simply migrated the SF 3.5.4.692 to a newly installed server with better disk system, CPU and memory.  

 

Then the server stops transferring mail.

 

Is this a known problem with version 3.5.4.692 ?  

Or is it a hardware or configuration problem?
 
Hope this from the Activity Log can help diagnosing the problem:
 

05-19-09 12:29:05:812 -- SpamFilter ISP v3.5.4.692 Listening on 217.157.17.163:25,

05-19-09 12:29:05:812 -- (2284) Detected differences in file timestamps - forcing DB export

05-19-09 12:29:05:812 -- (2284) Found new domain in tbl_LocalDomains: SFI. Creating new FilterObject

05-19-09 12:29:05:875 -- (2284) Reloading filter.ini: domains\SFI\Filters.ini

05-19-09 12:29:05:890 -- (2284) Reloading file for tblWL_Keywords: C:\Program Files\SpamFilter\Datafiles\Keywords.txt

05-19-09 12:29:05:890 -- (2284) Reloading file for tblWL_EmailsTO: C:\Program Files\SpamFilter\Datafiles\unfilteredEmails.txt

05-19-09 12:29:05:890 -- (2284) Reloading file for tbl_LocalDomains: AllowedDomains.txt

05-19-09 12:29:05:890 -- (2284) Reloading file for tblWL_EmailsFrom: C:\Program Files\SpamFilter\Datafiles\excludedFromEmails.txt

05-19-09 12:29:05:890 -- (2284) Reloading file for tblWL_DomainsIPs: C:\Program Files\SpamFilter\Datafiles\excludedDomains.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblBL_EmailsFrom: BlockedEmail.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblWL_AutoWhiteListForceDelivery: AutoWhiteListForceDelivery.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblBL_EmailsTO: BlockedToEmail.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblBL_MAPS: domains\SFI\BL_MAPS.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblBL_Countries: domains\SFI\BL_Countries.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblBL_SURBL: domains\SFI\BL_SURBL.txt

05-19-09 12:29:05:906 -- (2284) Reloading file for tblBL_HoneypotBlockedIPs: HoneypotBlockedIPs.txt

05-19-09 12:29:05:921 -- (2284) Reloading file for tbl_SFIFiltermatrix: AllowedDomainFilterMatrix.txt

05-19-09 12:29:05:937 -- Reloading local black / white lists: C:\PROGRA~1\SPAMFI~1\ccTLDs.txt

05-19-09 12:29:07:046 -- (2356) SpamFilterForm - Begin loading corpus.db

05-19-09 12:29:07:046 -- (2284) BayesianThread starting

05-19-09 12:29:07:046 -- (2284) TBayesianThread - Begin LoadFromFile for corpus.db (db.dat)

05-19-09 12:29:07:437 -- (2284) TBayesianThread - LoadFromFile for Corpus.db - copied db.dat.prb -> Ind14.tmp

05-19-09 12:29:07:437 -- (2284) TBayesianThread - LoadFromFile for Corpus.db - copied db.dat -> Ind13.tmp

05-19-09 12:29:07:546 -- (2284) TBayesianThread - corpus.db copy of files not exist - exiting

05-19-09 12:29:07:640 -- (2284) TBayesianThread - End LoadFromFile for corpus.db (db.dat) (94)

05-19-09 12:29:07:640 -- (2284) SpamFilterForm - corpus.db cannot be loaded, waiting 60 seconds

05-19-09 12:29:07:656 -- Listener Started

05-19-09 12:29:07:656 -- Exception occurred during PerformPostStartupTasks: Could not bind socket. Address and port are already in use.

05-19-09 12:29:07:671 -- (2356) TSpamFilterForm - Begin LoadFromFile for corpus.db (db.dat)

05-19-09 12:29:07:687 -- (1916) Starting to process queue directory...

05-19-09 12:29:07:687 -- (2292) Running TTerminateIdleThreads SSL - SFTC=0 - SFFC=0

05-19-09 12:29:07:734 -- (2292) Running TTerminateIdleThreads - SFTC=0 - SFFC=0

05-19-09 12:29:07:875 -- (1792) Blacklist cache - starting cleanup

05-19-09 12:29:07:953 -- (2356) TSpamFilterForm - LoadFromFile for Corpus.db - copied db.dat.prb -> Ind16.tmp

05-19-09 12:29:07:984 -- (2356) TSpamFilterForm - LoadFromFile for Corpus.db - copied db.dat -> Ind15.tmp

05-19-09 12:29:08:093 -- (2356) TSpamFilterForm - corpus.db copy of files not exist - exiting

05-19-09 12:29:08:093 -- (304) Exception occurred during TDeleteExpiredQuarantineThread.Execute: Invalid argument -- UPDATE tblQuarantine SET Expire = 1 WHERE MsgDate <= :MsgDate AND ( (ServerID = 1) OR (ServerID = 0) OR (ServerID IS NULL) );

05-19-09 12:29:08:281 -- (2356) SpamFilterForm - corpus.db cannot be loaded, waiting 60 seconds

05-19-09 12:29:08:281 -- (2356) TSpamFilterForm - End LoadFromFile for corpus.db (db.dat) (219)

Kind Regards

Mads Borik
System Administrator
MBorik
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4065
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2009 at 8:46am
MBorik,

The error indicates that SpamFilter is not able to listen for traffic on port 25 (the SMTP port), as another application is already using that port. This will indeed cause problems, as SpamFilter will not be able to receive emails properly. A common cause of this is running SpamFilter’s service, and then also opening another instance of the “Standalone” SpamFilter application. If you are running two instances of SpamFilter, both installed in the same directory, this is boud to cause issues with file-sharing problems.

I’m including a section of our manual below, which explains how SpamFilter can be executed.

=========================
SpamFilter Service / Console Application

SpamFilter can run in two different ways.
•    As a Windows service (the most common - SpamFilterSvc.exe).
•    As a standalone application using SpamFilter.exe. This is mostly used for troubleshooting and testing purposes.

If SpamFilter is already running as a service, subsequently running the standalone application (SpamFilter.exe) will open a new instance of SpamFilter, it will not be the GUI for the service. This will most likely create a conflict, as two applications cannot bind to the same port on a server.

Please note that the SpamFilter service does show display a GUI (launched from an icon in the tray bar), but if you are accessing a Windows 2000 server remotely using Terminal Services will not be able to display the GUI. This is because Terminal Services in Windows 2000 is not able to display the server's physical console.

Looking at the physical server's screen, or using a product like PCAnywhere, DameWare, VNC etc that displays the actual screen will reveal the console.

Microsoft fixed this limitation in Windows 2003. In this version of the operating system, Terminal Services allows RDP clients to connect to the server's console.


Some Terminal Services clients have a checkbox in their settings that forces them to connect to the console. In the Remote Desktop client that ships with Windows XP, Microsoft (in)conveniently decided to not make this checkbox available. In this case, to view the server's physical console, you'll need to invoke Remote Desktop from the command line as follows:

mstsc –console

Please note that some newer versions of the Terminal Services client have replaced the “/console” option with a new “/admin” switch. For these versions you will need to use the command mstsc /admin in order to view the server’s console.

Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
MBorik View Drop Down
Newbie
Newbie
Avatar

Joined: 15 May 2009
Location: Denmark
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote MBorik Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2009 at 11:11am
Thanks a lot

It seems stupid to say I was close to get to that conclusion myself.  Now we know how to deal with it. 

 

Is this different In the v4.0.1.786?  

 

I understand now that additional years of software maintenance can be purchased at any time…

I suppose it is necessary to purchase "the time gap" between the end of the 1 year period from the original version and the date of today.  E.g. 2 full years and the we have perhaps half a year remaining of the second year…

 

I'm a bit puzzled about http://www.logsat.com/cart/OrderFormProd.asp

- when I enter 0 in the PRODUCT QUANTITY box, and 2 in the SOFTWARE MAINTENANCE box, the form does not recalculate the ORDER TOTAL - well it does but it shows $600 Clap Did I missed somthing in school?

MBorik
Back to Top
MBorik View Drop Down
Newbie
Newbie
Avatar

Joined: 15 May 2009
Location: Denmark
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote MBorik Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2009 at 1:00pm
I have to re-open this thread.
 
My colleauge have discovered that the SpamFilterSvc.exe seems to drop the network card.  He sat monitoring it last night via RealVNC 4.  Suddenly the Spam Filter stops handling e-mail (visible in the Activity Log window).  Then he disabled the NIC and reenabled it and the Spam Filter kicked back into action again and starts immediatley to show mail traffic.  
 
We use a Compaq Proliant DL380 server with an extra NIC installed.  The extra NIC is a 4 port DLink - probably a DFE-570 (chip is Intel 21143).  We stoped using this and changed over to the chassis NIC (HP NC3163), just to see if the problem was hardware dependent.  But to no avail.  It still drops the connection somehow (midst in handling e-mail traffic).
 
Any surgestions?
MBorik
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4065
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2009 at 6:52pm
MBorik,

You are correct. While the software maintenance can be renewed at anytime, if it has already expired when renewing, the renewal is actually extending the maintenance starting from when the software was purchased. So if you let 10 months pass after the maintenance expired before renewing, the renewal fee will cover those 10 missing months plus an additional 2 to add up an entire 12 months of maintenance.

In regards to the "mathematical malfunction" on the website, that is actually by design. A SpamFilter license *must* be purchased before any additional software maintenance and/or antivirus plugins are purchased. If you try to purchase additional maintenance/antivirus without also purchasing a license for SpamFilter, the website will only allow the $600 fee for the software license to be purchased. Tthere are discrepancies in the description of the product when purchased, but I can assure you that in the 7 years we've been selling SpamFilter we have not had a single case where a user purchased zero licenses of SpamFilter but yet tried to purchase the other products :-)

If users already own a SpamFilter license and wish to renew the maintenance and/or add the antivirus plugin, there are links available for both these options after logging into our website with the order number and email address used during the purchase.

For the NIC issue, SpamFilter by default (if you have not specified a specific IP to bind to in the settings) will bind to all IPs present on all NICs. As long as traffic is being routed from the Operating System to the NIC card(s), SpamFilter will see it and will process it. If you notice SpamFilter stops accepting connections, can you please verify that SMTP traffic is actually being routed to the network card(s) and that it is not being blocked by something else (firewalls, IPSec, etc)?

Edited by LogSat - 19 May 2009 at 7:08pm
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
MBorik View Drop Down
Newbie
Newbie
Avatar

Joined: 15 May 2009
Location: Denmark
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote MBorik Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2009 at 5:30am

Regarding the IP binding:

(xxx.xxx.xxx is our IP network addresses and I'd rather not disclose this here in a open forum)

  • Under Configuration tab se have entered the SMTP listener Socket to IP: xxx.xxx.xxx.163 and Port to 25 
  • Destination Server is set to IP: xxx.xxx.xxx.185 and port to 25

So the second NIC with a 192.168.x.y IP address should not interfere.

Windows Firewall is disabled and no IPSec is configured for any NIC
MBorik
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4065
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2009 at 2:33pm
MBorik,

Next time this happens, can you please try, using the RealVNC connection, to open an MSDOS prompt on the SpamFilter server itself, and issue the command:

telnet xxx.xxx.xxx.163 25

and see if you receive a welcome banner in the MSDOS window (it should contain SpamFIlter's greeting message), and if SpamFilter's activity window shows the connection from your own server?
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.176 seconds.