New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete user/mailbox when user/domain is disabled #1190
Comments
@yannfill can you check query used for |
|
I also have this in
|
Can you try with this please: |
Same error, even after restarting Dovecot and Apache. |
@yannfill can you show me the full trace please? |
I got it, this is my password_query:
When I remove |
I don't understand why you encounter this issue, I don't reproduce it... |
My user_query is this:
When I try this command
If I remove So, doveadm seems to use all the queries in |
And commenting user_query gives this:
|
Have you tried with |
|
What happens if you reactivate this user? Does dovecot found it? |
I can't reactivate users individually since I have disabled the whole domain, and when I reactivate the domain, I get:
|
I still can't reproduce this behaviour... What is your dovecot version? Which user runs the doveadm command in your example? |
Dovecot 2.2.13 I was root when running the doveadm command, but using dovecot user gives the same results. |
According to the wiki, |
That's it, I've removed |
Could you try to send an email to user in a deactivated domain? |
Then the email comes back with Postfix saying
|
@yannfill Have you checked logs? |
From Postfix?
|
Fixed in the installer: modoboa/modoboa-installer@2c206a5. |
When disabling a domain, all mailboxes of that domain are (logically) disabled too. When I try to delete a disabled mailbox, an error shows up: Failed to retrieve mailbox location (userdb lookup: user xxx doesn't exist)
So I must re-enable the domain before being able to delete users, which is kind of weird steps to follow (mailbox disabled -> mailbox enabled -> mailbox deleted).
Disabling a domain or a mailbox could be considered the first step before deleting it, so their should be no need to re-enable it to do that.
The text was updated successfully, but these errors were encountered: