Shodan is a readily available database of such data. Just search for all hosts with IMAP, SMTP and POP3 ports exposed and then block those. Alternatively, a DIY scan of the whole IPv4 address range can be accomplished within hours or days.
IPv6 address space is harder to scan, but it's arguably safe to ban all such traffic since nearly nothing critical uses IPv6.