Hi Guys,
Just installed and configured Postfix+Dovecot+squirrelmail on SUSE10.3, how do i set the attachement limit to like 50MB?
i have tried to change the ‘message_size_limit’ parameter but that hasn’t changed anything.
Any help would be Appreciated.
nellyneils wrote:
> Just configured and installed and configured
> Postfix+Dovecot+squirrelmail on SUSE10.3, how do i set the attachement
> limit to like 50MB?
> i have tried to change the ‘message_size_limit’ parameter but that
> hasn’t changed anything.
That setting should indeed work as you expect. Well, this value sets the
limits for the size of the whole message (incl. attachments).
message_size_limit = 52430000
And then, reload the server (rcpostfix reload). This will disallow users to
sending messages greater that ~50 MB.
Greetings,
–
Camaleón
That setting should indeed work as you expect. Well, this value sets the
limits for the size of the whole message (incl. attachments).
***
message_size_limit = 52430000
***
And then, reload the server (rcpostfix reload). This will disallow users to
sending messages greater that ~50 MB.
Hi,
i’ve tried changing that value several times but the limit has remained at 2MB.
actually here is my value
message_size_limit = 20480000000
It has completely refused to extend the limit!
If you have two settings of that parameter in main.cf the last one wins. To check what is the actual value, do:
/usr/sbin/postconf | grep message_size_limit
Also external mail servers may set their own limits so your limit may only be useful for internal mail.
PS: Don’t you think a 20GB limit is rather excessive? It may be more disk space than you have and take forever to transfer. I’m not even sure postfix can handle file > 2GB or 4GB.
Hi
i’vet tried changing to 20480000 which should be 20MB but there is no change still, i have restarted over and over but doesn’t seem to work! any idea
Output of /usr/sbin/postconf | grep message_size_limit
mail:/etc/dovecot # /usr/sbin/postconf | grep message_size_limit
message_size_limit = 20480000
nellyneils wrote:
> i’vet tried changing to 20480000 which should be 20MB but there is no
> change still, i have restarted over and over but doesn’t seem to work!
> any idea
> Output of /usr/sbin/postconf | grep message_size_limit
>> mail:/etc/dovecot # /usr/sbin/postconf | grep message_size_limit
>> message_size_limit = 20480000
Can you copy/paste the error message you are getting from postfix logs when
sending big attachments?
Greetings,
–
Camaleón
Hi there,
From my Webmail interface (squirrelmail), when i attach an attachment bigger than 2MB it refuses to attach it giving me this error
Could not move/copy file. File not attached
Anything less than 2MB is attached very well and sent without problems.
nellyneils wrote:
> From my Webmail interface (squirrelmail), when i attach an
> attachment bigger than 2MB it refuses to attach it giving me this error >
> Could not move/copy file. File not attached Anything less than 2MB is
> attached very well and sent without problems.
Oh, well, that has nothing to do with Postfix then
AttachmentSize
http://tinyurl.com/l8cb7v
THT
Greetings,
–
Camaleón
That’s due to the PHP upload limit affecting squirrelmail.
Hi guys, i finally nailed it. it was a PHP config.
the php.ini file in
/etc/php5/apache2/ini
limits the attachments to 8MB and by default its 2MB. if you try to set that parameter to a figure bigger than 8MB, it will ignore it which really frustrated me badly, but after digging and following you guy’s links i finally learnt that i could create a php.ini file which could override the original one.
post_max_size = 50M
upload_max_filesize = 40M
max_execution_time = 900
memory_limit = 30M
i did that, backed up my original file and replaced it with this, i restarted postfix, apache2 and dovecot, and i tried attaching files. it was cool.
Thank you Guys, without You, the world would really b Bleak;
God Bless.
Just so you and others know, this can be done for squirrelmail only and not all PHP apps by changing the values in /etc/apache2/conf.d/squirrelmail.conf like this:
php_admin_value post_max_size “50M”
…