propellor

propellor config for hosts.
git clone git://git.ricketyspace.net/propellor.git
Log | Files | Refs | LICENSE

commit f787da6bb1c3efb9f182621fa020e8eb4ac7c780
parent b31933e02755ea2649f6ff94ef071add31d1ac5a
Author: rsiddharth <s@ricketyspace.net>
Date:   Wed,  9 May 2018 04:19:12 +0000

propellor spin

Diffstat:
config.hs | 16++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/config.hs b/config.hs @@ -698,7 +698,8 @@ lyra = host "lyra.ricketyspace.net" $props & File.ownerGroup "/etc/dkimkeys/ricketyspace.net" (User "opendkim") (Group "opendkim") & File.hasPrivContent "/etc/dkimkeys/ricketyspace.net/mail.private" (Context "ricketyspace.net") -- postfix - & File.hasContent "/etc/postfix/header_checks" rsPostfixHeaderChecks + -- & File.hasContent "/etc/postfix/header_checks" rsPostfixHeaderChecks + & rsPostfixHeaderChecks & File.hasContent "/etc/postfix/main.cf" rsPostfixMainCf & File.hasContent "/etc/postfix/master.cf" rsPostfixMasterCf `onChange` Postfix.reloaded -- bind @@ -911,11 +912,14 @@ ricketyspaceNetOpenDkimTrustedHosts = [ ] --- postfix -rsPostfixHeaderChecks :: [File.Line] -rsPostfixHeaderChecks = [ - "/^Received:.*with ESMTPSA/ IGNORE" - , "/^X-Originating-IP:/ IGNORE" - ] +rsPostfixHeaderChecks :: Property DebianLike +rsPostfixHeaderChecks = Postfix.mappedFile "/etc/postfix/header_checks" + (flip File.hasContent + [ + "/^Received:.*with ESMTPSA/ IGNORE" + , "/^X-Originating-IP:/ IGNORE" + ]) `describe` "postfix header checks configured" + `onChange` Postfix.reloaded rsPostfixMainCf :: [File.Line] rsPostfixMainCf = [