flexion / ef-cms

An Electronic Filing / Case Management System.
23 stars 10 forks source link

BUG: DMARC Alignment is failing for SPF #10512

Closed mmarcotte closed 1 month ago

mmarcotte commented 1 month ago

Describe the Bug

Our emails are passing DMARC validation because the DKIM check is passing and it is properly aligned.

However, there is an issue with the SPF alignment. The SPF from domain is amazonses.com, which is the default. However, this needs to match the actual domain of the From: in the Email headers. As in dawson.ustaxcourt.gov or $EFCMS_DOMAIN. We have some configuration in place to create mail.$EFCMS_DOMAIN, but our actual identities are not using it.

Business Impact/Reason for Severity

Court users are not affected. Our Email currently has a very high success rate for passing DMARC.

In which environment did you see this bug?

Any

Who were you logged in as?

N/A

What were you doing when you discovered this bug? (Using the application, demoing, smoke tests, testing other functionality, etc.)

Reviewing DMARC reports

To Reproduce

N/A

Expected Behavior

  1. Reviewing DMARC reports and observe that SPF alignment is passing.
  2. Examine one of our emails and notice that the SPF from Email has the domain name of dawson.ustaxcourt.gov or $EFCMS_DOMAIN

Actual Behavior

  1. Review DMARC reports and observe that SPF alignment is failing.
  2. Examine one of our emails and notice that the SPF from Email has the domain name of amazonses.com

Screenshots

Screenshot 2024-09-26 at 12 35 56 PM Screenshot 2024-09-26 at 12 36 21 PM

Cause of Bug, If Known

I suspect it's due to the identity sending the Email not having been properly configured to make use of the from.${EFCMS_DOMAIN} MAIL FROM option.

Process for Logging a Bug:

Severity Definition:

Definition of Ready for Bugs(Created 10-4-21)

Definition used: A failure or flaw in the system which produces an incorrect or undesired result that deviates from the expected result or behavior. (Note: Expected results are use cases that have been documented in past user stories as acceptance criteria and test cases, and do not include strange behavior unrelated to use cases.)

The following criteria must be met in order for the development team to begin work on the bug.

The bug must:

Process: If the unexpected results are new use cases that have been identified, but not yet built, new acceptance criteria and test cases should be captured in a new user story and prioritized by the product owner.

If the Court is not able to reproduce the bug, add the “Unable to reproduce” tag. This will provide visibility into the type of support that may be needed by the Court. In the event that the Court cannot reproduce the bug, the Court will work with Flexion to communicate what type of troubleshooting help may be needed.

Definition of Done (Updated 4-14-21)

Product Owner

Engineering