From owner-freebsd-questions@FreeBSD.ORG Wed Oct 3 21:15:22 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 76EDE16A46E for ; Wed, 3 Oct 2007 21:15:22 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 8527E13C457 for ; Wed, 3 Oct 2007 21:15:21 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id l93LFJeP063822; Wed, 3 Oct 2007 23:15:20 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 18E35B869; Wed, 3 Oct 2007 23:15:19 +0200 (CEST) Date: Wed, 3 Oct 2007 23:15:19 +0200 From: Roland Smith To: Lisa Casey Message-ID: <20071003211519.GC44500@slackbox.xs4all.nl> Mail-Followup-To: Lisa Casey , freebsd-questions@freebsd.org References: <011e01c805fc$4c5dc3d0$d5b9bfcf@lisac> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2iBwrppp/7QCDedR" Content-Disposition: inline In-Reply-To: <011e01c805fc$4c5dc3d0$d5b9bfcf@lisac> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org 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:15:22 -0000 --2iBwrppp/7QCDedR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 03, 2007 at 04:30:54PM -0400, Lisa Casey wrote: >=20 > The problem comes in when a customer cancels his account. We remove users= =20 > by rmuser username. That command removes the user from the password file,= =20 > removes his home directory and removes the mailspool. What it doesn't do = is=20 > to remove the .username.pop file associated with that mailbox. This isn't= a=20 > problem unless we add another account with the same username. The new=20 > account cannot pop his mail because he gets the following error messge: >=20 > -ERR [SYS/PERM] Temporary drop /var/mail/.jjvc.pop not owned by jjvc. >=20 > If I take a look at /var/mail/.jjvc.pop it isn't owned by anyone, the=20 > ownership of the file is the group number of the original jjvc. >=20 > -rw-rw---- 1 1473 mail 0 Sep 11 19:15= =20 > .jjvc.pop >=20 > Is there anyway to have rmuser remover the mail drop file associated with= =20 > that account also, or am I just going to have to remove these manually? Since rmuser is a shell-script, you could easily change it to suit your needs. Look at the function rm_mail (lines 79-95), and change '${login}.pop' to '.${login}.pop' in line 89,90 and line 92. A more elegant approach would be to duplicate lines 89-93 and add the dot before the login in the second instance, changeing " pop3" to " qpopper" as well. If you make this change, do not forget to re-apply it after doing a installworld. :-) Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --2iBwrppp/7QCDedR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHBAZnEnfvsMMhpyURAr58AJ9HEfWUlR29lQrvrSGysFEJWWHbjQCfYJRe zWCqMMb5uyDEU+TiOIgMD+0= =YAsd -----END PGP SIGNATURE----- --2iBwrppp/7QCDedR--