Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - Socket Error # 10061 Connection refused.
  FAQ FAQ  Forum Search   Register Register  Login Login

Socket Error # 10061 Connection refused.

 Post Reply Post Reply
Author
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post Topic: Socket Error # 10061 Connection refused.
    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.
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post 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.



Edited by LogSat
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2006 at 5:24am
OK, I've just upgraded so I'll see what happens. Thanks.
Back to Top
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post 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

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.105 seconds.