Blocking disposable email domains in Mastodon

⚠️
This post was automatically migrated from my old blogging software, and I have not reviewed it for problems yet. Please contact me if you notice any important issues.

Mastodon yesterday experienced a small wave of spam. One thing we're doing in response at a2mi.social, as recommended by this summary of the incident, is improving how we block disposable email providers.

I wrote the following Bash script, inspired by this one. Run periodically via cron, it updates a2mi.social's blocklist from the disposable-email-domains GitHub repo.