On Mon, 2002-06-10 at 23:35, Doug Monroe wrote: > Nathan Cassano wrote: > > 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 > > 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?
My first suspicion would be a timing out ident from the mail server. I always send rejects on port 113/tcp (ident) for this reason. Some MTAs absolutely insist on doing an ident (or timing out trying) before they accept your mail. It could be useful to tcpdump at your firewall/router, or on the machine doing the smtp connection (if no border filtering) and see what is going on. Simon -- ---------------------------------------------------------------------- Dr Simon A. Boggis Systems Programmer Department of Computer Science, Tel. 020 7882 7522 Queen Mary, University of London, London E1 4NS UK. ---- GPG public key <http://www.dcs.qmul.ac.uk/~simon/#publickey> ----
signature.asc
Description: This is a digitally signed message part
