Re: Slow Access to SMTP is Causing Slow mail()
| From: | Miguel Cruz | Date: | Fri, 31 May 2002 02:33:58 +0000 |
| Subject: | Re: Slow Access to SMTP is Causing Slow mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100038@lists.php.net to get a copy of this message | ||
On Thu, 30 May 2002, Bruce Vander Werf wrote:
> My calls to mail() take a very long time to resolve, so I did a little
> investigating. If I try to Telnet to port 25, it takes about 30 seconds for
> the SMTP server to respond. Telnet to port 23 on the same address resolves
> immediately, as does normal web access (using the same address so I don't
> believe DNS is the culprit. Besides, mail() is slow, and that is accessing
> the SMTP server locally. What would be taking SMTP so long to respond? Any
> configuration parameters I need to look at?
Check to make sure your machine's IP address has a PTR record. It's
probably trying to look up your machine's name to stick in the Received:
headers, and timing out.
miguel