2010年2月17日

SquirrelMailの添付ファイルサイズ制限

SquirrelMailでメールを送ろうとして, 添付ファイルのサイズ制限に引っかかった.
なんでデフォルトで2MBやねん.

ということで, ちこっと調べたのでメモ.

http://devenix.wordpress.com/2007/11/20/increasing-squirrelmail-maximum-attachment-size/

  1. Locate your php.ini.
  2. open file is some editor.
  3. Search for upload_max_filesize.
  4. Change 2M to something else, for example 5M.
  5. If the upload_max_filesize is larger than post_max_size, you must increase post_max_size so that it's bigger than upload_max_size
  6. If the value of post_max_size is larger than memory_limit, you must increase memory_limit so that it's larger than post_max_size.
  7. Save your changes to the file.
  8. Restart your apache web server.

と言うことです.
うちのgentooでは, /etc/php/apache2-php5/php.iniを変更しました.

SquirrelMailの公式サイト http://squirrelmail.org/wiki/AttachmentSize では, php.ini以外にも


  • ApacheのLimitRequestBodyディレクティブ

  • SquidのIn request_body_max_size, request_size

  • Postfixの/etc/postfix/main.cf内のmessage_size_limit


で制限されることがかかれていた.

コメントする