From owner-freebsd-questions@FreeBSD.ORG Tue Jan 11 08:47:44 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 632B716A4CE for ; Tue, 11 Jan 2005 08:47:44 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0845743D49 for ; Tue, 11 Jan 2005 08:47:44 +0000 (GMT) (envelope-from david.jenkins@gmail.com) Received: by wproxy.gmail.com with SMTP id 68so63672wri for ; Tue, 11 Jan 2005 00:47:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=oaYWEiMGMtKGSw+jj64IDN7dazd/yr5w0LdVPUi8tueKpHANhByHNcxsFe1E3iXCwv9oer8deCampqP0TcwF+ouqsfrpxB84HzK5oi7UskSRK2zRrr3OQcgkqmwzbPxqbwRoAgC96h3IzvKZzdwXI2gIL6ROQBL7bR0al2i7/SU= Received: by 10.54.26.74 with SMTP id 74mr15548wrz; Tue, 11 Jan 2005 00:47:43 -0800 (PST) Received: by 10.54.5.26 with HTTP; Tue, 11 Jan 2005 00:47:43 -0800 (PST) Message-ID: <9395922d050111004779ba834f@mail.gmail.com> Date: Tue, 11 Jan 2005 08:47:43 +0000 From: David Jenkins To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Bad file descriptor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Jenkins List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 08:47:44 -0000 Hi all, I have no idea what's causing the problem here but it seems that mail cannot be delivered to the root account - I know I should have mail forwarded to a different user in the aliases file... I'm running 5.3-RELEASE-p2 (haven't applied the latest patch yet) and GENERIC kernel. The MTA is sendmail, the box is only used for web services for a few friends. Anyway, last night, when the daily periodic was run by cron it appears the mail could not be delivered to root. The sendmail logs show the error DSN: Service unavailable (/var/mail/root: lstat: file changed after open) I have tried emailing other user accounts, and that works fine. I have tried emailing root again, and I get exactly the same errors. So, I checked /var/mail - here's the interesting thing. # ls root # ls -a . .. root # ls -la . .. i.e. root's file does not show. # touch root touch: root: Bad file descriptor I tried # vi /var/mail/root (which created a new file, I saved it (empty), and the box paniced and rebooted) I've checked google / the mailing list archives but can't seem to find anything relevant (I must be searching for the wrong keywords). If someone could give me a few pointers that would be great. Cheers, David