From owner-freebsd-questions@FreeBSD.ORG Wed Oct 3 20:43:20 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A66C16A41A for ; Wed, 3 Oct 2007 20:43:20 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from mail.jellico.com (mail.jellico.com [207.191.185.6]) by mx1.freebsd.org (Postfix) with ESMTP id A66D713C4A7 for ; Wed, 3 Oct 2007 20:43:19 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from lisac (lisa.jellico.com [207.191.185.213]) (authenticated bits=0) by mail.jellico.com (8.13.1/8.13.1) with ESMTP id l93KdTTd024015 for ; Wed, 3 Oct 2007 16:39:30 -0400 (EDT) (envelope-from lisa@jellico.com) Message-ID: <011e01c805fc$4c5dc3d0$d5b9bfcf@lisac> From: "Lisa Casey" To: Date: Wed, 3 Oct 2007 16:30:54 -0400 Organization: Netlink 2000, Inc. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Scanned-By: MIMEDefang 2.61 on 207.191.185.6 Subject: FreeBsd e-mail question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 20:43:20 -0000 Hi, I'm running Sendmail and Qpopper on FreeBsd. (And perhaps I ought to be asking this on the Qpopper list, but hopefully someone here knows an answer). We have all of our mailboxes in mbox format in /var/mail. When a customer pops his mail for the first time it creates a file .username.pop in /var/mail which never goes away, it remains as a zero byte file. It's quite useful as we can tell from the timestamp on it when the customer last popped his mail. The problem comes in when a customer cancels his account. We remove users by rmuser username. That command removes the user from the password file, removes his home directory and removes the mailspool. What it doesn't do is to remove the .username.pop file associated with that mailbox. This isn't a problem unless we add another account with the same username. The new account cannot pop his mail because he gets the following error messge: -ERR [SYS/PERM] Temporary drop /var/mail/.jjvc.pop not owned by jjvc. If I take a look at /var/mail/.jjvc.pop it isn't owned by anyone, the ownership of the file is the group number of the original jjvc. -rw-rw---- 1 1473 mail 0 Sep 11 19:15 .jjvc.pop Is there anyway to have rmuser remover the mail drop file associated with that account also, or am I just going to have to remove these manually? Thanks, Lisa Casey