propellor spin
This commit is contained in:
parent
3907bf5db3
commit
4d38e8bfd6
|
@ -31,12 +31,16 @@ satellite = check norelayhost setup
|
||||||
setup = trivial $ property "postfix satellite system" $ do
|
setup = trivial $ property "postfix satellite system" $ do
|
||||||
hn <- asks hostName
|
hn <- asks hostName
|
||||||
let (_, domain) = separate (== '.') hn
|
let (_, domain) = separate (== '.') hn
|
||||||
ensureProperty $ Apt.reConfigure "postfix"
|
ensureProperties
|
||||||
|
[ Apt.reConfigure "postfix"
|
||||||
[ ("postfix/main_mailer_type", "select", "Satellite system")
|
[ ("postfix/main_mailer_type", "select", "Satellite system")
|
||||||
, ("postfix/root_address", "string", "root")
|
, ("postfix/root_address", "string", "root")
|
||||||
, ("postfix/destinations", "string", " ")
|
, ("postfix/destinations", "string", " ")
|
||||||
, ("postfix/mailname", "string", hn)
|
, ("postfix/mailname", "string", hn)
|
||||||
, ("postfix/relayhost", "string", "smtp." ++ domain)
|
]
|
||||||
|
, mainCf `containsLine` ("relayhost = " ++ domain)
|
||||||
|
`onChange` dedupMainCf
|
||||||
|
`onChange` reloaded
|
||||||
]
|
]
|
||||||
norelayhost = not . any relayhostset . lines
|
norelayhost = not . any relayhostset . lines
|
||||||
<$> readProcess "postconf" []
|
<$> readProcess "postconf" []
|
||||||
|
|
Loading…
Reference in New Issue