LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-26-2004, 05:55 PM   #1
vpatton
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Question Sendmail and the local-host-names file


I'm currently running Sendmail version 8.11.6 on my server. I was wondering if it was possible to create a script to have sendmail read the local-host-names file and process it without having to restart sendmail. I'm just trying to figure out a way to do it without disturbing anyone when I have to reboot.
 
Old 04-26-2004, 06:22 PM   #2
Thrasher
Member
 
Registered: Oct 2003
Location: Riverside, CA
Distribution: Slackware/RedHat
Posts: 79

Rep: Reputation: 15
Not sure if this is what you mean, but you dont have to restart the computer to restart sendmail. if you make changes to most files related to sendmail they wont take effect until you restart sendmail. Restarting sendmail only takes seconds though, so if you do it at a time when mail traffic is slow, there wont be any disruption of service.
There are many ways to do this depending on the distro you are using.
Most of the time you can (as root) kill sendmail and restart it using the rc.sendmail file.
 
Old 04-26-2004, 06:27 PM   #3
vpatton
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry I wasn't more specific, but yes I was wondering if there was a way to do it without stopping and restarting the sendmail service. Some kind of perl script maybe? Or is it not likely because the local-host-names file is a text file.
Thanks for the help
 
Old 04-26-2004, 06:52 PM   #4
Thrasher
Member
 
Registered: Oct 2003
Location: Riverside, CA
Distribution: Slackware/RedHat
Posts: 79

Rep: Reputation: 15
After reviewing how the local-host-names file is setup, it doesnt look like sendmail would need to be restarted. Also there doesnt seem to be a script to update it to a .db file like the alias file has. If your sendmail.cf is set up correctly (which it is by default im pretty sure) then it will read that file every time there is a request for a mail connection.
Have you tryed adding entries and tested them? (sorry if that sounds insulting-not intended)
In the meantime, I will add some things to my file and test it myself to see the functionality.
 
Old 04-26-2004, 08:00 PM   #5
Thrasher
Member
 
Registered: Oct 2003
Location: Riverside, CA
Distribution: Slackware/RedHat
Posts: 79

Rep: Reputation: 15
Having problems with my dns server. Ill work on that and try again later. ill check back later.
 
Old 04-26-2004, 08:37 PM   #6
vpatton
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you, I'll try in the morning and see what happens. After that I'll immediately post my results.
 
  


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
how does dns/host names work on local lan gman_O0O0 Linux - Networking 1 04-11-2005 01:22 AM
Resolving Local Non-FQDN Host Names fortezza Linux - Networking 2 02-14-2004 05:17 AM
Sendmail can't resolve names outside local network beng Linux - Networking 4 12-01-2003 01:09 PM
can't makemap local-host-names in sendmail TomHodder Linux - Software 2 09-09-2003 10:21 PM
host names??? jonfa Linux - Networking 1 05-28-2001 09:15 PM


All times are GMT -5. The time now is 02:01 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration