瀏覽代碼

Log to mail.log, add postlogin script to give master user full permissions

andryyy 8 年之前
父節點
當前提交
33a0357634
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      data/conf/dovecot/dovecot.conf

+ 10 - 1
data/conf/dovecot/dovecot.conf

@@ -1,6 +1,6 @@
 auth_mechanisms = plain login
 auth_mechanisms = plain login
 #mail_debug = yes
 #mail_debug = yes
-log_path = /dev/stdout
+log_path = /var/log/mail.log
 disable_plaintext_auth = yes
 disable_plaintext_auth = yes
 # Uncomment on NFS share
 # Uncomment on NFS share
 #mmap_disable = yes
 #mmap_disable = yes
@@ -21,6 +21,7 @@ ssl_dh_parameters_length = 2048
 log_timestamp = "%Y-%m-%d %H:%M:%S "
 log_timestamp = "%Y-%m-%d %H:%M:%S "
 recipient_delimiter = +
 recipient_delimiter = +
 auth_master_user_separator = *
 auth_master_user_separator = *
+mail_prefetch_count = 30
 passdb {
 passdb {
   driver = passwd-file
   driver = passwd-file
   args = /etc/dovecot/dovecot-master.passwd
   args = /etc/dovecot/dovecot-master.passwd
@@ -182,6 +183,9 @@ service managesieve-login {
   process_min_avail = 2
   process_min_avail = 2
   vsz_limit = 128M
   vsz_limit = 128M
 }
 }
+service imap {
+  executable = imap imap-postlogin
+}
 service managesieve {
 service managesieve {
   process_limit = 256
   process_limit = 256
 }
 }
@@ -236,3 +240,8 @@ remote 127.0.0.1 {
 }
 }
 submission_host = postfix:588
 submission_host = postfix:588
 mail_max_userip_connections = 500
 mail_max_userip_connections = 500
+service imap-postlogin {
+  executable = script-login /usr/local/bin/postlogin.sh
+  unix_listener imap-postlogin {
+  }
+}