From fac8477ba1f7528ba43de7ac78eba4817a9e4906 Mon Sep 17 00:00:00 2001 From: Chris Blankenship Date: Tue, 26 Apr 2016 10:49:25 -0700 Subject: [PATCH] Configured Dovecot to log into its own logfile --- conf/fail2ban/jail.local | 1 + setup/mail-dovecot.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/fail2ban/jail.local b/conf/fail2ban/jail.local index cc741c80..dc338803 100644 --- a/conf/fail2ban/jail.local +++ b/conf/fail2ban/jail.local @@ -23,6 +23,7 @@ enabled = true filter = dovecotimap findtime = 30 maxretry = 20 +logpath = /var/log/mail.log [recidive] enabled = true diff --git a/setup/mail-dovecot.sh b/setup/mail-dovecot.sh index e4fbf16f..2c5533ec 100755 --- a/setup/mail-dovecot.sh +++ b/setup/mail-dovecot.sh @@ -38,7 +38,8 @@ apt_install \ # would be 20 users). Set it to 250 times the number of cores this # machine has, so on a two-core machine that's 500 processes/100 users). tools/editconf.py /etc/dovecot/conf.d/10-master.conf \ - default_process_limit=$(echo "`nproc` * 250" | bc) + default_process_limit=$(echo "`nproc` * 250" | bc) \ + log_path=/var/log/mail.log # The inotify `max_user_instances` default is 128, which constrains # the total number of watched (IMAP IDLE push) folders by open connections.