Skip to content

Commit 5e7306a

Browse files
author
Till Brehm
committed
Fixed: FS#3032 - dovecot: master: Warning: /var/www/clients/client20/web36/log is no longer mounted. If this is inten
1 parent 8216fc7 commit 5e7306a

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function configure_dovecot()
9191
} else {
9292
copy('tpl/debian6_dovecot2.conf.master', $config_dir.'/'.$configfile);
9393
}
94+
replaceLine($config_dir.'/'.$configfile, 'postmaster_address = postmaster@example.com', 'postmaster_address = postmaster@'.$conf['hostname'], 1, 0);
9495
} else {
9596
if(is_file($conf['ispconfig_install_dir'].'/server/conf-custom/install/debian6_dovecot.conf.master')) {
9697
copy($conf['ispconfig_install_dir'].'/server/conf-custom/install/debian6_dovecot.conf.master', $config_dir.'/'.$configfile);
@@ -115,6 +116,9 @@ public function configure_dovecot()
115116
chmod($config_dir.'/'.$configfile, 0600);
116117
chown($config_dir.'/'.$configfile, 'root');
117118
chgrp($config_dir.'/'.$configfile, 'root');
119+
120+
// Dovecot shall ignore mounts in website directory
121+
exec("doveadm mount add '/var/www/*' ignore");
118122

119123
}
120124

install/dist/lib/fedora.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,9 @@ public function configure_dovecot()
448448

449449
exec("chmod 600 $config_dir/$configfile");
450450
exec("chown root:root $config_dir/$configfile");
451+
452+
// Dovecot shall ignore mounts in website directory
453+
exec("doveadm mount add '/var/www/*' ignore");
451454

452455
}
453456

install/dist/lib/opensuse.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ public function configure_dovecot()
483483

484484
exec("chmod 600 $config_dir/$configfile");
485485
exec("chown root:root $config_dir/$configfile");
486+
487+
// Dovecot shall ignore mounts in website directory
488+
exec("doveadm mount add '/srv/www/*' ignore");
486489

487490
}
488491

install/lib/installer_base.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,9 @@ public function configure_dovecot() {
996996
chmod($config_dir.'/'.$configfile, 0600);
997997
chown($config_dir.'/'.$configfile, 'root');
998998
chgrp($config_dir.'/'.$configfile, 'root');
999+
1000+
// Dovecot shall ignore mounts in website directory
1001+
exec("doveadm mount add '/var/www/*' ignore");
9991002

10001003
}
10011004

0 commit comments

Comments
 (0)