Skip to content

Commit ee7b363

Browse files
author
Till Brehm
committed
Fixed an amavis config problem on CentOS 6 systems.
1 parent 7ddeb2a commit ee7b363

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,17 @@ public function configure_amavis() {
505505
wf($conf["amavis"]["config_dir"].'/amavisd.conf', $content);
506506
chmod($conf['amavis']['config_dir'].'/amavisd.conf', 0640);
507507

508+
if(!is_file($conf['amavis']['config_dir'].'/60-dkim')) {
509+
touch($conf['amavis']['config_dir'].'/60-dkim');
510+
chmod($conf['amavis']['config_dir'].'/60-dkim', 0640);
511+
}
512+
508513
// for CentOS 7.2 only
509514
if($dist['confid'] == 'centos72') {
510515
chmod($conf['amavis']['config_dir'].'/amavisd.conf', 0750);
511516
chgrp($conf['amavis']['config_dir'].'/amavisd.conf', 'amavis');
517+
chmod($conf['amavis']['config_dir'].'/60-dkim', 0750);
518+
chgrp($conf['amavis']['config_dir'].'/60-dkim', 'amavis');
512519
}
513520

514521

0 commit comments

Comments
 (0)