Solved

mailbox size limitation in sendmail and RedHat Linux

Posted on 2002-07-18
3
640 Views
Last Modified: 2013-12-17
I am running sendmail in Redhat Linux 6.2, my question is how to set up mailbox size limitation for every user, like 5MB.
0
Comment
Question by:asp168
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:samri
ID: 7162329
asp168,

I doubt sendmail would have the facility to check the mailbox size.  Possible, maybe yes, but I would bet that would require a massive hacking to the sendmail source itself.

Another option would be placing user mailboxes on a dedicated filesystem, and implement userquota on that FS.  It would be possible.  However some experts would not recommend this approach.  But it should work.

Alternately, you can switch to other MTA.  What I can think of at the moment, would be Qmail (http://www.qmail.org/)

cheers.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 7164009
To implement a quota on a user's inbox you need to have a quota aware mail system. One possibility, that I use, is to use Cyrus IMAP for user access (IMAP/POP) to the inboxes. The Cyrus implementation provides a quota system that is mail safe. You can read more about the Cyrus at http://asg.web.cmu.edu/cyrus/.

Note that is is important to make sure that limits on a user's inbox are implemented in a 'mail safe' manner. Either you have to use an MTA that implements quota's, like samri suggests, or add something to sendmail, like Cyrus, that implements quota's in a safe manner. The problem with using ordinary file system quotas with sendmail is that by the time sendmail realizes that an inbound message exceeds the quota it's too late to bounce the message. Basically sendmail just sees a write error when it tries to place the message in the user's inbox. The other problem is in letting the user know that their inbox is near or over quota. Frequently users only have POP or IMAP access to their inbox. Neither of those protocols provide a means of notification of quota limits or current size of the inbox.
0
 
LVL 15

Expert Comment

by:samri
ID: 7164127
jlevie,

Now I remember that you did mentioned this several time on the previous topic.

asp168: The method proposed by jlevie is clean.

Still on the FS quota: (Jim can comment on this)
Another option would be having a scripts to minitor userquota on the mailbox FS, and inform user accordingly, and after that update the virtusertable or access file (whichever applicable) to reject mail with proper error message).

I think this might work -- with too (way too) much effort.


cheers.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question