From owner-freebsd-questions@FreeBSD.ORG Wed Oct 3 21:30:39 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 B7C2616A417 for ; Wed, 3 Oct 2007 21:30:39 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5C713C457 for ; Wed, 3 Oct 2007 21:30:39 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-31-60.bredband.comhem.se ([83.253.31.60]:64261 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1IdBni-0005pg-7p for freebsd-questions@freebsd.org; Wed, 03 Oct 2007 23:30:38 +0200 Received: (qmail 42200 invoked from network); 3 Oct 2007 23:30:35 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 3 Oct 2007 23:30:35 +0200 Received: (qmail 60755 invoked by uid 1001); 3 Oct 2007 23:30:35 +0200 Date: Wed, 3 Oct 2007 23:30:35 +0200 From: Erik Trulsson To: Mel Message-ID: <20071003213035.GA60715@owl.midgard.homeip.net> Mail-Followup-To: Mel , freebsd-questions@freebsd.org, lisa@jellico.com References: <011e01c805fc$4c5dc3d0$d5b9bfcf@lisac> <200710032304.59151.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710032304.59151.fbsd.questions@rachie.is-a-geek.net> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.31.60 X-Scan-Result: No virus found in message 1IdBni-0005pg-7p. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IdBni-0005pg-7p 805cad6307b7d919ed44f0ae3353a4dc Cc: freebsd-questions@freebsd.org, lisa@jellico.com Subject: Re: 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 21:30:39 -0000 On Wed, Oct 03, 2007 at 11:04:58PM +0200, Mel wrote: > On Wednesday 03 October 2007 22:30:54 Lisa Casey wrote: > > > 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? > > rmuser is a shell script. There's 2 ways to solve this problem: > 1) edit the rm_mail function in /usr/sbin/rmuser to use: > ${MAILSPOOL}/.${login}.pop > 2) Better option is to change the default temp-name in qpopper.config: > set temp-name "%s.pop" > so that rmuser will detect it automatically. A third option is to write a wrapper shell script that first calls rmuser and then removes the remaining mail drop file, and use this script to remove users instead of calling rmuser directly. Option 2) above sounds like a better solution though. -- Erik Trulsson ertr1013@student.uu.se