Solved

mailbox size limitation in sendmail and RedHat Linux

Posted on 2002-07-18
3
632 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Microsoft Outlook is not just an email client but it is full featured Personal Information Manager. But sometimes Outlook gets disconnected and you simply can’t access it. What steps can you perform before calling IT support? In this article we will…
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now