Re: Nameserver calls - libesmtp problem?



Hi Brian!

Back again from my trip... and of course the first think I tried was this...

Am 22.06.2001 15:19:26 schrieb(en) Brian Stafford:
> Could you build the example program that comes with libESMTP and
> try sending the test mail in the examples directory to localhost.
> See if that does the DNS query.

Downloaded libesmtp 0.8.2. Built and installed it. Went to examples and built
it. Entered the following (complete log from the console):

[albrecht@regulus examples]$ ./mail-file-so --host=localhost:25 -s URGA -m
test-mail root
S: 220 regulus.localdomain ESMTP Sendmail 8.11.1/8.9.3; Wed, 27 Jun 2001
23:26:10 +0200
C: EHLO regulus
S: 250-regulus.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
C: MAIL FROM:<>
S: 250 2.1.0 <>... Sender ok
C: RCPT TO:<root>
S: 250 2.1.5 <root>... Recipient ok
C: DATA
S: 354 Enter mail, end with "." on a line by itself
H: MIME-Version: 1.0
H: Content-Type: text/plain;
  charset=iso-8859-1
H: Content-Transfer-Encoding: 7bit
H: Date: Wed, 27 Jun 2001 21:26:10 +0000
H: From: <>
H: To: root
H: Message-Id: <993677170.0@regulus>
H: Subject: URGA
S: 250 2.0.0 f5RLQAL07479 Message accepted for delivery
C: QUIT
S: 221 2.0.0 regulus.localdomain closing connection
250 f5RLQAL07479 Message accepted for delivery
root: 250 <root>... Recipient ok

The mail was delivered fine, but again it *did* make a dns querey (and dialed
in):

[root@regulus /root]# tcpdump -vv -t -x -l -i ippp0 -n -c 5
User level filter, protocol ALL, datagram packet socket
tcpdump: listening on ippp0
> 145.253.152.163.1025 > 145.253.2.11.domain: 10387+ AAAA? localhost. (27)
(ttl 64, id 1622)
                         4500 0037 0656 0000 4011 b5b7 91fd 98a3
                         91fd 020b 0401 0035 0023 4015 2893 0100
                         0001 0000 0000 0000 096c 6f63 616c 686f
                         7374 0000 1c00 01

Again, all machines involved are in the local /etc/hosts (the machine has an
ethernet card, which is assigned to an ip address, but I don't think this will
make a difference?):

[root@regulus /root]# cat /etc/hosts
127.0.0.1       localhost       localhost.localdomain
134.104.80.221  regulus         regulus.localdomain
[...]

I also tried the short test program for gethostbyname and gethostbyname_r I
sent with my mail last week with all the names involved (localhost,
localhost.localdomain, regulus and regulus.localdomain), but it does *not*
dail in for a dns querey.

As a last test, I entered `telnet localhost 25' and got the following,
*without* any dialing in and/or dns querey:

[albrecht@regulus albrecht]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 regulus.localdomain ESMTP Sendmail 8.11.1/8.9.3; Wed, 27 Jun 2001 23:36:12
+0200
EHLO regulus
250-regulus.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP

So in the end I am afraid that there is a problem with your lib? What do you
think about all that?

Cheers, Albrecht.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Albrecht Dreß  -  Monschauer Straße 22  -  D-53121 Bonn (Germany)
      Phone (+49) 228 6199571  -  E-Mail albrecht.dress@arcormail.de
_________________________________________________________________________




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]