From: Doug Monroe <doug@planetconnect.com>
To: Nathan Cassano <nathan@cjhunter.com>
Cc: netfilter@lists.samba.org
Subject: Re: TCP delay, SMTP errors
Date: Mon, 10 Jun 2002 18:35:00 -0400 [thread overview]
Message-ID: <3D052994.CD0F1237@planetconnect.com> (raw)
In-Reply-To: 001601c210bf$d1a5fef0$2901a8c0@amos
Nathan Cassano wrote:
>
> Hi folks,
> Our website (on an internal NAT'ed network) connects our email
> server (on an external network). The website uses a SMTP PHP class to
> send mail using socket connections. The problem is a delay in connecting
> to the mail server that causes the class to quit prematurely. I fixed
> the problem by adding a function call to sleep(1) after fsockopen() but
> this is a hack. Is there a better way to fix this TCP delay? I tried
> setting the TOS value to Minimize-Delay but I didn't see any difference.
> Any suggestions are welcome.
what happens when you use telnet from the website box to the mail server's
port 25? do you get a delay rec'ving the SMTP banner? Likely has nothing to do
with netfilter...my money's on a paranoid SMTP trying to do a reverse DNS
lookup (or identd?) causing the delay. Maybe there's no PTR record for the NAT
(public) IP of the website? Maybe your SMTP server has a big-ish list of DNS
hosts to try before it finally timesout?
--
Doug
next prev parent reply other threads:[~2002-06-10 22:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-10 20:45 TCP delay, SMTP errors Nathan Cassano
2002-06-10 22:18 ` Ramin Alidousti
2002-06-10 22:35 ` Doug Monroe [this message]
2002-06-11 10:41 ` Simon A. Boggis
2002-06-11 15:54 ` Nathan Cassano
2002-06-11 17:34 ` Ramin Alidousti
2002-06-11 22:00 ` TCP delay Nathan Cassano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D052994.CD0F1237@planetconnect.com \
--to=doug@planetconnect.com \
--cc=nathan@cjhunter.com \
--cc=netfilter@lists.samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.