LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2010, 12:19 AM   #1
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15
check for large user mail boxes


Hi!

I have searched for at least 1h for this to find but I didn't found anywhere how can I do to check for large email mail boxes. I run qmail as mail service.

Thank you!
 
Old 06-14-2010, 12:24 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Last time I checked qmail was an MTA; w/o knowing how your
users access their mail, or in which way qmail delivers it
to them there's no pointer for you. Sorry.


Cheers,
Tink
 
Old 06-14-2010, 12:46 AM   #3
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks Tinkster!

Could you give me some suggestions of how should I check my qmail configuration ? I think it uses maildir.
I really don't know much about this MTA, I only worked with Postfix and Sendmail.
I just need to check the size of users mail boxes.
 
Old 06-14-2010, 03:22 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

To find out what method qmail uses to deliver mail, run
Code:
cat /var/qmail/control/defaultdelivery
Regards
 
Old 06-14-2010, 03:34 AM   #5
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
OK, so I have found that 'cur' file has 59GB. How can I check which user has the most many/large emails ? And there is any way of deleting messages for one or more users ?
 
Old 06-14-2010, 04:05 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
According to Maildir specifications, every user has a cur toplevel directory (not file) . Actually this is his INBOX and then there are .Sent/cur .Trash/cur .Drafts/cur and so on
So if you have a cur directory that is 59G it must belong to a specific user, so the absolute path to it should tell you who is the user.
There is a python script that you can use to delete mails from IMAP folders.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't get Postfix mail boxes from /var/mail to ~/Maildir phillinux Linux - Server 7 08-23-2015 08:41 AM
How can I trace user's web surfing & delete large mail sent by the user by? mostafaashish Linux - Networking 4 08-07-2009 08:43 AM
Looking after how to check the boxes to get updates. Kristoffer G Mandriva 1 05-23-2009 05:02 AM
Mail server - setup virtual mail boxes satimis Linux - Server 1 02-10-2007 10:40 AM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration