问题:dovecot并发数造成foxmail、outlook等客户端工具接收邮件有时候报错,关闭客户端工具后又可以了。
/var/log/maillog日志有大量的报错:
mail dovecot: imap(fasong@test.net): Error: Raw backtrace: /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(+0x698da) [0x7ff093ecd8da] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(+0x69946) [0x7ff093ecd946] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ff093e8664d] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(+0x7ed81) [0x7ff093ee2d81] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(+0x7edbb) [0x7ff093ee2dbb] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(p_strdup+0x3e) [0x7ff093ef00ee] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(maildir_uidlist_refresh+0x7f0) [0x7ff09418b3f0] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(+0x53b19) [0x7ff09418ab19] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(maildir_uidlist_sync_init+0x4d) [0x7ff09418ba4d] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(+0x4f13d) [0x7ff09418613d] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(+0x4f673) [0x7ff094186673] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(maildir_storage_sync_init+0xd9) [0x7ff094186919] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x31)
[0x7ff0941b4561] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x27) [0x7ff0941b55e7] -> dovecot/imap(cmd_select_full+0x183) [0x4118d3] ->
dovecot/imap(command_exec+0x3d) [0x416fbd] -> dovecot/imap() [0x4160d0] -> dovecot/imap() [0x4161bd] -> dovecot/imap(client_handle_input+0x11d) [0x41643d] -> dovecot/imap(client_input+0x6f) [0x4167af] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x4e) [0x7ff093eddbfe] -> /usr/local/kkmail/service/dovecot/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xa7) [0x7ff093eded67] ->
/usr/local/kkmail/service/dovecot/lib/dovecot/lib
mail dovecot: imap(fasong@test.net): Fatal: master: service(imap): child 19713 returned error 83 (Out of memory (service imap { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)
解决:这是某个邮箱造成imap崩溃,提示不够内存。更改配置文件dovecot.conf,加一行vsz_limit = 1024MB
1
2
3
4
5
6
|
service imap {
process_limit = 2048
vsz_limit = 1024MB
}
备注:POP3如果有需要,也可以加这个。
|
重启dovecot服务。
本文转自 sailikung 51CTO博客,原文链接:http://blog.51cto.com/net881004/2064980,如需转载请自行联系原作者