Skip to content

Commit d8a8b1b

Browse files
author
gau1991
committed
Some config changes in postfix
1 parent e2cea7e commit d8a8b1b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ee/cli/plugins/stack.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def post_pref(self, apt_packages, packages):
466466
"/dovecot.pem")
467467

468468
# Custom Dovecot configuration by EasyEngine
469-
data = dict()
469+
data = dict(email=EEVariables.ee_email)
470470
Log.debug(self, "Writting configuration into file"
471471
"/etc/dovecot/conf.d/99-ee.conf ")
472472
ee_dovecot = open('/etc/dovecot/conf.d/99-ee.conf', 'w')
@@ -789,7 +789,13 @@ def post_pref(self, apt_packages, packages):
789789
Log.debug(self, "Creating directory "
790790
"/etc/postfix/mysql/")
791791
os.makedirs('/etc/postfix/mysql/')
792-
data = dict(password=vm_passwd, host=EEVariables.ee_mysql_host)
792+
793+
if EEVariables.ee_mysql_host is "localhost":
794+
data = dict(password=vm_passwd, host="127.0.0.1")
795+
else:
796+
data = dict(password=vm_passwd,
797+
host=EEVariables.ee_mysql_host)
798+
793799
vm_config = open('/etc/postfix/mysql/virtual_alias_maps.cf',
794800
'w')
795801
self.app.render((data), 'virtual_alias_maps.mustache',

0 commit comments

Comments
 (0)