#1  
Old 5th November 2007, 16:55
Tripple Tripple is offline
Senior Member
 
Join Date: Jul 2007
Posts: 114
Thanks: 7
Thanked 3 Times in 3 Posts
Default Limit Mail Message

Can I add this line in /etc/postfix/main.cf to limit the Mail message size for all users:

message_size_limit = 5000

I'm asking this because I received a mail that some users are over there quota limit but I can't see this in there directory. Maybe someone received a large mail.
Reply With Quote
Sponsored Links
  #2  
Old 6th November 2007, 09:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
Default

Yes, this setting is to limit the max. message size for the whole server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th November 2007, 16:23
Tripple Tripple is offline
Senior Member
 
Join Date: Jul 2007
Posts: 114
Thanks: 7
Thanked 3 Times in 3 Posts
Default

Thanks.
However, I'm not sure this has anything to do with quota. I'm receiving this mail twice a day, 03:15 AM, 15:15PM.
Reply With Quote
  #4  
Old 6th November 2007, 16:38
AlArenal AlArenal is offline
Senior Member
 
Join Date: Feb 2007
Location: Germany
Posts: 104
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Tripple
Thanks.
However, I'm not sure this has anything to do with quota. I'm receiving this mail twice a day, 03:15 AM, 15:15PM.
Yes and no. The postfix limit has an effect on how big the mails may be, that you can send over the server. The quota message refers to available disk space which is affected by emails lying around in your users' maildirs as well as uploaded files in the userdirs, the main web dir, ...

These two issued are only losely coupled if at all.
Reply With Quote
  #5  
Old 6th November 2007, 17:12
Tripple Tripple is offline
Senior Member
 
Join Date: Jul 2007
Posts: 114
Thanks: 7
Thanked 3 Times in 3 Posts
Default

There must be a mistake in the calculation.
When I check the diskspace on that server:
# du -sh /var/www/web2/user/*
148K 2_bart
148K 2_boris
272K 2_jakob
148K 2_jasper
...

And here are some parts of the mail I receive twice a day:

The following users are near or already over their quota limit on server xxxxx:
================================================== =

Username: 2_jakob
Used Storage Space: 11.00 MB
Allocated Storage Space: 10.00 MB
----------------------------------------------------------------------------

Username: 2_jasper
Used Storage Space: 11.00 MB
Allocated Storage Space: 10.00 MB
----------------------------------------------------------------------------

Username: 2_bart
Used Storage Space: 11.00 MB
Allocated Storage Space: 10.00 MB
----------------------------------------------------------------------------

Username: 2_boris
Used Storage Space: 11.00 MB
Allocated Storage Space: 10.00 MB
----------------------------------------------------------------------------

etc....
Reply With Quote
  #6  
Old 6th November 2007, 17:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,258 Times in 4,122 Posts
Default

To get the quota value of a user, run:

repquota -avug

You looked just at the users home directory, but a user may have files in other places, e.g. /tmp/ or /var/spool/mail/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 6th November 2007, 17:36
Tripple Tripple is offline
Senior Member
 
Join Date: Jul 2007
Posts: 114
Thanks: 7
Thanked 3 Times in 3 Posts
 
Default

Indeed:
2_jasper +- 11264 10240 11264 5days 17 0 0

/tmp/
drwx------ 2 2_jasper web2 4096 2007-11-06 05:05 clamav-33b9b38a47ced4a1ed04311e39b22a9c

Only 5MB, mail is empty.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
postfix-tls sasl2 mysql courier-authmysql gabrix Server Operation 4 12th January 2007 22:09
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 13:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.