summaryrefslogtreecommitdiffstats
path: root/pykolab/setup
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup')
-rw-r--r--pykolab/setup/setup_mta.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index d91a3a7..bb37d27 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -20,6 +20,7 @@
from augeas import Augeas
from Cheetah.Template import Template
import os
+import shutil
import subprocess
import components
@@ -208,6 +209,13 @@ result_attribute = mail
}
+ if not os.path.isfile('/etc/postfix/main.cf'):
+ if os.path.isfile('/usr/share/postfix/main.cf.debian'):
+ shutil.copy(
+ '/usr/share/postfix/main.cf.debian',
+ '/etc/postfix/main.cf'
+ )
+
myaugeas = Augeas()
setting_base = '/files/etc/postfix/main.cf/'