Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.