Admin email screened and rejected when replying to thread by email

AI-generated summary

A user reports that an admin’s email replies to forum threads are being screened and rejected with an Email::Receiver::ScreenedEmailError. The admin’s email is not on the blocked list, but the issue stems from a distance-based matching algorithm (Levenshtein) in the screened email check, which incorrectly flagged the admin’s email due to a close match with a blocked one ANoetinger. The community discusses potential fixes, including exempting staff from the check or allowing established users to bypass it, highlighting the need for stricter matching or exceptions for trusted users codinghorror, supermathie.

For a few weeks now, we face issues when one of our admins replies directly by email to a thread.
All his replies are not appearing on the thread. For each, we get this message Email::Receiver::ScreenedEmailError. The email he uses is the one he has on record for his profile.

1 Like

Has this persons email been added to the screened emails (blocked emails) list? Check in admin, logs.

1 Like

The persons email is not part of screened email list.

4 Likes

@codinghorror we found out what was happening! The screened email method is not finding matches by equality, but with some distance algorithm (levenshtein). A user was blocked and it was only 2 characters different from the admin email, giving a false positive.

I know there is a setting for that distance, but I wonder if moderators/admins shouldn’t be protected or even if strict matching should be the default.

Thanks for creating such an awesome tool BTW.

5 Likes

Wow that is a first! I wonder if we should exempt staff from this check but it has to be sooo rare.

4 Likes

Should we allow established users who already have accounts to bypass this check regardless?

1 Like