How to setup civicrm to handle bounces?
Here is the documentation to setup bounces in Civi.
Also there are various third party mail providers available that captures bounces and for most of them extension are available in CiviCRM to record bounces eg Mandril, Sparkpost, Mailchimp etc