propellor spin
This commit is contained in:
parent
bcdc5754fc
commit
3c7c40dd67
|
@ -142,14 +142,16 @@ saslAuthdInstalled = setupdaemon
|
||||||
where
|
where
|
||||||
setupdaemon = "/etc/default/saslauthd" `File.containsLines`
|
setupdaemon = "/etc/default/saslauthd" `File.containsLines`
|
||||||
[ "START=yes"
|
[ "START=yes"
|
||||||
, "OPTIONS=\"-c -m /var/spool/postfix/var/run/saslauthd\""
|
, "OPTIONS=\"-c -m " ++ dir ++ "\""
|
||||||
]
|
]
|
||||||
`onChange` Service.restarted "saslauthd"
|
`onChange` Service.restarted "saslauthd"
|
||||||
smtpdconf = "/etc/postfix/sasl/smtpd.conf" `File.containsLines`
|
smtpdconf = "/etc/postfix/sasl/smtpd.conf" `File.containsLines`
|
||||||
[ "pwcheck_method: saslauthd"
|
[ "pwcheck_method: saslauthd"
|
||||||
, "mech_list: PLAIN LOGIN"
|
, "mech_list: PLAIN LOGIN"
|
||||||
]
|
]
|
||||||
dirperm = cmdProperty "dpkg-statoverride"
|
dirperm = check (not <$> doesDirectoryExist dir) $
|
||||||
[ "--add", "root", "sasl", "710", "/var/spool/postfix/var/run/saslauthd"]
|
cmdProperty "dpkg-statoverride"
|
||||||
|
[ "--add", "root", "sasl", "710", dir ]
|
||||||
postfixgroup = "postfix" `User.hasGroup` "sasl"
|
postfixgroup = "postfix" `User.hasGroup` "sasl"
|
||||||
`onChange` restarted
|
`onChange` restarted
|
||||||
|
dir = "/var/spool/postfix/var/run/saslauthd"
|
||||||
|
|
Loading…
Reference in New Issue