Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Error writing messa ge: File too large

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

When 1 postfix is used as a mail server, of course, virtual users are not applied here, and users can only send Email but cannot accept Email. The following appears in its log

Cannot update mailbox / var/mail/root for user root. Error writing message: File too large

2 the main reason for this problem is that in the postfix configuration file main.cf.default

Mailbox_size_limit = 51200000 (50m)

That is to say, when the size of the user's corresponding / var/mail/USERNAME file cannot exceed 50m, if it exceeds this value, it may be unacceptable that it can only be sent.

3 solution

The first method is to empty the user's corresponding file, of course, you can also create a script to automatically empty the corresponding file.

Echo "" > / var/mail/USERNAME

The second way is to reset the corresponding in the postfix main.cf.default configuration file

Mailbox_size_limit=51200000

Modify to

Mailbox_size_limit=0

When the value is changed to zero, there is no limit.

4 when you finish modifying the postfix maincf.deafault configuration file, you need to reload postfix

# service postfix reload

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report