cannot update mailbox /var/mail/xxx for user xxx. error writing message: File too large
[postfix]
Logwatchで表題のエラーメッセージが出ていた。
メールボックスのファイルサイズが大きくなりすぎて書き込めないらしい。
# ll -k /var/mail/xxx -rw-rw---- 1 xxx mail 50000 2月 14 10:10 xxx
50MBだった
マニュアルでメールボックスに関する設定が無いか確認してみる。
# man 5 postconf mailbox_size_limit (default: 51200000) The maximal size of any local(8) individual mailbox or maildir file, or zero (no limit). In fact, this limits the size of any file that is written to upon local delivery, including files written by external commands that are executed by the local(8) delivery agent.
デフォルトの上限値に達してしまっていたようだ。
増やすにはmain.cfに上記の設定を書き込んで再起動する
# vim /etc/postfix/main.cf mailbox_size_limit = 102400000