Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 15


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 localhost.localdomain localhost Ziox


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

Rep: Reputation: 30

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: 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, 09:05 AM   #3
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
thank you for ur reply 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


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 07:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 02:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM > Forums > Linux Forums > Linux - Newbie

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

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