#1  
Old 21st May 2010, 02:06
cozened cozened is offline
Junior Member
 
Join Date: Nov 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default Accepting larger mail

Good day,

I simply cant find anything about this, where do I configure the limit of files / mails the system accepts? (using ISPConfig 3 on Debian Lenny)

Users are complaining about this so I need to make the limit bigger.

What generally are people using for there customers?

With best regards
Tómas
Reply With Quote
Sponsored Links
  #2  
Old 21st May 2010, 14:50
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

First read out the value of your current message_size_limit with the command postconf | grep message_size_limit

If needed, you can change the value of message_size_limit by editing the postfix configuration file /etc/postfix/main.cf.
TWo examples:

Code:
#Accept maximum 10MB:
message_size_limit = 10240000
Code:
#Unlimited:
message_size_limit = 0
After changing your postfix configuration file, you reload postfix:
/etc/init.d/postfix reload

If you have a webmail client installed on your server and you want to send bigger attachments with it, also change the values of post_max_size & upload_max_filesize in your php.ini file.

Example:

Code:
; Maximum size of POST data that PHP will accept.
post_max_size = 10M

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M

After changing your php.ini file, reload apache with:
/etc/init.d/apache2 reload
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 21st May 2010 at 14:58.
Reply With Quote
The Following User Says Thank You to Hans For This Useful Post:
cozened (21st May 2010)
  #3  
Old 22nd May 2010, 00:25
cozened cozened is offline
Junior Member
 
Join Date: Nov 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you Hans.

I could grep the size limit , and it was 10240000 but I could not see it in the mail.cf file itself so I just put a line there "messages_size_limit = 0" and reload it.

Grep it again and it said it was 0 so now I'm trying to send a 100mb file (realy extreme I know but just trying )

Just so other people will know if they wanna do this , if the line is missing you just add it to the main.cf file

The php settings where something I needed aswell except I found the php.ini file in /etc/php5/apache2/php.ini and changed there those values but I stil cant to seem to see the change in roundcube (by trying to upload a file)

Is that the right config file or ?

with best regards
Tómas
Reply With Quote
  #4  
Old 22nd May 2010, 07:23
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

The default size limit for Postfix is 10MB, so you only need to define a value for "messages_size_limit" if it is different then 10 MB.

Depending on which php mode you're using.
You can also increase the value for post_max_size & upload_max_filesize within the files /etc/php5/cgi/php.ini and /etc/php5/cli/php.ini. Of course if your website uses its own php.ini file, you have to make you're modifications there.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 22nd May 2010 at 07:26.
Reply With Quote
  #5  
Old 27th May 2010, 03:33
cozened cozened is offline
Junior Member
 
Join Date: Nov 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Hi Hans,

Thank you! that did the trick

now everything is working smoothly, thanks again!

best regards
Tómas
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 problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27
Postfix + postfixadmin = SMTP errors... Rashef Server Operation 4 25th June 2009 16:12
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16


All times are GMT +2. The time now is 10:35.


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