iRedMail - 修改附件大小

需求:iRedMail-0.9.9,nginx和centOS7环境。需通过邮件发送的附件增加到200M。

步骤:

1.先修改 postfix 的值:

postconf -e message_size_limit='254857600'
postconf -e mailbox_size_limit='254857600'

2.systemctl restart posfix # 重启postfix服务

3.修改php.ini的几个参数: /etc/php.ini

memory_limit = 1250M;
upload_max_filesize = 250M;
post_max_size = 250M;
max_input_time = 900
max_execution_time = 900

4.systemctl restart php-fpm # 重启php-fpm进程

5.修改nginx的参数:/etc/nginx/conf-enabled/client_max_body_size.conf
client_max_body_size 250m;

6.systemctl restart nginx # 重启nginx服务

参考:https://docs.iredmail.org/change.mail.attachment.size-zh_CN.html

标签: iredmail

添加新评论