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:
13
test/t-16-spf/zones.t1
Normal file
13
test/t-16-spf/zones.t1
Normal 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
|
||||
Reference in New Issue
Block a user