Return to KnowledgeBase Search Page

 

IMail - Error: Stack Connect Fail or, MX Connect Fail

Product: Version: Platform:
IMail 5.0+ NT

Question/Problem: In log files I have encountered the following error message: "stack connect fail". Can you tell me what this error means and tell me why it happens?

Answer/Solution: If you have two NIC cards (or if you use any internal-only IP addresses) it may be that IMail is trying to send external mail out on an internal address. If that is the case, you will get "MX Connect Fail" errors. (The internal NIC cannot connect to external IP addresses.)

To correct the problem go into the registry to the
HKEY_LOCAL_MACHINE\SOFTWARE\Ipswitch\IMail\Domains
key and change references to the internal IP address to the external IP address. (Stop and restart the SMTP service after a change.)

It may also help to set BindToIP as described in:
http://support.ipswitch.com/kb/IM-19990204-ES01.htm

If that is not the cause, then there is likely to be some problem with DNS.

If you have "stack connect fail" messages then IMail was not able to connect to any of the MX records (you probably see the "MX Connect Fail" error messages also), so it went on to connect to the A record for the domain and that also failed.

Below is the process that IMail uses to find the destination host and IP address for mail delivery. Errors at different points will generate different error messages.

The sequence that IMail uses to resolve/deliver mail is:
a. check for the host in IMail registry
b. check for the host alias in IMail registry
c. check for the host in "WINNT\...\etc\hosts"
d. perform an MX lookup for the host on the DNS server defined in Control Panel -> IMail -> SMTP -> Domain name server
e. perform an A lookup (for the MX record above) on the DNS server defined in Control Panel -> IMail -> SMTP -> Domain name server
e1. if a CNAME came back on e., then goes back to d. with the new response
f. asks the NT network stack for an A lookup of the domain name
g. prints "stack connect fail" on name

The routine above returns at any point in the sequence if a correct answer is found.

Document #: Revision Date:
IM-19981110-DD02 02/04/00

Return To ----- Original Message -----

Sent: Monday, April 03, 2000 8:32 AM
Subject: Re: [IMail Forum] Setting up for an SMTP Gateway

I did search the knoledge base and nothing worthwhile.
-----Original Message-----
From: Quentin Baker <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 31, 2000 6:21 PM
Subject: Re: [IMail Forum] Setting up for an SMTP Gateway

What are your current settings for the SMTP Tab and SMTP Security Tab?
Also if you go to Ipswitch home page, Knowledge Base and do a search on MX connect you'll find a topic related to your problem.
----- Original Message -----
Sent: Friday, March 31, 2000 4:30 PM
Subject: Re: [IMail Forum] Setting up for an SMTP Gateway

Well since I am using the gateway SMTP server to send these emails I think I can eliminate that as the problem, but to be sure I did telnet in, and yes I can.
-----Original Message-----
From: R. Scott Perry <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 31, 2000 4:20 PM
Subject: RE: [IMail Forum] Setting up for an SMTP Gateway

I thought of that one already, Yes I am connected to the internet. Thanks for the suggestion tho.
If I were you, I would try to telnet to the gateway machine on port 25.  See if you can connect to it through telnet.  If you can't, you'll be able to eliminate IMail as the problem.  Then you could check to see if you can get to other sites, or if there is just a problem getting to that site.
                                            -Scott

kbheader.gif

Reply via email to