Solved

Setting mail file limit

Posted on 2003-12-10
6
355 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
[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
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Independent Software Vendors: 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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.

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