{{define "status_body"}}

Overall {{.OverallStatus}}

{{.OverallHeading}}

Processes {{.ProcessStatus}}

{{if .ProcessError}}

Could not ask supervisord for the process list.

{{else}} {{range .Processes}} {{end}}
ProgramStateDetail
{{.Name}} {{.State}} {{.Detail}}
{{end}}

Mail queue {{.QueueStatus}}

{{if .QueueError}}

{{.QueueError}}

{{else}}

{{if .QueueSummary}}{{.QueueSummary}}{{else}}Mail queue is empty.{{end}} Full queue

{{end}}

TLS certificate {{.Cert.Status}}

The certificate Postfix serves on port 465{{if .Cert.Subject}} ({{.Cert.Subject}}){{end}}. It is supplied by the reverse proxy through a read-only mount; SelfPost only reads it.

{{if not .Cert.NotAfter.IsZero}} {{.Cert.NotAfter.UTC.Format "2006-01-02 15:04 UTC"}} {{end}}

{{.Cert.Detail}}

Milter sockets {{.SocketStatus}}

{{range .Sockets}} {{end}}
MilterSocketState
{{.Name}} {{.Path}} {{.Status}} {{.Detail}}
{{end}}