summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAeneas Jai├čle <aj@ajaissle.de>2014-08-19 11:36:11 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-19 11:36:11 +0200
commitec2dc345c803ed50dfd81c497ba85b8ed45b31c9 (patch)
tree4a102b25aceb711f638a0de608081e08cf83b113
parentf40f94e60cdb3b07c76408acf9d64f680a0b82ab (diff)
downloadpykolab-ec2dc345c803ed50dfd81c497ba85b8ed45b31c9.tar.gz
Add /etc/amavisd.conf as possible amavisd configuration file
-rw-r--r--pykolab/setup/setup_mta.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index f38ee07..166b402 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -388,6 +388,8 @@ result_format = shared+%%s
fp = open('/etc/amavisd/amavisd.conf', 'w')
elif os.path.isdir('/etc/amavis'):
fp = open('/etc/amavis/amavisd.conf', 'w')
+ elif os.path.isfile('/etc/amavisd.conf'):
+ fp = open('/etc/amavisd.conf', 'w')
if not fp == None:
fp.write(t.__str__())