# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
include_recipe "networking"
-package "exim4"
-package "openssl"
-package "ssl-cert"
+package %w[
+ exim4
+ openssl
+ ssl-cert
+]
-if File.exist?("/var/run/clamav/clamd.ctl")
- package "exim4-daemon-heavy"
-end
+package "exim4-daemon-heavy" if File.exist?("/var/run/clamav/clamd.ctl")
group "ssl-cert" do
action :modify
end
end
+file "/etc/exim4/blocked-senders" do
+ owner "root"
+ group "Debian-exim"
+ mode 0o644
+end
+
template "/etc/exim4/exim4.conf" do
source "exim4.conf.erb"
owner "root"