diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 0b4c130c579c9a71db602212243b55156a3b7ec2..bc6306d69734cee35fa65866c89f4c7b68fb2278 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -1659,6 +1659,7 @@ class installer_base {
 		$content = str_replace('{mysql_server_ip}', $conf['mysql']['ip'], $content);
 		wf($conf['amavis']['config_dir'].'/conf.d/50-user', $content);
 		chmod($conf['amavis']['config_dir'].'/conf.d/50-user', 0640);
+		chgrp($conf['amavis']['config_dir'].'/conf.d/50-user', 'amavis');
 
 		// TODO: chmod and chown on the config file