On Wed, 14 May 2008, NFN Smith wrote:

If I set  DAEMON_HOSTSTATS="No";  in sendmail.conf, then sendmailconfig
deletes /var/lib/sendmail/host_status, as described in relevant
documentation.  However, somewhere along, sendmail is still trying to
write to that directory on the regular runs of the sendmail queues (in
my case, every 20 minutes), and I get an error

Warning: Cannot use HostStatusDirectory = /var/lib/sendmail/host_status: No such file or directory

This was tweaked somewhere after your version to also update sendmail.mc
- I can't recall when... I've had more than a few drinks since then...
--------------------------------------------------------------------------
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl undefine(`confHOST_STATUS_DIRECTORY')dnl        #DAEMON_HOSTSTATS
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
--------------------------------------------------------------------------

when DAEMON_HOSTSTATS="No", this undefine is uncommented - and that is
what you need to prevent those error messages.

I don't think there's any compelling reason to enable HostStatus, and I
don't think there's any significant performance difference by having it
enabled.

I use it more for diagnostic purposes - so I know what relay hosts are
giving me fits... but you are correct, sendmail caches hoststatus information in-memory, and does its aging there. I have disk-based
status information that I manually clear out roughly quarterly.

--
Rick Nelson
<netgod> heh thats a lost cause, like the correct pronounciation of
         "jewelry"
<netgod> give it up :-)
<sage> and the correct spelling of "colour" :)
<BenC> heh
<sage> and aluminium
<BenC> or nuclear weapons
<sage> are you threating me yankee ?
<sage> just cause we don't have the bomb...
<BenC> back off ya yellow belly


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to