When an email is sent, the sender’s email server attaches a return path to the message header. The return path is used for routing error messages back to the sender, and it helps ensure that errors and undeliverable messages can be efficiently routed back to the appropriate sender.

Source

The image above shows how an email goes through the process of being authenticated, and it verifies that the email about to be sent is good to be received by others.