Opened 5 years ago

Last modified 5 years ago

#4782 new defect (bug)

Filter wp_mail() on .org from trying to mail prohibited addresses

Reported by: ipstenu's profile Ipstenu Owned by:
Milestone: Priority: normal
Component: General Keywords:


We have certain email providers (eg Yahoo) prohibited from signing up for new user accounts, due to bounce back issues.

We should prevent wp_mail() from even trying to email them, and reduce load (and lost emails) on our end.

Change History (4)

#1 @dd32
5 years ago

In 9242:

Support: Disable entire-forum subscriptions.

Some uses have managed to subscribe to entire forums, it's probably not intended, so lets ignore these for now.

See #4782.

#2 @dd32
5 years ago

I've added something in the private repo that does this:


Mail: Add an mu-plugin to filter outgoing wp_mail()'s.

This blocks emails to hosts we consider "unsafe" which is a bad term, but is roughly equal to hostnames we consider spam or who we have mail deliverability issues to.

A PHP warning will be triggered when this happens for logging / discoverability purposes.
It'd be nice to add a `Require-Recipient-Valid-Since:` header for appropriate hosts once we start to store user email change dates.


In addition to #4781 we should also prevent new forum subscriptions for affected users.

#3 @dd32
5 years ago

In 9301:

Support: Disable entire-forum subscriptions (again).

bbPress 2.6 deprecated the previous function and no longer calls its filters.
This more complicated filter should hopefully have the same effect again.

See #4782.

#4 @dd32
5 years ago

In 9302:

Support: Remove the Subscribe-to-forum links.

See #4782.

Note: See TracTickets for help on using tickets.