Solved

Setting mail file limit

Posted on 2003-12-10
6
351 Views
Last Modified: 2013-12-27
Located in /var/mail I have a mailbox file that likes to out of control when it comes to file size. At one point it was reaching into the 2gig area and ended up taking away all my free blocks preventing package installs.

My question, is there a way of placing block or filesize limit on individual mailboxes? I have checked into the sendmail settings and found MinFreeBlock but even set to the default 100 it didn't seem to prevent the one mail box from taking up all the free blocks on the drive. So I'm wondering if there is not another way I can focus just on control of single mailbox usage?
0
Comment
Question by:LordJR
  • 4
  • 2
6 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9917969
have u checked the quota.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9917980
for more info.
-------------------
man repquota
man edquota
man quota
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9917992
if u want u can set up a limit to individual message to.
-------------------------
You can configure sendmail to limit the size of the message using the option MaxMessageSize, in /etc/sendmail.cf look for a line that looks like

O MaxMessageSize=1000000

or something like it, if it does not exist, add it and restart sendmail, the size is defined in bytes.

this will limit the size of the WHOLE message, not the attachement, but this is as close as you will get to
limiting the size of mails.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:LordJR
ID: 9923835
The quota stuff is interesting but I found it more related to fs usage than mail box commands. And I know about MaxMessageSize but if the mailbox were to get 10000 1mb messages it wouldn't do me much good to try reduce that. Is there not another setting in sendmail.cf that can limit the amount of blocks a mail file can use?
0
 
LVL 24

Accepted Solution

by:
shivsa earned 250 total points
ID: 9924024
No. there is no setting which can allow u to set mailbox limit sizes AFAIK.

Sendmail has no concept of mailboxes, since it is a Mail Transfer Agent, it function towards the Transfer part of it, and leaves all local aspects of the mail delivery process (like mailbox size) to the local delivery system. sendmail application ais not quota aware.

This is a very simple script that has no limiting function, so any limit percieved is due to quota/physical storage limits for the user.
u might consider  procmail/Cyrus to setup to be the local delivery system, and there might be some "limits" enforced through a systemwide /etc/procmailrc.

For issues with mailbox size,  you need to change the user quota relating to how much disk space they are allowed to use on the system.

This question has been asked many times. u may check this link also
http://www.experts-exchange.com/Operating_Systems/Linux/Q_10318592.html
0
 

Author Comment

by:LordJR
ID: 9925973
Thanks shivsa.. I guess that answers my question but doesn't really solve my problem. I'll see if I can do something with quota to resolve this.
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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 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

23 Experts available now in Live!

Get 1:1 Help Now