LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2004, 08:46 PM   #1
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Rep: Reputation: 15
sendmail


sendmail

hellO evryOne
i've a silly problem and i need help ...
sendmail takes a very lOng time while booting ...(i changed the hostname in /etc/hosts -----and /etc/sysconfig/network)
and sometimes sending mail works with root@localhost
and sometimes the old hostname BUT very slow and 've problems ... where should i change the hostname else so sendmail can read it and return back work smooth as it was? help please............. and my /etc/hosts like that and i tryed deleteing a line from those two lines
127.0.0.1 localhost.localdomain localhost
127.0.0.1 Ziox

__________________

Last edited by ziox; 05-01-2004 at 08:48 PM.
 
Old 05-01-2004, 09:31 PM   #2
kvedaa
Member
 
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
Ziox,

In my experience, seeing a slow response from sendmail during startup, is most often related to problems with name resolution. The first question that I would like to ask is do you really want to be running sendmail on your box, if not then you could simply configure it not to start, then this problem would go away.

Now, if you do need to run sendmail, and you would like it to not take several minutes during the boot process, we should take a few moments to determine what the box thinks it called. If you type:

$ hostname

Is the response Ziox or localhost (remember that it is case sensitive). If not you should add whatever the response is to the host file. Tripping points that I can think of include (depending on your version of linux...), if you use DHCP to get your IP address, you may find that your box may want to change its hostname based on information received form the DHCP server (in most cases, with a bit of luck and sweat you can get your box to ignore this data). Also it might be helpful to edit the second line to:

127.0.0.1 Ziox.localdomain Zion

Also you will want to insure that you are mapped to a DNS server or have populated your hosts file so that any name that sendmail attempts to connect to will have a valid resolution, otherwise you will have a considerable wait.
 
Old 05-02-2004, 10:05 AM   #3
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
thank you for ur reply ..........my hostname is Ziox i'm sure and i just want to learn sendmail it was work normal before i change the host name ...+ it's a single machine no dhcp i'm on RedHat~9 i just want to know where the sendmail reading the hostname ..? i think the problem here ...i'v a V long /var/mail/mailog to read ........i'll read it later
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 08:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 03:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 02:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 10:57 PM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration