@@ -473,6 +473,19 @@ def post_pref(self, apt_packages, packages):
473473 self .app .render ((data ), 'dovecot.mustache' , out = ee_dovecot )
474474 ee_dovecot .close ()
475475
476+ EEShellExec .cmd_exec (self , "sed -i \" s/\\ !include "
477+ "auth-system.conf.ext/#\\ !include "
478+ "auth-system.conf.ext/\" "
479+ "/etc/dovecot/conf.d/10-auth.conf" )
480+
481+ EEShellExec .cmd_exec (self , "sed -i \" s\' /etc/dovecot/"
482+ "dovecot.pem\' /etc/ssl/certs/dovecot.pem"
483+ "\' \" /etc/dovecot/conf.d/10-ssl.conf" )
484+ EEShellExec .cmd_exec (self , "sed -i \" s\' /etc/dovecot/"
485+ "private/dovecot.pem\' /etc/ssl/private"
486+ "/dovecot.pem\' \" /etc/dovecot/conf.d/"
487+ "10-ssl.conf" )
488+
476489 # Custom Postfix configuration needed with Dovecot
477490 # Changes in master.cf
478491 # TODO: Find alternative for sed in Python
@@ -561,7 +574,7 @@ def post_pref(self, apt_packages, packages):
561574 "default.sieve" )
562575 EEGit .add (self , ["/etc/postfix" , "/etc/dovecot" ],
563576 msg = "Installed mail server" )
564- EEService .reload_service (self , 'dovecot' )
577+ EEService .restart_service (self , 'dovecot' )
565578 EEService .reload_service (self , 'postfix' )
566579
567580 if set (EEVariables .ee_mailscanner ).issubset (set (apt_packages )):
@@ -598,7 +611,7 @@ def post_pref(self, apt_packages, packages):
598611 Log .debug (self , "Restarting clamav-daemon service" )
599612 EEShellExec .cmd_exec (self , "service clamav-daemon restart" )
600613 EEGit .add (self , ["/etc/amavis" ], msg = "Adding Amvis into Git" )
601- EEService .reload_service (self , 'dovecot' )
614+ EEService .restart_service (self , 'dovecot' )
602615 EEService .reload_service (self , 'postfix' )
603616 EEService .reload_service (self , 'amavis' )
604617
@@ -817,7 +830,7 @@ def post_pref(self, apt_packages, packages):
817830 self .app .render ((data ), '50-user.mustache' ,
818831 out = vm_config )
819832 vm_config .close ()
820- EEService .reload_service (self , 'dovecot' )
833+ EEService .restart_service (self , 'dovecot' )
821834 EEService .reload_service (self , 'nginx' )
822835 EEService .reload_service (self , 'php5-fpm' )
823836 self .msg = (self .msg + ["Configure ViMbAdmin:\t https://{0}:"
0 commit comments