?
Solved

Setting mail file limit

Posted on 2003-12-10
6
Medium Priority
?
364 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
Technology Partners: 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 750 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 Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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…
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.
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

850 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