diff --git a/install/dist/conf/centos70.conf.php b/install/dist/conf/centos70.conf.php
index 8aa66ea0315b4f98558cd5d2bf6e6f86188efeff..a40e88ed70e50d7d0bdffaa6a4235b1b96d0fe48 100644
--- a/install/dist/conf/centos70.conf.php
+++ b/install/dist/conf/centos70.conf.php
@@ -144,7 +144,7 @@ $conf['saslauthd']['init_script'] = 'saslauthd';
 
 //* Amavisd
 $conf['amavis']['installed'] = false; // will be detected automatically during installation
-$conf['amavis']['config_dir'] = '/etc';
+$conf['amavis']['config_dir'] = '/etc/amavisd';
 $conf['amavis']['init_script'] = 'amavisd';
 
 //* ClamAV
diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index c3c59fcd6c9632ff814180fe39802a720344ed67..d3b3364d5a6c8da61d879fbca5819c08254f7707 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -1502,12 +1502,12 @@ class installer_base {
 
 		//* Create the slave subdirectory
 		$content .= 'slave';
-		if(!@is_dir($content)) mkdir($content, 2770, true);
+		if(!@is_dir($content)) mkdir($content, 02770, true);
 
 		//* Chown the slave subdirectory to $conf['bind']['bind_user']
 		chown($content, $conf['bind']['bind_user']);
 		chgrp($content, $conf['bind']['bind_group']);
-		chmod($content, 2770);
+		chmod($content, 02770);
 		
 		//* Install scripts for dnssec implementation
 		$this->process_bind_file('named.conf.options', '/etc/bind/', true); //TODO replace hardcoded path
@@ -2845,4 +2845,4 @@ Email Address []:
 
 }
 
-?>
\ No newline at end of file
+?>
diff --git a/interface/web/dns/dns_wizard.php b/interface/web/dns/dns_wizard.php
index 18002593dffb2561c8fb58606b900957504bb2dd..bacadf19c812b73c1cc08550ccb4e628e53e564e 100644
--- a/interface/web/dns/dns_wizard.php
+++ b/interface/web/dns/dns_wizard.php
@@ -314,6 +314,7 @@ if($_POST['create'] == 1) {
 	$tpl_rows = explode("\n", $tpl_content);
 	$section = '';
 	$vars = array();
+	$vars['xfer']='';
 	$dns_rr = array();
 	foreach($tpl_rows as $row) {
 		$row = trim($row);
diff --git a/interface/web/dns/form/dns_cname.tform.php b/interface/web/dns/form/dns_cname.tform.php
index 5fdf8c9b4ea00fe3718e471240ca48ae687828cb..d04c1d01aff18bf82fffe94ec213e74123684de5 100644
--- a/interface/web/dns/form/dns_cname.tform.php
+++ b/interface/web/dns/form/dns_cname.tform.php
@@ -115,7 +115,7 @@ $form["tabs"]['dns'] = array (
 			'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
 					'errmsg'=> 'data_error_empty'),
 				1 => array ( 'type' => 'REGEX',
-					'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
+					'regex' => '/^[a-zA-Z0-9\.\-\_]{1,255}$/',
 					'errmsg'=> 'data_error_regex'),
 			),
 			'default' => '',
diff --git a/interface/web/mail/lib/lang/el_mail_domain.lng b/interface/web/mail/lib/lang/el_mail_domain.lng
index 7e825ad4ba3737b00facd211a195901521b92236..b40973438fc48ced70db5b1354bcde55eaa2d7c4 100644
--- a/interface/web/mail/lib/lang/el_mail_domain.lng
+++ b/interface/web/mail/lib/lang/el_mail_domain.lng
@@ -10,4 +10,13 @@ $wb['client_txt'] = 'Πελάτης';
 $wb['limit_maildomain_txt'] = 'Έχετε φτάσει το μέγιστο πλήθος των email domains για τον λογαριασμό σας.';
 $wb['policy_txt'] = 'Spamfilter';
 $wb['no_policy'] = '- ανενεργό -';
+$wb["dkim_txt"] = 'enable DKIM';
+$wb["dkim_private_txt"] = 'DKIM Private-key';
+$wb["dkim_public_txt"] = 'DKIM Public-key\nfor information only';
+$wb["dkim_generate_txt"] = 'Generate DKIM Private-key';
+$wb["dkim_dns_txt"] = 'DNS-Record';
+$wb["dkim_private_key_error"] = 'Invalid DKIM-Private key';
+$wb["dkim_settings_txt"] = 'DomainKeys Identified Mail (DKIM)';
+$wb['dkim_selector_txt'] = 'DKIM-Selector';
+$wb['dkim_selector_error'] = 'Invalid DKIM-Selector. Use only lower-case alphanumeric characters (a-z or 0-9) up to 63 chars';
 ?>
diff --git a/interface/web/mail/lib/lang/ru_mail_domain.lng b/interface/web/mail/lib/lang/ru_mail_domain.lng
index d59edeec5ea93eea90316b44065a22448a406816..f67242d6ec3442faf376aad2ce42057338d90d56 100644
--- a/interface/web/mail/lib/lang/ru_mail_domain.lng
+++ b/interface/web/mail/lib/lang/ru_mail_domain.lng
@@ -10,4 +10,13 @@ $wb['client_txt'] = 'Клиент';
 $wb['limit_maildomain_txt'] = 'Максимальное число почтовых доменов, достигнуто.';
 $wb['policy_txt'] = 'Спам-фильтр';
 $wb['no_policy'] = '- не включено -';
+$wb["dkim_txt"] = 'enable DKIM';
+$wb["dkim_private_txt"] = 'DKIM Private-key';
+$wb["dkim_public_txt"] = 'DKIM Public-key\nfor information only';
+$wb["dkim_generate_txt"] = 'Generate DKIM Private-key';
+$wb["dkim_dns_txt"] = 'DNS-Record';
+$wb["dkim_private_key_error"] = 'Invalid DKIM-Private key';
+$wb["dkim_settings_txt"] = 'DomainKeys Identified Mail (DKIM)';
+$wb['dkim_selector_txt'] = 'DKIM-Selector';
+$wb['dkim_selector_error'] = 'Invalid DKIM-Selector. Use only lower-case alphanumeric characters (a-z or 0-9) up to 63 chars';
 ?>