LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-29-2003, 02:18 AM   #1
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
Limit amount of emails on server


I have this mail server available to my friends at campus. It works fine until recently I've noticed that its performance degraded considerable - I traced the problem, and it was due to the large amount of emails left on the server. The users of my mail server tend to leave the emails on the server after reading them and this will eventually hog the system - imagine a scenario which actually happened of a user leaving nearly 2,000 msgs on his mailbox and whenever he tries to access them, the entire server slows down to death!

How can i solve the problem? My idea is to restrict the size of the total emails left on the server to approx. 30MB and whenever a user approaches the limit, he is sent a notification via email to remove them. When the user exceeds the limit, the new incoming emails will wither replace the new ones on the server, or simply "rejected". Any programs available?

PS: I use sendmail.
 
Old 07-29-2003, 02:45 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Are we talkin pop or imap?
 
Old 07-29-2003, 02:49 AM   #3
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
POP...
 
Old 07-29-2003, 03:44 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Hmm Virtual or real users?

Have you looked into using quotas yet? As far as the auto email thing, I'll hunt around to see if I can find anything on that. A script writer around here would surely be able to bust something out for you in a jiffy, but unfortunately I'm not one of them

Cool
 
Old 07-29-2003, 04:24 AM   #5
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Ok let's leave the auto-email aside for the moment

What about the quota? How can i implement it in my mail server?
 
Old 07-30-2003, 04:53 AM   #6
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Seems like nobody ever tried it? I presume i must use the "edquota" but i'm still lost...
 
Old 07-30-2003, 08:48 AM   #7
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Clean Mail

Above seems to be the kind of thing you're looking for, give it a good read over.
 
Old 07-30-2003, 11:21 AM   #8
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Hey Looking_Lost thanks for the link. YES it seems what i've been searching...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I limit the amount of processes a user can run? houler Slackware 26 04-04-2005 08:02 PM
abnormal amount of log emails guitarman85281 Linux - Software 0 09-04-2004 05:45 AM
Is it possible to limit the amount of characters on members' profile? Mega Man X LQ Suggestions & Feedback 9 05-16-2004 01:46 PM
limit the amount of bandwidth used by certain protocols chrisfirestar Linux - Networking 4 03-22-2004 09:12 PM
Limit the amount of login attempts to machine jester_69 Linux - Security 4 10-14-2003 02:35 PM


All times are GMT -5. The time now is 06:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration