mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #2120] Disabled account can still receive email #1527
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeromelebleu on GitHub (Jan 11, 2021).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2120
Impacted versions
Steps to reproduce
Current behavior
Even if the account is disabled, the recipient is still allowed by Postfix and the email is delivered.
Expected behavior
If I understand the meaning of a disabled account, emails to this address should be rejected.
Debugging
While trying to find in Postfix when this recipient is accepted, I found that it was by looking up in
sql-aliases.cftable. Even if there is a condition onenabledin theadmin_aliastable, the object is still returned. And indeed, even if thecore_useris disabled, the correspondingadmin_aliasis not.@cyberal77 commented on GitHub (Jan 14, 2021):
Hi,
I Cant reproduce.
When i send mail to desactivated user, it's reject.
Regard
PS : Manual installed server
@jeromelebleu commented on GitHub (Jan 14, 2021):
Thanks @cyberal77 to give it a try! Are you also using the last Modoba's version? I encounter that on manual installations too, but my Postfix configuration is almost the same as the automatic installer's one. Anyway, from what I understood, I don't think this is related.
Could you also check that the corresponding
admin_alias's object is also disabled please? For example, here is what I have in a shell:@kryskool commented on GitHub (Jan 18, 2021):
Hi @jeromelebleu
It seem that @tonioo fix the problem in this commit can you retry ?
Regards,
@jeromelebleu commented on GitHub (Jan 18, 2021):
Hi @kryskool, no it does not fix this problem and this is why I commented this commit. It only disables aliases which have been added manually from the interface (
internal=False) and not automatically like here (internal=True).@Toniob commented on GitHub (Jun 28, 2022):
Hi,
I’m running 1.17.0 and I added the patch manually. But the mail are still received. I think that’s because that’s dovecot-lmtp which is responsible for accepting or not the mail. And in the user_query in dovecot, we never check for the is_active attribute.
@DaveDischord commented on GitHub (Jul 12, 2023):
How can I manually fix this? What files would I need to edit and how? Thank you.