Daily Archives: November 8, 2020

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: ‘bad@email.net’) user.disable_mail = true user.save