|Dan Langille||Aug 22, 2002 10:42 am|
|Dan Nelson||Aug 22, 2002 11:47 am|
|Michael Scheidell||Aug 22, 2002 3:27 pm|
|Terry Lambert||Aug 22, 2002 5:34 pm|
|Dan Langille||Aug 22, 2002 9:03 pm|
|Terry Lambert||Aug 22, 2002 10:29 pm|
|Dan Langille||Aug 28, 2002 9:57 am|
|Jim Brown||Aug 28, 2002 10:48 am|
|Terry Lambert||Aug 28, 2002 4:42 pm|
|Dan Langille||Aug 29, 2002 5:39 am|
|Gregory Neil Shapiro||Aug 29, 2002 10:31 am|
|Dan Langille||Aug 29, 2002 10:39 am|
|Gregory Neil Shapiro||Aug 29, 2002 10:57 am|
|Dan Langille||Aug 29, 2002 11:18 am|
|Gregory Neil Shapiro||Aug 29, 2002 11:26 am|
|Dan Langille||Aug 29, 2002 11:33 am|
|Gregory Neil Shapiro||Aug 29, 2002 11:50 am|
|Dan Langille||Aug 29, 2002 11:56 am|
|Terry Lambert||Aug 29, 2002 12:52 pm|
|David O'Brien||Sep 1, 2002 5:25 pm|
|Eric Parusel||Sep 1, 2002 10:59 pm|
|Gregory Neil Shapiro||Sep 2, 2002 4:22 pm|
|Subject:||Re: why does this sendmail connection take so long?|
|From:||Jim Brown (jp...@sixshooter.v6.thrupoint.net)|
|Date:||Aug 28, 2002 10:48:28 am|
* Dan Langille <da...@langille.org> [2002-08-28 13:01]:
On 22 Aug 2002 at 18:28, Michael Scheidell wrote:
----- Original Message ----- From: ""Dan Langille"" <da...@langille.org> Newsgroups: local.freebsd.hackers Sent: Thursday, August 22, 2002 1:41 PM Subject: why does this sendmail connection take so long?
I'd normally attribute this problem to DNS, but I can't track down what DNS problem is occuring. Note the lag between the first event and the next. Any suggestions?
might be identd (port 113)
After some testing, I'm inclined to think it's not ident. The network in question is behind a firewall which is doing NAT. Two boxes do not exibit the problem. Two do. All are FreeBSD 4.6-stable created from same source snapshot.
I've tested this from several boxes behind my firewall each time emailing to a box outside the firewall. The test was:
echo 'hi there' | mail da...@m20.example.org
The two boxes which exibit the probem are the DNS server and the firewall. Mail sent from those boxes exhibit identical delays, namely a 75 second lag between the first and second event (see below for an example; note that I've changed the real domain to example.org). I'm not sure whether this indicates a problem on the sending or receiving end. I suspect sending. But what the problem is I'm not sure yet.
I've been running "tcpdump -i lo0 port 53" to see if I could find anything suspect in there, but I didn't. BTW, what would I be looking for if the above delay is caused by DNS?
I don't think you can see 127.0.0.0 traffic this way, BICBW. In general you should see less than a 2 second reply to any DNS query if everything is configured correctly. Most replys are less than .5 seconds even on a fairly busy network.
Aug 28 12:07:24 xeon sendmail: g7SG7O7G066323: from=dan, size=37, class=0, nrcpts=1, msgid=<2002...@xeon.example.org>, relay=dan@localhost
Aug 28 12:08:40 xeon sendmail: g7SG7O7G066323: to=da...@m20.example.org, ctladdr=dan (1000/1000), delay=00:01:16, xdelay=00:01:16, mailer=relay, pri=30028, relay=localhost.example.org. [127.0.0.1], dsn=2.0.0, stat=Sent (g7SG8dvj066507 Message accepted for delivery)
Aug 28 12:08:42 xeon sm-mta: g7SG8dvj066507: to=<da...@m20.example.org>, ctladdr=<da...@xeon.example.org> (1000/1000), delay=00:00:03, xdelay=00:00:02, mailer=esmtp, pri=30342, relay=m20.example.org. [220.127.116.11], dsn=2.0.0, stat=Sent (Ok: queued as 169F57A11)
OK, I'm going to try to analyze this *without* my Sendmail tome handy (it's on another continent)...
Looks like you've got sendmail on the local machine to first relay to host localhost.example.org probably in /etc/mail/sendmail.cf.
I'd suggest just setting your relayhost to the firewall machine. (And set the firewall relayhost to nothing- let him do final transfer.) No- I don't remember quirky sendmail variable- web over to sendmail.org or read the config file notes.
Another test you should try is to just simulate the mail exchange via telnet. Run through the protocol (helo, mail from:, rcpt to:, data) and see performance. Also check how long it takes to close the tcp connection. I think that is also tunable via sendmail.cf
Getting the split mail setup working correctly is tricky, but there are some examples in the big Sendmail book.
Probably should move this to -questions...
Hope this helps, jpb ===
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message