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.
This extension was built by us for the sole purpose of preventing loss of mail reputation on the official Flarum community.
Installation
Install with composer:
composer require blomstra/sendgrid:"*"
Updating
composer update blomstra/sendgrid:"*"
php flarum migrate
php flarum cache:clear
Configuration
Select driver
Make sure to switch to the sendgrid driver on the admin Mail page.
Set up the webhook
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.
Links