MENU

宝塔邮局 优化配置文件

September 28, 2023 • 已被 358 位童鞋围观过 • 新手笔记

关闭 邮件过滤

Dovecot 添加部分参数

service imap {
  client_limit = 2048
} 

service pop3 {
  client_limit = 2048
}

## Optimization for imap processes  
service imap-login {
  process_min_avail = 10
  vsz_limit = 256M   
}
 
service imap {
  process_min_avail = 200
}

Postfix修改一下配置

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_use_tls = yes
smtp_tls_security_level = none
smtpd_client_connection_count_limit = 50
default_process_limit = 500
qmgr_message_active_limit = 10000 
smtpd_tls_security_level = none
virtual_transport = lmtp:unix:private/dovecot-lmtp
message_size_limit = 102400000

仅作为参考。