1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-07 17:47:14 +00:00

courier: Add STS policy checking to the SMTP courier

This patch extends the SMTP courier to (optionally) do STS policy
checking when delivering mail.

As STS support is currently experimental, we gate this behind a flag and
is disabled by default.
This commit is contained in:
Alberto Bertogli
2017-02-26 02:32:59 +00:00
parent d66b06de51
commit 216cf47ffa
3 changed files with 98 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ func newSMTP(t *testing.T) (*SMTP, string) {
t.Fatal(err)
}
return &SMTP{dinfo}, dir
return &SMTP{dinfo, nil}, dir
}
// Fake server, to test SMTP out.