From b92c60a87f96648f1db88669a66c7eebd0a147f0 Mon Sep 17 00:00:00 2001
From: Ales Seifert <seifert@alesak.net>
Date: Sun, 24 Nov 2019 15:29:26 +1100
Subject: [PATCH] FIXES bug mysql-virtual_outgoing_bcc.cf table is not
 configured with correct DB server host when postfix configuration is updated
 during ISPConfig installation or update

---
 install/tpl/mysql-virtual_outgoing_bcc.cf        | 2 +-
 install/tpl/mysql-virtual_outgoing_bcc.cf.master | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/install/tpl/mysql-virtual_outgoing_bcc.cf b/install/tpl/mysql-virtual_outgoing_bcc.cf
index dfeb04b553..78fca41a2f 100644
--- a/install/tpl/mysql-virtual_outgoing_bcc.cf
+++ b/install/tpl/mysql-virtual_outgoing_bcc.cf
@@ -5,4 +5,4 @@ table = mail_user
 select_field = sender_cc
 where_field = email
 additional_conditions = and postfix = 'y' and disabledeliver = 'n' and disables$
-hosts = 127.0.0.1
\ No newline at end of file
+hosts = {mysql_server_ip}
\ No newline at end of file
diff --git a/install/tpl/mysql-virtual_outgoing_bcc.cf.master b/install/tpl/mysql-virtual_outgoing_bcc.cf.master
index af062f66b2..53afa53106 100644
--- a/install/tpl/mysql-virtual_outgoing_bcc.cf.master
+++ b/install/tpl/mysql-virtual_outgoing_bcc.cf.master
@@ -5,4 +5,4 @@ table = mail_user
 select_field = sender_cc
 where_field = email
 additional_conditions = and postfix = 'y' and disabledeliver = 'n' and disablesmtp = 'n' and sender_cc != ''
-hosts = 127.0.0.1
\ No newline at end of file
+hosts = {mysql_server_ip}
\ No newline at end of file
-- 
GitLab