From owner-freebsd-questions Thu Dec 6 1:35:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kekaha.atkinshome.com (dsl081-064-107.sfo1.dsl.speakeasy.net [64.81.64.107]) by hub.freebsd.org (Postfix) with ESMTP id DA9A637B416 for ; Thu, 6 Dec 2001 01:35:49 -0800 (PST) Received: from paris (dsl081-064-023.sfo1.dsl.speakeasy.net [64.81.64.23]) by kekaha.atkinshome.com (8.9.3/8.9.3) with SMTP id CAA23511; Thu, 6 Dec 2001 02:38:02 -0800 From: "Dave Atkins" To: "'Anthony Kim'" Cc: Subject: RE: sendmail times out connecting to local mailserver (for relay now) Date: Thu, 6 Dec 2001 01:39:38 -0800 Message-ID: <001201c17e39$ec83f0b0$6700a8c0@atkinshome.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20011206034057.GB3737@boethius.telocity.com> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I succeeded in getting the crmail (192.168.1.244) server in the data center to relay email sent from my test server (192.168.5.107) in the office. I did this by: 1) putting hosts file entries on both servers so they could find each other forward and reverse 2) enable relaying on crmail from local addresses 3) specified DS crmail.crdc.consumerreview.org in sendmail.cf 4) restarting sendmail I followed this configuration on my data center machine (192.168.1.33) and it did not work. I get an *immediate* timeout from sendmail when I try to send. So, I made the test server a relay also, added the data center machine in as an allowed relay host and I am able to use the test server as an intermediate relay. So, an email goes from one server, through a router and T1 back to the office, to another server, then back up through the T1 to the same router, to the mail server which is plugged into the same switch as the original sending server. Does this make any sense at all??? The instantaneous timeout seems to me to indicate that the connection is being reset or something (but it is not being "denied"--the mail server does not log any activity). But these two servers are on the same subnet--I don't see how the PIX or Alteon could have any effect. And DNS is not an issue now...once the mail gets relayed, it gets handled fine...but I just can get it to do the simple hop from one server to the one on the rack below it. Here are some traceroutes to illustrate the network... marketplace(crdc)# traceroute crmail.crdc.consumerreview.org traceroute to crmail.crdc.consumerreview.org (192.168.1.244), 64 hops max, 40 by te packets 1 crmail (192.168.1.244) 0.950 ms 0.163 ms 0.160 ms marketplace# and back... C:\Documents and Settings\Administrator.CRDC>tracert marketplace.crdc.consumerreview.org Tracing route to marketplace.crdc.consumerreview.org [192.168.1.33] over a maximum of 30 hops: 1 <10 ms <10 ms <10 ms marketplace.crdc.consumerreview.com [192.168.1.33] marketplace(crdc)# traceroute marketplace.crhq.consumerreview.org traceroute to marketplace.crhq.consumerreview.org (192.168.5.107), 64 hops max, 40 byte packets 1 192.168.1.2 (192.168.1.2) 3.141 ms 0.488 ms 0.485 ms 2 192.168.1.4 (192.168.1.4) 0.778 ms 0.788 ms 0.801 ms 3 192.168.3.2 (192.168.3.2) 3.910 ms 3.870 ms 3.867 ms 4 192.168.4.3 (192.168.4.3) 6.796 ms 6.456 ms 7.183 ms 5 192.168.5.107 (192.168.5.107) 6.613 ms 4.703 ms 7.188 ms marketplace# marketplace(crhq)# traceroute crmail.crdc.consumerreview.org traceroute to crmail.crdc.consumerreview.org (192.168.1.244), 64 hops max, 40 by te packets 1 192.168.5.1 (192.168.5.1) 0.824 ms 0.747 ms 0.663 ms 2 192.168.4.1 (192.168.4.1) 1.813 ms 1.907 ms 3.599 ms 3 192.168.3.1 (192.168.3.1) 7.204 ms 4.761 ms 7.245 ms 4 crmail.crdc.consumerreview.org (192.168.1.244) 3.557 ms 7.075 ms 3.602 ms marketplace# -----Original Message----- From: Anthony Kim [mailto:niceshorts@yahoo.com] Sent: Wednesday, December 05, 2001 7:41 PM To: Dave Atkins Cc: freebsd-questions@freebsd.org Subject: Re: sendmail times out connecting to local mailserver On Wed, Dec 05, 2001, Dave Atkins wrote: > I have a freeBSD box in our datacenter with a bunch of Windows > servers. When I attempt to send an email, it times out when > attempting to deliver to our local mailserver. If I attempt to > send to an address outside our network, it works...but very > slowly. There is a 10-15 second delay before the message is > accepted for delivery. In the case of our local mailserver, it > just times out. > Dave, I believe you may be suffering from 2 separate problems. Sendmail delays are often caused by a firewall (you have a PIX right?) dropping ident requests, which sendmail likes to do. Configure your firewall to respond to TCP/113 SYNs with RST, to see if this improves your mail speed. Secondly, internally, you're better off splitting DNS - separating public from private. That way, you could safely set up an MX record in your private DNS name space pointing to your private IP 192.168.x.x instead of mail routing out to your public, published address. If you don't want to do that, you may have to set up each of your internal mail servers to use feature(mailertable) in order to disregard DNS for specified domains. In postfix, this feature uses the "transport" table. In qmail, it is called "smtproutes". HTH, -- "Le motd juste." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message