I would like for Postfix if possible, or Fail2ban if possible (without banning) to send a notification email to root or an admin account with the logline when something wrongs happens when sending an email.
Example lines I would like notifications on:
- TLS is required, but was not offered by host hotmail-com.olc.protection.outlook.com
- said: 550 5.7.1 Unfortunately, messages from [Email server IP] weren't sent. Please contact your Internet service provider since part of their network is on our block list (This was resolved)