Solved

Sendmail Configuration

Posted on 1997-06-14
4
283 Views
Last Modified: 2013-12-15

I'm running a P-100 and 386 over Ethernet and have established connectivity (ping, telnet, etc. work in both directions).  However, I'm only able to sendmail from the 386 to the P-100.  When I run the command sendmail -vt root@my.host.name from the P-100 -> 386, I get the following
error:

root@my.host.name ... Deferred: Name server: my.host.name.: host name lookup failure

When I installed Linux, I configured sendmail w/o DNS.  I have not modified the sendmail.cf files on either host.  And there is more ...

I have configured my P-100 to connect to my ISP via PPP and when the daemon is invoked and the link established (verified with ifconfig for ppp0), I can sendmail "all day" from the P-100 to the 386 and vice-versa!

So ... what is preventing me from using sendmail from the p-100 -> 386 when pppd isn't running?

Thanks - Bill

(*** please respond via email ***)

0
Comment
Question by:elusive1
  • 2
4 Comments
 
LVL 1

Expert Comment

by:strobert
ID: 1628187
what does your /etc/hosts file look like on your P-100
also your /etc/resolve.conf and /etc/host.conf
0
 

Author Comment

by:elusive1
ID: 1628188
strobert: My domain is defined in both configuration files and I receive the same error. Was told to modify the source line NAMED_BIND 0 and recompile but that seems to be a bit overkill.
Got my ppp dial-up script to work however <grin>!
0
 
LVL 3

Accepted Solution

by:
sauron earned 50 total points
ID: 1628189
From my experience, sendmail will always try and use DNS, unless
you actually compile with it disabled. I suggest you put the IP
address and name of your 386 in you /etc/hosts file on your P100.
This may fix it. Failing that, go through your sendmail.cf file. Somewhere in ruleset 3, or another ruleset referneced by ruleset
3 (may well be set 96, depending how you generated your
sendmail.cf file) you'll probably find a rule, with a comment to
the effect that this rule canonicalizes the domain name. If you
set up another rule immediately preceding this, of the same general format, that canonicalizes your domain without using DNS, and then returns, you should be able to make it work.
0
 

Author Comment

by:elusive1
ID: 1628190
I resolved the problem by installing BSD Sendmail 8.7.5
instead of running 8.7.5

Problem Archived -> /dev/null
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Assess most serious Linux privilege escalation bug 17 149
linux date/time setting via python 6 56
Linux as a middle box 7 63
Linux Copy Command - All Files inc Directory 1 28
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now