LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-03-2005, 01:01 AM   #1
bob66
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Rep: Reputation: 0
slow boot with static ip


I am running slackware 10.0 (which should not be all that relavent) and have just switched my machine from using dhcp to using a static ip (local ofcourse). The reason for doing this is so that my router knows which host to forward incoming requests to (I have just setup an ftp and an ssh server for personal use). however, i have noticed that at boot, when my /etc/rc.d/rc.sendmail script is executing, it hangs for a long time before continuing. however, my sendmail daemon does finally get running.

here is the relevant portion of /etc/rc.d/rc.sendmail:
Code:
sendmail_start() {
  if [ -x /usr/sbin/sendmail ]; then
    echo "Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m"
    /usr/sbin/sendmail -L sm-mta -bd -q25m
    echo "Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m"
    /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
  fi
}

Normally, the /etc/resolv.conf file is generated with dhcp, but with a static ip i had add some nameserver entries just so that host names could be resolved when I am browsing the web and such. Now, i am almost positive that it takes so long for sendmail to start at boot becuase it is trying to resolve my hostname and is unable to do so because i don't have a registered domain.

here is my resolv.conf file:
Code:
nameserver 207.69.188.185
nameserver 207.69.188.186
nameserver 207.69.188.187
here is my /etc/hosts file:
Code:
127.0.0.1                          localhost   # loopback
192.168.XXX.YYY              einstein  # my machine
192.168.XXX.ZZZ             router  # my router
here is my /etc/host.conf file:
Code:
order hosts, bind
multi on
I am curious why it is that my hostname is being resolved through dns before checking my /etc/hosts file. Also, when I had first installed slackware, the root user had a mail message with various tips and hints including:
Quote:
If you're on a standalone LAN without a nameserver, make sure you
don't have a nameserver line in /etc/resolv.conf, or you may experience
delays with many network commands as they attempt to query the bogus
nameserver.
Then if this is the case, how am I supposed to resolve hostnames?
Thanks for any advice i can get.

Last edited by bob66; 01-03-2005 at 01:17 AM.
 
Old 01-03-2005, 07:50 PM   #2
bob66
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Original Poster
Rep: Reputation: 0
i fixed my problem, simply removing my machines hostname from /etc/hosts did the trick. I knew that you were not supposed to associate your hostname with the loopback address, but i did not know that you were not supposed to have your hostname associated with it's actual IP.
 
Old 01-04-2005, 07:40 AM   #3
mac_casey
Member
 
Registered: Jun 2002
Location: Edmonton
Distribution: SUSE 10
Posts: 62

Rep: Reputation: 15
Im haveing similar issues. i will post my same config. Pherhaps you could help me out?
 
Old 01-04-2005, 11:08 AM   #4
bob66
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Original Poster
Rep: Reputation: 0
yeah, go ahead and post the same as i had above
 
Old 01-04-2005, 01:26 PM   #5
mac_casey
Member
 
Registered: Jun 2002
Location: Edmonton
Distribution: SUSE 10
Posts: 62

Rep: Reputation: 15
I should also mention that i am using Mandrake 10.1. I down loaded the lastest rpm from rpmfind.net last night.


here is myrelevant portion (i think) of the folder RC0.D

code:
start() {
# Start daemons.
if [ "$DAEMON" = yes ];then
gprintf "Starting %s: " "$prog"
/usr/bin/newaliases > /dev/null 2>&1
if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
make -C /etc/mail -s
else
for i in virtusertable access domaintable mailertable ; do
if [ -f /etc/mail/$i ] ; then
makemap hash /etc/mail/$i < /etc/mail/$i
fi
done
fi
daemon /usr/sbin/sendmail.sendmail ${DAEMONOPTIONS:-} -bd \
$([ -n "$QUEUE" ] && echo -q$QUEUE)
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail

if ! test -f /var/run/sm-client.pid ; then
gprintf "Starting sm-client: "
touch /var/run/sm-client.pid
chown smmsp:smmsp /var/run/sm-client.pid
daemon --check sm-client /usr/sbin/sendmail.sendmail -L sm-msp-queue -A$
$([ -n "$QUEUE" ] && echo -q$QUEUE)
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
fi

return $RETVAL

fi
}
fi


here is my resolv.conf file:

code:
search 56A
nameserver 199.185.130.34
nameserver 199.185.131.5

# ppp temp entry
fi



here is my /etc/hosts file:
code:
127.0.0.1 localhost
fi


here is my /etc/host.conf file:

code:
order hosts,bind
multi on
fi



Please let me know if there is any other info i can provide. Thanks for your help

cmac
 
Old 01-04-2005, 04:35 PM   #6
bob66
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Original Poster
Rep: Reputation: 0
i am wondering why it is you have "fi" in your other config files. these are to indicate the end of an if block in shell script. clearly your /etc/hosts, /etc/host.conf and /etc/resolv.conf are not shell scripts. so if you put those there, something may be seriously wrong.
also, are you using dhcp or a static ip address?
 
Old 01-04-2005, 05:01 PM   #7
mac_casey
Member
 
Registered: Jun 2002
Location: Edmonton
Distribution: SUSE 10
Posts: 62

Rep: Reputation: 15
Humm..i just copied from Putty and pasted into here. I dont recall them being in the actuall config. I am using a static class C address. (192.168.0.5 and have my sonic wall appliance forwarding my ports. Do you think i should set up the DNS on this box to work. The main reason i wanted Sendmail to work was that i have Red hat box......wait could that be it....i have another Mail server 192.168.0.4 running sendmail also......Its a Redhat 9 box. I plannig to retire that old box in leu of my new one. I dont have that problem with my old one.

What are your thoughts.

cm
 
Old 01-05-2005, 02:28 PM   #8
mac_casey
Member
 
Registered: Jun 2002
Location: Edmonton
Distribution: SUSE 10
Posts: 62

Rep: Reputation: 15
I found this thread and it seems to have done the trick for my slow start up. Know i have another error http://www.linuxquestions.org/questi...sendmail+start


I am using Mikes form mail script to send out an email from a form. Now i get this error (Alot faster) once submitted.


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, info@domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache-AdvancedExtranetServer/2.0.50 (Mandrakelinux/7mdk) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.50 OpenSSL/0.9.7d PHP/4.3.8 Server at www.domain.com Port 80


Can some give me a bare bones of what i should do. Im pretty sure that im not totally configured but i also think that when i use webadmin to edit these files that it slightly changes them...


I also found this in my /etc/mail/error log file....does this help

Jan 6 01:11:52 localhost sendmail[12424]: My unqualified host name (localhost) unknown; sleeping for retry
Jan 6 01:12:52 localhost sendmail[12424]: unable to qualify my own domain name (localhost) -- using short name
Jan 6 01:50:35 localhost sendmail[12817]: j068oZdk012816: SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db: No such file or directory


Jan 6 04:21:42 localhost sendmail[19914]: STARTTLS=server, relay=localhost.linix [127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 6 04:21:42 localhost sendmail[19912]: STARTTLS=client, relay=localhost.linix., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 6 04:21:42 localhost sendmail[19914]: j06BLfIZ019914: <info@svr.com>... User unknown
Jan 6 04:21:42 localhost sendmail[19912]: j06BLf8B019912: to=info@svr.com, ctladdr=apache (73/73), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30491, relay=localhost.linix. [127.0.0.1], dsn=5.1.1, stat=User unknown
Jan 6 04:21:42 localhost sendmail[19914]: j06BLfIZ019914: from=<apache@localhost.linix>, size=491, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.linix [127.0.0.1]


Thoughts

SOS

Last edited by mac_casey; 01-05-2005 at 05:35 PM.
 
  


Reply



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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM
Mic loud during boot, creates static bence8810 Linux - Laptop and Netbook 0 11-23-2004 05:30 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
Constant audio static after boot Lostboy7500 Linux - Hardware 4 02-01-2003 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 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
Open Source Consulting | Domain Registration