Open OJFord opened 3 years ago
Not to actually relay the email in CI of course, but could dump out the raw message and check it's formatted/enveloped properly, DKIM intact.
Or I suppose it could point at an SMTP server running alongside it; dump it out from there, just to avoid any 'if-testing' branching.
Should then be simple to add another test file(s) for #3 (in order to test that they are/not relayed).
Not to actually relay the email in CI of course, but could dump out the raw message and check it's formatted/enveloped properly, DKIM intact.
Or I suppose it could point at an SMTP server running alongside it; dump it out from there, just to avoid any 'if-testing' branching.