In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Cannot update mailbox / var/mail/root for user root. Error writing messa
Ge: File too large
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 it.
The problem with Email appears in its log as follows
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, only
Send an unacceptable situation
3 solution
The first method is to empty the user's corresponding file, of course, you can also create a script to automatically clear it.
Empty 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
View postfix settings:
[root@mail ~] # postconf-n | grep limit
Default_process_limit = 100
Mailbox_size_limit = 0
Message_size_limit = 20480000
Smtpd_hard_error_limit = 999
Smtpd_soft_error_limit = 999
Mailbox_size is also limited in size. But how can fetching be banned when it exceeds 2G?
Baidu learned of a way to modify the postfix main configuration file main.cf
Mailbox_command = / usr/bin/procmail-Y-a $DOMAIN
Reimport the configuration file. It was a success to receive the mail again.
-Y Berkeley format mailbox, disregard Content-Length:
-an argument will set $1, $2, etc
It used to be able to send and receive, but after a period of time, you need to delete the files under / var/amavis/tmp manually (somehow you can't delete them automatically).
Except), now there is a sudden problem. I used to be able to send and receive, but I just need to delete / var/amavis/tmp the text below by hand after a period of time.
Item (somehow cannot be deleted automatically), now there is a sudden problem
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.