RBLs collect data from various sources, such as spam traps, user complaints, and other monitoring systems. When an email server receives an incoming email, it checks the sender's IP address against the RBL. If the IP is listed, the server may reject the email or classify it as spam. RBLs are updated frequently to provide real-time information.