Blog for diaspora pod diasporg

Disable email on a diaspora user with bad email

I get some folks that are very active with bad email addresses and it causes a lot of extra work on postfix.

To solve:

RAILS_ENV=production bin/rails c

user = User.find_by(email: ‘’)

user.disable_mail = true

Leave a comment

Your email address will not be published. Required fields are marked *