Skip to content

Fix bounce code 25: invalid, not spam

jaapjansma requested to merge github/fork/coopsymbiotic/fixCode25 into master

Created by: mlutfy

The code 25 currently flags emails as spam complains, instead of invalid emails:
https://www.sparkpost.com/docs/deliverability/bounce-classification-codes/

Sparkpost can bounce on code 25 when it's a known invalid domain (ex: yshoo.com). Sparkpost will never attempt to deliver the email.

Admittedly, their doc elsewhere also says:

"Once a recipient is added to the suppression list, subsequent attempts to deliver to that recipient will result in a “Admin Failure” (code 25)."

However, one should not get at that point. The spam complaint should have already been recorded in CiviCRM.

Feel free to close this PR, as I understand this might be subject to interpretation. We/Symbiotic process spam complaints as an opt-out, rather than putting the email on hold. The "on-hold/suppression" might be removed at some point, but we want to keep their opt-out preference.

Merge request reports