Adds postgrey in /var/mail-state - Fixes #514 (#515)

This commit is contained in:
Thomas VIAL 2017-02-09 17:05:36 +01:00 committed by GitHub
parent ef59fae8b3
commit 4189374cb5

View file

@ -957,7 +957,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/spamassasin /var/lib/fail2ban; do
for d in /var/spool/postfix /var/lib/postfix /var/lib/amavis /var/lib/clamav /var/lib/spamassasin /var/lib/fail2ban /var/lib/postgrey; do
dest=$statedir/`echo $d | sed -e 's/.var.//; s/\//-/g'`
if [ -d $dest ]; then
notify 'inf' " Destination $dest exists, linking $d to it"