Networking Forums

Networking Forums > Computer Networking > Linux Networking > sendmail waits 2 mintues when connecting

Reply
Thread Tools Display Modes

sendmail waits 2 mintues when connecting

 
 
Elhanan Maayan
Guest
Posts: n/a

 
      01-19-2004, 09:44 AM
hi..


i have RH 7.3 on my laptop

the laptop is connected to a docking station which has a network card
on it(eth1), usually i use this one but a times i may need to use the
latop in the office thus making me use the onboard card (eth0) so i
activate both on startup but will not be connected. since i didn't
feel like waiting for a while min for the dhcp client to respond i
added a -t 10 paramter to network service script.

problem is one of the eth is not connected and is activated this
somehow screws sendmail making me wait 2 mintues what it's starts up.
anyway i make it shorter?

since there are no hardware profiles that i know of in rh (like in
windows) i cannot tell liux to automatically detect if it's in a
docking station thus activating only the approriate card.
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      01-20-2004, 01:45 AM
On 19 Jan 2004 02:44:11 -0800, Elhanan Maayan <(E-Mail Removed)> wrote:
> i have RH 7.3 on my laptop
>
> the laptop is connected to a docking station which has a network card
> on it(eth1), usually i use this one but a times i may need to use the
> latop in the office thus making me use the onboard card (eth0) so i
> activate both on startup but will not be connected. since i didn't
> feel like waiting for a while min for the dhcp client to respond i
> added a -t 10 paramter to network service script.
>
> problem is one of the eth is not connected and is activated this
> somehow screws sendmail making me wait 2 mintues what it's starts up.
> anyway i make it shorter?


Apparently sendmail is having trouble associating your hostname with an IP
address. Use /etc/hosts to either point your hostname at a static IP on a
local interface, or if none, at an extra loopback IP like 127.0.0.2. It
is usually best not to tamper with the 127.0.0.1 line, and especially do
NOT remove the name localhost from that IP.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Elhanan Maayan
Guest
Posts: n/a

 
      01-20-2004, 06:20 AM
i don't have a static ip , linux gets it's ip from the router.
u mean i should add 'compputer name' 127.0.0.2
to my host file?

i don't remove localhost.localdomain from the hosts file, it sometimes
being removed by itself.

btw do i really need sendmail? i get your have new mail as logging as
root but i can't seemd to unflag the mail as read when i read them.

i think i'm going to move rh 9.0, i've heard it's better on laptops (i
longer have 7.3 disro disk around me only 7.2 , and when i wann try
and intstall rpmfind or samba i get failed depencecies...
(E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
> On 19 Jan 2004 02:44:11 -0800, Elhanan Maayan <(E-Mail Removed)> wrote:
> > i have RH 7.3 on my laptop
> >
> > the laptop is connected to a docking station which has a network card
> > on it(eth1), usually i use this one but a times i may need to use the
> > latop in the office thus making me use the onboard card (eth0) so i
> > activate both on startup but will not be connected. since i didn't
> > feel like waiting for a while min for the dhcp client to respond i
> > added a -t 10 paramter to network service script.
> >
> > problem is one of the eth is not connected and is activated this
> > somehow screws sendmail making me wait 2 mintues what it's starts up.
> > anyway i make it shorter?

>
> Apparently sendmail is having trouble associating your hostname with an IP
> address. Use /etc/hosts to either point your hostname at a static IP on a
> local interface, or if none, at an extra loopback IP like 127.0.0.2. It
> is usually best not to tamper with the 127.0.0.1 line, and especially do
> NOT remove the name localhost from that IP.

 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      01-20-2004, 06:26 PM
On 19 Jan 2004 23:20:31 -0800, Elhanan Maayan <(E-Mail Removed)> wrote:
> i don't have a static ip , linux gets it's ip from the router.
> u mean i should add 'compputer name' 127.0.0.2
> to my host file?


Wrong order [should be IP then name(s)], see 'man hosts'. However, by
default sendmail in RH only listens on 127.0.0.1, so I do not know if that
needs to be modified in the proper mc file and sendmail.cf regenerated.

> i don't remove localhost.localdomain from the hosts file, it sometimes
> being removed by itself.
>
> btw do i really need sendmail? i get your have new mail as logging as
> root but i can't seemd to unflag the mail as read when i read them.


Local mail is used for system messages (usually from cron). If you su to
root make sure you use 'su -' and not just 'su' (see 'man su').

> i think i'm going to move rh 9.0, i've heard it's better on laptops (i
> longer have 7.3 disro disk around me only 7.2 , and when i wann try
> and intstall rpmfind or samba i get failed depencecies...
> (E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
>> On 19 Jan 2004 02:44:11 -0800, Elhanan Maayan <(E-Mail Removed)> wrote:
>> > i have RH 7.3 on my laptop
>> >
>> > the laptop is connected to a docking station which has a network card
>> > on it(eth1), usually i use this one but a times i may need to use the
>> > latop in the office thus making me use the onboard card (eth0) so i
>> > activate both on startup but will not be connected. since i didn't
>> > feel like waiting for a while min for the dhcp client to respond i
>> > added a -t 10 paramter to network service script.
>> >
>> > problem is one of the eth is not connected and is activated this
>> > somehow screws sendmail making me wait 2 mintues what it's starts up.
>> > anyway i make it shorter?

>>
>> Apparently sendmail is having trouble associating your hostname with an IP
>> address. Use /etc/hosts to either point your hostname at a static IP on a
>> local interface, or if none, at an extra loopback IP like 127.0.0.2. It
>> is usually best not to tamper with the 127.0.0.1 line, and especially do
>> NOT remove the name localhost from that IP.



--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Belkin Router as switch. Long waits Harry Bloomfield Home Networking 0 01-22-2010 09:51 PM
Re: Belkin Router as switch. Long waits Rob Home Networking 0 01-22-2010 11:48 AM
Internal traffic waits for ever... Chris Mitchell Windows Networking 4 07-02-2008 10:45 AM
my own ftp client waits on connect... please help amit Linux Networking 1 08-01-2006 10:51 PM
Connecting to Sendmail Peter Linux Networking 5 11-15-2003 06:39 PM



1 2 3 4 5 6 7 8 9 10 11