From 5a5668f866ffbfb2c3c9489e138e45e79ce041da Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 15 Sep 2016 14:45:08 +0300 Subject: [PATCH] fix from http://luiscachog.me/spamassassin-error-on-vestacp-centos --- install/rhel/7/exim/exim.conf | 2 +- install/vst-install-rhel.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/install/rhel/7/exim/exim.conf b/install/rhel/7/exim/exim.conf index 6f9a7388..0d65a405 100644 --- a/install/rhel/7/exim/exim.conf +++ b/install/rhel/7/exim/exim.conf @@ -143,7 +143,7 @@ acl_check_data: hosts = !+relay_from_hosts condition = ${if < {$message_size}{100K}} condition = ${if eq{$acl_m1}{yes}{yes}{no}} - spam = nobody:true/defer_ok + spam = spamd:true/defer_ok add_header = X-Spam-Score: $spam_score_int add_header = X-Spam-Bar: $spam_bar add_header = X-Spam-Report: $spam_report diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index cceb1d8b..68cc72a1 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -1124,6 +1124,13 @@ if [ "$spamd" = 'yes' ]; then chkconfig spamassassin on service spamassassin start check_result $? "spamassassin start failed" + if [ "$release" -eq '7' ]; then + groupadd -g 1001 spamd + useradd -u 1001 -g spamd -s /sbin/nologin -d \ + /var/lib/spamassassin spamd + mkdir /var/lib/spamassassin + chown spamd:spamd /var/lib/spamassassin + fi fi