The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CVS on redhat new2ss Linux 5 04-24-2008 06:25 AM
SCO Vs Redhat homerjj UNIX for Advanced & Expert Users 3 09-27-2006 08:39 AM
redhat keliy1 Linux 1 09-13-2004 08:04 AM
redhat thenewestuser Linux 3 09-22-2003 06:46 AM
redhat 7.1 GUI tlcrowder UNIX for Dummies Questions & Answers 2 10-02-2001 10:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2005
Registered User
 

Join Date: Nov 2004
Posts: 68
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Angry Redhat sendmail help

Hello all,

I have been trying to understand sendmail. I'm having problem sending mail to another machine on the same network. I keep on getting error "Deferred: Name Server :redone: host name lookup fail". I can ping the machine and log in via ssh no problem. I don't have a DNS server. Is this because sendmail is looking for host via the DNS server instead of /etc/hosts. I have edit my /etc/resolv.conf file to not look for a nameserver just the domain. But the same thing. I can mail to a user on the machine locally. I can telnet to the smtp port locally but not from the out side ( another machine). I have edit my /etc/hosts.allow to include the other machine. I have also look at the posting here and edit the sendmail.cf to accept unreolv hostname and account and recompile. This doen't work. I'm lost. I'm currently running redhat AS3. Any help would be great. THANKS
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-06-2005
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,067
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
On the machine that is running sendmail, you have to have a number of configuration files right of "there will be dragons."

First, I would insure that the forward and reverse DNS exists in both the /etc/hosts file and the DNS. Sendmail likes DNS, especially itself, to be configured correctly.

Sendmail normally tries to resolve its own hostname, but you can also enter it directly in the .cf file.

There is also a file, often located in /etc/mail/local-host-names which needs to have, of course, the local host names.

You can always post your files and we can have a look!

Neo
Reply With Quote
  #3 (permalink)  
Old 01-07-2005
Registered User
 

Join Date: Nov 2004
Posts: 68
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Neo,

Here is the set up dell-56 is the DNS server Server23 is a DHCP server. I'm trying to mail betweeen the two. These files are on my dell-56 server. Here are my files. I know that one problem was DNS. I've install a DNS server and now I don't get a responce of could not find hosts.

Now I'm getting connectrion refused by hosts...

Here are my files:

/etc/mail/access

# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
dell-56 OK
server23 OK
dell-80 OK


/etc/mail/local-hosts-named

# local-host-names - include all aliases for your machine here.
dell-56


/etc/hosts.allow

#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

ALL:ALL


/etc/mail/sendmail.cf Just a few cut from it


Cwlocalhost
# file containing names of hosts for which we receive email
Fw/etc/mail/local-host-names

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM

CP.

# "Smart" relay host (may be null)
DS
# access_db acceptance class
C{Accept}OK RELAY


C{ResOk}OKR


# Hosts for which relaying is permitted ($=R)
FR-o /etc/mail/relay-domains



I hope you can help my. If you need other files let me know.

I just try to telnet to my smtp port and getting connection refused.

[dell-56]> telnet dell-56 25
....Unable to connect to remote host: Connection refuse.

I don't have ipchain or iptables running.


THANKS
Reply With Quote
  #4 (permalink)  
Old 01-07-2005
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,067
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
OK, let's do this by-the-book, step-by-step:

Please post the output of a command like:

ps -aux | grep sendmail

So first we check if sendmail is running.

Is it?
Reply With Quote
  #5 (permalink)  
Old 01-10-2005
Registered User
 

Join Date: Nov 2004
Posts: 68
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Yes sendmail is running


root:......:sendmail: accepting connectoions
smmsp... : sendmail: Queue runner@01:00:00
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h cut command in unix dead.letter find grep find null character in a unix file grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp batch sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix date command unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi select all vi+substitute+end+of+line+character while loop within while loop shell script


All times are GMT -7. The time now is 11:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101