Skip to content

Commit 530311a

Browse files
committed
Copy custom dovecot config from conf-custom
1 parent 3ed6e17 commit 530311a

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,10 @@ public function configure_dovecot() {
15401540
} else {
15411541
copy('tpl/debian_dovecot2.conf.master', $config_dir.'/'.$configfile);
15421542
}
1543+
// Copy custom config file
1544+
if(is_file($conf['ispconfig_install_dir'].'/server/conf-custom/install/dovecot_custom.conf.master')) {
1545+
copy($conf['ispconfig_install_dir'].'/server/conf-custom/install/dovecot_custom.conf.master', $config_dir.'/conf.d/99-ispconfig-custom-config.conf');
1546+
}
15431547
replaceLine($config_dir.'/'.$configfile, 'postmaster_address = postmaster@example.com', 'postmaster_address = postmaster@'.$conf['hostname'], 1, 0);
15441548
replaceLine($config_dir.'/'.$configfile, 'postmaster_address = webmaster@localhost', 'postmaster_address = postmaster@'.$conf['hostname'], 1, 0);
15451549
if(version_compare($dovecot_version, 2.1, '<')) {

install/tpl/debian6_dovecot2.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ namespace inbox {
132132
special_use = \Trash
133133
}
134134
}
135-
!include_try conf.d/99-custom-config.conf
135+
!include_try conf.d/99-ispconfig-custom-config.conf

install/tpl/debian_dovecot2.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ plugin {
109109
quota_status_nouser = DUNNO
110110
quota_status_overquota = "552 5.2.2 Mailbox is full"
111111
}
112-
!include_try conf.d/99-custom-config.conf
112+
!include_try conf.d/99-ispconfig-custom-config.conf
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# You can use this file for custom Dovecot settings. The used settings will overrule the settings set by ISPConfig.
2+
# Use with caution!
3+
# Put this file in /usr/local/ispconfig/server/conf-custom/install/ and make your changes there.

install/tpl/fedora_dovecot2.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ namespace inbox {
126126
special_use = \Trash
127127
}
128128
}
129-
!include_try conf.d/99-custom-config.conf
129+
!include_try conf.d/99-ispconfig-custom-config.conf

0 commit comments

Comments
 (0)