?
Solved

mailbox size limitation in sendmail and RedHat Linux

Posted on 2002-07-18
3
Medium Priority
?
646 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 200 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

765 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