Solved

Setting mail file limit

Posted on 2003-12-10
6
352 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

920 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

16 Experts available now in Live!

Get 1:1 Help Now