From owner-freebsd-bugs Sat Oct 18 05:00:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA14221 for bugs-outgoing; Sat, 18 Oct 1997 05:00:08 -0700 (PDT) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA14178; Sat, 18 Oct 1997 05:00:02 -0700 (PDT) (envelope-from gnats) Date: Sat, 18 Oct 1997 05:00:02 -0700 (PDT) Message-Id: <199710181200.FAA14178@hub.freebsd.org> To: freebsd-bugs Cc: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: conf/4751: sendmail writing to old maillogs after rotation Reply-To: j@uriah.heep.sax.de (J Wunsch) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR conf/4751; it has been noted by GNATS. From: j@uriah.heep.sax.de (J Wunsch) To: jbrogan@reply.net Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: conf/4751: sendmail writing to old maillogs after rotation Date: Sat, 18 Oct 1997 13:33:12 +0200 As jbrogan@reply.net wrote: > Just like it has always done. But now sendmail will start writing > to maillog.0 instead of maillog where it's supposed to. In fact, > I've even found times when it's writing to maillog.2 or even > maillog.3. And when I actually *rename* a maillog it is writing > to.... it will write to that renamed version! Real neat, but not > good. This means the file has been held open still by the writing process. Normally, sendmail is supposed to log via the syslog facility, and syslogd is supposed to get sent a SIGHUP after newsyslog ran, so in order to reopen the logfiles. Either your sendmail setup is screwed, or newsyslog fails somehow to notifiy syslogd. Check who's holding the file open by saying: fstat /var/log/maillog -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)