propellor

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

commit 6754ec6661f81d95767aaf8c89fc08197c1f4107
parent 105648f39589f4a14bcb96a99b7db60a7ebdd2b4
Author: rsiddharth <s@ricketyspace.net>
Date:   Thu, 10 May 2018 04:43:33 +0000

propellor spin

Diffstat:
config.hs | 44++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+), 0 deletions(-)

diff --git a/config.hs b/config.hs @@ -701,6 +701,8 @@ lyra = host "lyra.ricketyspace.net" $props & rsPostfixHeaderChecks & File.hasContent "/etc/postfix/main.cf" rsPostfixMainCf & File.hasContent "/etc/postfix/master.cf" rsPostfixMasterCf `onChange` Postfix.reloaded + -- dovecot + & File.hasContent "/etc/dovecot/dovecot.conf" rsDovecotConf -- bind & Dns.primary publicHosts "ricketyspace.net" (Dns.mkSOA "lyra.ricketyspace.net" 20180129) @@ -1068,6 +1070,48 @@ rsPostfixMasterCf = [ , " user=nobody argv=/usr/bin/policyd-spf" ] +rsDovecotConf :: [File.Line] +rsDovecotConf = [ + "mail_privileged_group = mail" + , "namespace inbox {" + , " inbox = yes" + , " location =" + , " mailbox Drafts {" + , " special_use = \\Drafts" + , " }" + , " mailbox Junk {" + , " special_use = \\Junk" + , " }" + , " mailbox Sent {" + , " special_use = \\Sent" + , " }" + , " mailbox \"Sent Messages\" {" + , " special_use = \\Sent" + , " }" + , " mailbox Trash {" + , " special_use = \\Trash" + , " }" + , " prefix =" + , "}" + , "passdb {" + , " driver = pam" + , "}" + , "protocols = \" imap\"" + , "service auth {" + , " unix_listener /var/spool/postfix/private/auth {" + , " group = postfix" + , " mode = 0666" + , " user = postfix" + , " }" + , "}" + , "ssl = required" + , "ssl_cert = </etc/ssl/certs/rs.net.chained.le.pem" + , "ssl_key = </etc/ssl/private/rs.net.d.le.key" + , "userdb {" + , " driver = passwd" + , "}" + ] + -- common --- tmux conf