A Flarum extension that adds the Sendgrid driver to the mail page and allows sendgrid to suspend users whose email is bouncing and disable user notifications for email when these users mark the email as spam.
Install with composer:
composer require blomstra/sendgrid:"*"
composer update blomstra/sendgrid:"*"
php flarum migrate
php flarum cache:clear
Make sure to switch to the sendgrid driver on the admin Mail page.
To allow webhook integration with SendGrid, add this to your SendGrid webhook at https://app.sendgrid.com/settings/mail_settings/webhook_settings
https://your-url.test/api/flarum-sendgrid/hooks/events
You should enable "Bounced" from Deliverability Data and "Spam Reports from Engagement Data.