Solved

Setting mail file limit

Posted on 2003-12-10
6
354 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
Industry Leaders: 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!

 

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

Suggested Solutions

Title # Comments Views Activity
Java core in Solaris 10 1 314
Correct syntax to upload file in a script using sftp 2 98
remove one line from a file in solaris 8 59
Shell Script- gzip 5 50
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

730 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