Print Page | Close Window

Socket Error # 10061 Connection refused.

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5537
Printed Date: 10 May 2025 at 1:06am


Topic: Socket Error # 10061 Connection refused.
Posted By: lyndonje
Subject: Socket Error # 10061 Connection refused.
Date Posted: 03 March 2006 at 12:29pm
I'm seeing this error a little in my logs. Im running v.2.7.1.523.

How can I find out more information on this error to make sure there isn't a problem or something I need to fix?

The info I would like to find is which server has refused its connection? And what was the reason/error code?

Also, I've noticed emails in the queue directory. What factors effect whether an email is forward direct to the server specified in the localdomains file, and which are then forward onto the main destination server?

Thanks!
Lyndon.



Replies:
Posted By: LogSat
Date Posted: 03 March 2006 at 4:30pm
lyndonje,

The error appears in your logs when SpamFilter is attempting to forward email to your destination SMTP server, and your SMTP server rejects the connection. The logs for your SMTP server may contain info on why it rejected the connection. If you only have one destination SMTP server, you'll know right away what the server is.
If you have several domains and several destination SMTP servers, the server rejecting the connections may not be simple to find. The version of SpamFilter you're running does not provide in the logs info on what SMTP server it's forwarding emails to. However if you upgrade to version 2.7.1.531 or higher, that info is being logged:

// New to VersionNumber = '2.7.1.531';
{TODO -cNew : Prevented problems if the "Allowed Domains" list mistakenly contained duplicate domains}
{TODO -cNew : Added the destination SMTP server used when logging errors occurring while forwarding emails to dest. SMTP server}


If you do not wish to upgeade, you can find the server in question by looking at the recipient of the email. The email domain will then tell you which server it was sent to. Just look for the previous thread ID (bolded) in the logs:

03/01/06 08:39:11:795 -- (3520) Sending email from MAILER-DAEMON@*domain-deleted*..com to czvpzflzqxeeo@*domain-deleted*.co.uk
03/01/06 08:39:14:030 -- (3520) Socket Error # 10061 Connection refused. - message queued - MAILER-DAEMON@
*domain-deleted*.



The socket error is a Microsoft socket error, and its description is:
Connection refused.
No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.



-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: lyndonje
Date Posted: 06 March 2006 at 5:24am
OK, I've just upgraded so I'll see what happens. Thanks.


Posted By: lyndonje
Date Posted: 06 March 2006 at 11:30am
Hi,

Just to cover a question again:

> Also, I've noticed emails in the queue directory. What factors effect
> whether an email is forward direct to the server specified in the
> localdomains file, and which are then forward onto the main
> destination server?

IE, a message has ended up in the badmail queue. Looks as though a postmaster NDR was generated. The NDR was forward to the main destination server for delivery. How come SF didn't pass the original email onto the main destination server to re-attempt delivery. Is my understanding of this incorrect? Basically I'd like to know under what circumstances SF generates an NDR, sticks in the queue directory to retry later, or lastly forwards to the main destination server for further delivery attempts?

Thanks.



Posted By: LogSat
Date Posted: 06 March 2006 at 4:18pm
SpamFilter will accept "clean" mail and will try to forward it to your destination SMTP.
If your mail server is unreacheable for some reason, SpamFilter will then place the emails in the SpamFilter\queue directory and will retry to deliver them every 60 minutes, indefinetly, until your server comes back online (both of these variables are configurable).
If however your mail server is working, but rejects the email for some reason (i.e. mailbox full, user does not exist, etc.), then SpamFilter (as it has already accepted the message for delivery) will then have to send a NDR email back to the sender. To do that, it will forward the NDR for delivery to your SMTP server. SpamFilter will never email back a sender directly, but will forward all emails, including NDRs, to your mail server. There is an option in the SpamFilter.ini file to specify an alternate server to handle the NDRs if you wish:

;An alternate server for sending NDR (non-delivery) notification emails can be used. Leave the "NotificationSMTPServer" value blank to use the default destination SMTP server
NotificationSMTPServer=
NotificationSMTPServerPort=25





-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP



Print Page | Close Window