Allowing IMAP to received messages from ANY sender

The examples I have found, and HA, appear to require me to specify specific sender to accept through IMAP. Is there a way to allow ANY sender, or better yet any sender NOT on a black list?

A lot of examples are about the deprecated imap_content (Sorry, no link anymore) integration.
Take a look at the IMAP integratoan.

EDIT: More info

My bad I didn’t know it was deprecated. Is there a replacement or a different way to do this ? Does save me from bothering members with questions about the sensor. BTW thanks for the info. Guess I am kind of deprecated too.

It’s all in the docs.

Ahh guess it is although at a more advanced level than I am right now. , but my original question remains. oops not it was deprecated out. Nice. Ok back to the books