From owner-freebsd-questions@FreeBSD.ORG Thu Mar 13 03:48:22 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A0AB1065672 for ; Thu, 13 Mar 2008 03:48:22 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id C72688FC15 for ; Thu, 13 Mar 2008 03:48:21 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1JZeQT-0003CT-6f; Thu, 13 Mar 2008 03:48:17 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id m2D3mGC4022433; Thu, 13 Mar 2008 03:48:16 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 8C19CFCA4B0; Thu, 13 Mar 2008 03:48:08 +0000 (GMT) Date: Thu, 13 Mar 2008 03:48:08 +0000 From: Frank Shute To: David Banning Message-ID: <20080313034808.GA12776@melon.esperance-linux.co.uk> References: <20080312204917.GA69118@skytracker.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080312204917.GA69118@skytracker.ca> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (zetnet.co.uk [194.247.46.1]); Thu, 13 Mar 2008 03:48:16 +0000 (GMT) Cc: questions@freebsd.org Subject: Re: email pop3 question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 03:48:22 -0000 On Wed, Mar 12, 2008 at 04:49:18PM -0400, David Banning wrote: > > I am using dovecot email on my server - Users can connect via IMAP or POP3. > > I have a user who is using pop3 but not removing the email from the > server - so the email stays on the server, -and- it is collecting on their > computer - as the emails build up, will there be a problem with this? Probably not. But it suggests to me that the user has probably misconfigured his pop client to not delete email after he's picked it up. Unless, he's using some peculiar kind of back-up strategy! > > For IMAP it stays on the server, so I assume the server will not be presented > with any problem - but will the user suffer any problem eventually? He could do. The pop3 protocol is painfully slow and deleting thousands of emails that have built up is no fun. You have to write a script that deletes them one by one unless dovecot supports a "delete all" mode for pop3. You might want to drop them an email to tell them that their email isn't being deleted after collection. Here's a script for deleting them, if he wants it: #!/usr/local/bin/ksh # # Deletes mail off pop3 server # # Usage: e.g: Clear 3000 emails: # #$ clean_pop3 3000 | telnet popserver.net 110 username="user"; password="pass"; MAX_MESS=$1 [ $# -eq 0 ] && exit 1 || : sleep 2 echo USER $username sleep 1 echo PASS $password sleep 2 while [[ $MAX_MESS -gt 0 ]] do echo DELE $MAX_MESS sleep 1 (( MAX_MESS -= 1 )) done sleep 2 echo QUIT sleep 2 -- Frank Contact info: http://www.shute.org.uk/misc/contact.html