From 33a035763423e53d1482bf95886c19e805b447f2 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 12 Jan 2017 20:15:05 +0100 Subject: [PATCH] Log to mail.log, add postlogin script to give master user full permissions --- data/conf/dovecot/dovecot.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/data/conf/dovecot/dovecot.conf b/data/conf/dovecot/dovecot.conf index 9b299847..0565b99e 100644 --- a/data/conf/dovecot/dovecot.conf +++ b/data/conf/dovecot/dovecot.conf @@ -1,6 +1,6 @@ auth_mechanisms = plain login #mail_debug = yes -log_path = /dev/stdout +log_path = /var/log/mail.log disable_plaintext_auth = yes # Uncomment on NFS share #mmap_disable = yes @@ -21,6 +21,7 @@ ssl_dh_parameters_length = 2048 log_timestamp = "%Y-%m-%d %H:%M:%S " recipient_delimiter = + auth_master_user_separator = * +mail_prefetch_count = 30 passdb { driver = passwd-file args = /etc/dovecot/dovecot-master.passwd @@ -182,6 +183,9 @@ service managesieve-login { process_min_avail = 2 vsz_limit = 128M } +service imap { + executable = imap imap-postlogin +} service managesieve { process_limit = 256 } @@ -236,3 +240,8 @@ remote 127.0.0.1 { } submission_host = postfix:588 mail_max_userip_connections = 500 +service imap-postlogin { + executable = script-login /usr/local/bin/postlogin.sh + unix_listener imap-postlogin { + } +}