From e6c32a03e5eeb7885cb2ceb4d8d6b6157c017d69 Mon Sep 17 00:00:00 2001 From: Benedict Endemann Date: Fri, 9 Mar 2018 19:46:49 +0100 Subject: [PATCH] Add /var/lib/dovecot to mailstate persistence (Closes: #887) Added `/var/lib/dovecot/` to the list of folders that get persisted in `mailstate`. So the creation of `ssl-parameters.dat` has not to be done every restart again. This may only take some dozen seconds, but can be very long on systems with high load. --- target/start-mailserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 9b7b1336..76ba2e0a 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -1175,7 +1175,7 @@ function _misc_save_states() { statedir=/var/mail-state if [ "$ONE_DIR" = 1 -a -d $statedir ]; then notify 'inf' "Consolidating all state onto $statedir" - for d in /var/spool/postfix /var/lib/postfix /var/lib/amavis /var/lib/clamav /var/lib/spamassassin /var/lib/fail2ban /var/lib/postgrey; do + for d in /var/spool/postfix /var/lib/postfix /var/lib/amavis /var/lib/clamav /var/lib/spamassassin /var/lib/fail2ban /var/lib/postgrey /var/lib/dovecot; do dest=$statedir/`echo $d | sed -e 's/.var.//; s/\//-/g'` if [ -d $dest ]; then notify 'inf' " Destination $dest exists, linking $d to it"