summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJohannes Graumann <johannes_graumann@web.de>2012-10-15 22:35:45 +0300
committerJohannes Graumann <johannes_graumann@web.de>2012-10-15 22:35:45 +0300
commita01d23ee133c90565f7ef0a49f41970ccc7efa75 (patch)
treef807c915b4d59b3d827f4bacff6cae809f5579e0 /pykolab
parent728ca8f9910761474ec7ad4fedd6e5793040596c (diff)
downloadpykolab-a01d23ee133c90565f7ef0a49f41970ccc7efa75.tar.gz
Debianize: Provide amavisd-requested /etc/mailname - possibly remediable through enhancement filed as #1080?
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mta.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 5b4b97e..9c7c200 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -306,6 +306,11 @@ result_attribute = mail
# while really it isn't required.
else:
log.info(_("Not writing out any configuration for Amavis."))
+ # On debian wheezy amavisd-new expects '/etc/mailname' - possibly remediable through
+ # the #1080 enhancement mentioned above, but here's a quick fix.
+ f = open('/etc/mailname','w')
+ f.writelines(conf.get('kolab', 'primary_domain'))
+ f.close()
if os.path.isfile('/bin/systemctl'):
subprocess.call(['systemctl', 'restart', 'postfix.service'])