procmail
[Top] [All Lists]

Re: DNS problem?

1999-04-28 08:56:55
Rainer Koschnick <koschnick(_at_)www(_dot_)elconet(_dot_)com> writes:
we are having problems with our Linux server.  It's
that we're not constantly connected to the internet.
As soon as a request to the internet is made, our
server will go online.  Now, when we try to send
local email (to a co-worker), it won't be delievered
until we're on the net.  In case we can't go online
the mail will remain undelievered.

Does procmail do DNS lookups even when the mail
to be delievered is local?  If so, is there any
possibility to turn that behaviour off?  We're using
the sendmail package btw.  Sendmail shows that the
mail is to be delievered locally.

As long as you don't set a host part in the COMSAT variable, procmail
doesn't do any DNS lookups.  The problem is almost certainly sendmail.
Try sending a message directly with sendmail, giving the following
debugging flags: -d61.10 -d52.100 -d8.2

        lunen% sendmail -d61.10 -d52.100 -d8.2 guenther(_at_)gac(_dot_)edu
        gethostbyname(lunen.gac.edu)... lunen.gac.edu
      To: guenther(_at_)gac(_dot_)edu

      kdjfhskjdfks
        disconnect: In 0 Out 1, e=a3168
        don't
        getmxrr(gac.edu., droplocalhost=1)
        gethostbyname(mx0.gac.edu.)... mx0.gac.edu
        lunen%

I typed the sendmail command and the three lines prefixed with '>' and
then hit control-D to end the message.  You can see that sendmail made
two hostname lookups and an MX lookup.  The first gethostbyname() could
be resolved by /etc/hosts on this machine, but MX lookup and the second
gethostbyname() had to go to the DNS.  When you try sending to a local
user on your machine, what lookups does it perform?


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>
  • DNS problem?, Rainer Koschnick
    • Re: DNS problem?, Philip Guenther <=