Linux – sendmail – custom /etc/resolv.conf and /etc/hosts files

configurationlinuxsendmail

Is it possible to configure sendmail to use the hosts and resolv.conf files other then the ones located in /etc/?

Best Answer

In short, not that I know of. Most programs use standard system calls for any name resolution and leave the details to the OS.

Now, if you're concerned about people/programs changing file contents, take a look at the chattr command. You can set files such that they can't be overwritten without removing the immutable flag first. It's highly unlikely any program will be written to do that.