error writing messa ge: File too large

简介:

1 postfix 作为邮件服务器时,当然这里应用的不是虚拟用户,出现用户只能发送Email 而不能接受Email 的问题,在其日志中出现如下


cannot update mailbox /var/mail/root for user root. error writing message: File too large


2  该问题主要原因是因为在postfix配置文件main.cf.default


mailbox_size_limit = 51200000(50M)


也就是说当用户的对应的/var/mail/USERNAME 文件的大小不能超过50M 如果超出该值时可能会出现只能发送不能接受的情况,


3 解决办法


第一种方法, 是清空用户对应的文件,当然也可以创建一个脚本,让其自动                      清空对应的文件


echo “”>/var/mail/USERNAME


第二种方法,是重新设置 postfix main.cf.default 配置文件中对应


mailbox_size_limit=51200000


修改为


mailbox_size_limit=0


把值改为零的情况下,就是不限制


4  在修改完postfix maincf.deafault 配置文件时,需要重新加载postfix


#service  postfix  reload



本文转自 32氪 51CTO博客,原文链接:http://blog.51cto.com/10672221/1950341
相关文章
|
5天前
|
Docker 容器
devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free dat
devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free dat
9 0
|
10月前
error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
198 0
error while loading shared libraries: libxx.so: cannot open shared object file: No such file
error while loading shared libraries: libxx.so: cannot open shared object file: No such file
84 0
|
开发工具 Android开发
unable to write jarlist cache file
unable to write jarlist cache file
77 0
【问题】Log writing failed, No space left on device @ io_write - /mnt/project/log/development.log
【问题】Log writing failed, No space left on device @ io_write - /mnt/project/log/development.log
143 0
【问题】Log writing failed, No space left on device @ io_write - /mnt/project/log/development.log
|
缓存 Java 关系型数据库
关于page Cache和memory mappped Files 和zero copy
关于page Cache和memory mappped Files 和zero copy
142 0
关于page Cache和memory mappped Files 和zero copy
|
Unix Shell Linux