Enables both sieve and managesieved, and adds a global rule that moves detected spam to a user's Junk folder automatically
41 lines
528 B
Ruby
41 lines
528 B
Ruby
#
|
|
# Cookbook:: kosmos_email
|
|
# Recipe:: firewall
|
|
#
|
|
|
|
firewall_rule "SMTP" do
|
|
command :allow
|
|
port 25
|
|
protocol :tcp
|
|
end
|
|
|
|
firewall_rule "SMTPS" do
|
|
command :allow
|
|
port 465
|
|
protocol :tcp
|
|
end
|
|
|
|
firewall_rule "SMTPS" do
|
|
command :allow
|
|
port 587
|
|
protocol :tcp
|
|
end
|
|
|
|
firewall_rule "IMAP" do
|
|
command :allow
|
|
port 143
|
|
protocol :tcp
|
|
end
|
|
|
|
firewall_rule "IMAPS" do
|
|
command :allow
|
|
port 993
|
|
protocol :tcp
|
|
end
|
|
|
|
firewall_rule "ManageSieve" do
|
|
command :allow
|
|
port 4190
|
|
protocol :tcp
|
|
end
|