diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 6188b3970818fdb87d62eaa678f5e71e260c63af..248fcd66c44685c5008389f4e7d16f36ab4bf207 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -1182,8 +1182,8 @@ class installer_base {
 		    $content = strtr($content, $postconf_placeholders);
 		    $postconf_commands = array_merge($postconf_commands, array_filter(explode("\n", $content)));
 		}
-		if(file_exists($conf['ispconfig_install_dir'].'/server/conf-custom/install/postfix_custom.conf.master')) {
-			$configfile = 'postfix_custom.conf';
+		$configfile = 'postfix_custom.conf';
+		if(file_exists($conf['ispconfig_install_dir'].'/server/conf-custom/install/' . $configfile . '.master')) {
 			$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/'.$configfile.'.master');
 			$content = strtr($content, $postconf_placeholders);
 			$postconf_commands = array_merge($postconf_commands, array_filter(explode("\n", $content)));