Solved

mailbox size limitation in sendmail and RedHat Linux

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

856 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