#1  
Old 20th February 2008, 16:25
dayjahone dayjahone is offline
Senior Member
 
Join Date: Jan 2007
Posts: 421
Thanks: 31
Thanked 0 Times in 0 Posts
Default Limit email size

How do I limit the size of emails that can be sent?

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2008, 08:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

In postfix main.cf set:

message_size_limit = 200000000

The number is the max. allowed message size in bytes.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd February 2008, 01:51
dayjahone dayjahone is offline
Senior Member
 
Join Date: Jan 2007
Posts: 421
Thanks: 31
Thanked 0 Times in 0 Posts
Default

That thread doesn't exist in the file. I'm guess that means I have no limit. If I add "message_size_limit = 5000000" to the end of the long list (after "tls_random_source = dev:/dev/urandom"), it will limit emails to 5MB?

Thanks.
Reply With Quote
  #4  
Old 22nd February 2008, 11:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Yes, this should work.

Most likely there is already a limit set at the moment, as postfix uses default values in case a value is not set in main.cf. To get the current limit, run:

postconf | grep message_size_limit
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 23rd February 2008, 21:06
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
 
Default

The more elegant way would be

Code:
postconf -e message_size_limit=5000000
postconf will add the setting or alter the existing one if it exists
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
Message size limit zaqavis Server Operation 4 26th February 2008 19:36
Limit the size of email sent shawnbishop General 1 9th February 2008 18:30
Changing Email Attachment size limit grandpagenocide General 1 23rd September 2007 17:29
file size limit exceeded lifeisboost General 10 1st August 2006 10:51
How to send email to Mbox owner when exceed space limit rdells Installation/Configuration 1 13th April 2006 11:22


All times are GMT +2. The time now is 23:08.


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