Inactive users receiving email


(Jay Pfaffman) #1

On a big import, I see users who are getting mail rejected with “inactive” user. I’d assumed that they were forwarding mail from xx@y.com and replying from zzz@a.com, but that’s not the case. I can see in the message they reply to the unsubscribe link, and it is for their email address.

When I visit that user’s account, I see that the user is not activated.

I thought that inactive users could not receive mail. Is that wrong?


(Jeff Atwood) #2

I can’t understand what you have written here. Can you explain with an actual example?


(Jay Pfaffman) #3
  • A user receives an email notification for a topic they are apparently watching.

  • User replies to the email notification.

  • Discourse rejects the email because the user is inactive-- Email::Receiver::InactiveUserError

I assumed that it was a user error, but I’ve seen at least a couple that seem to be cases of a user who is not active receiving mail.


(Jeff Atwood) #4

Something must be borked with your database after the import, because that’s not possible in Discourse as far as I know.

If a user is inactive (that is, their email is not known to be working and validated) they can’t be mailed by definition.


(Kane York) #5

Check if they’re accidentally replying from the wrong address?


(Jay Pfaffman) #6

That’s what I think too. Active is a field in the user table, so it doesn’t seem like an easy way for the database to be broken, though I just had an issue with two topics with the same id. Maybe this problem will go away after the recent restore and upgrade.

Yeah. That’s what I had assumed too, but I looked at the included text from their reply and it had an unsubscribe link with their inactive email address. Strange.


(Jeff Atwood) #7

Does this user have multiple accounts with multiple emails?

Since you’ve implied the database is really screwed up here (two topics with the same id) plus your other “database is corrupt” topic, I’m going with that :wink:


(Jeff Atwood) #10

Closing this topic as it keeps getting inappropriate replies.