I am currently working on a Centos 7 server which uses exim to handle emails in combination with swiftmailer. When an email bounces the "error" will be send to my email address. Instead of receiving the bounce as an email, I would like to be able to send the "error" to a script. If been looking for a way to do this, but I am unable too find the answer online.
Is there a way to accomplish this at all? If so how can it be done?