1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-28 20:56:03 +00:00

test: Add SPF integration test

This patch adds a new integration test to cover SPF checks. The main
goal is not to cover the SPF parsing, since that's handled by the
library already, but the higher level aspects: that the mails are indeed
rejected, that the DSN looks reasonable, etc.
This commit is contained in:
Alberto Bertogli
2019-12-01 22:11:57 +00:00
parent 6000d07ad0
commit 28cb9169cc
13 changed files with 213 additions and 3 deletions

13
test/t-16-spf/zones.t1 Normal file
View File

@@ -0,0 +1,13 @@
# srv-a is forbidden from sending mail.
# srv-a zone
srv-a A 127.0.0.1
srv-a AAAA ::1
srv-a MX srv-a
srv-a TXT v=spf1 -all
# srv-b zone
srv-b A 127.0.0.1
srv-b AAAA ::1
srv-b MX srv-b
srv-b TXT v=spf1 a