You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mail: disabled group members cause bounces to sender #8205
When a group mail address contains a user whose mailbox is disabled, each message sent to the group returns a bounce to the sender for that user. The other members receive the message.
Steps to reproduce
Add a mail domain with "Add group addresses" enabled
Disable the mailbox of a user who is member of a group
Send a message to the group address from an external sender
Expected behavior
The disabled member is skipped. The sender receives no bounce.
Actual behavior
The message is accepted and delivered to the other members. Delivery to the disabled user fails and Postfix sends a non-delivery report to the sender:
A customer writing to a shared address gets a bounce for every message until the user is removed from the group. A spam message with a forged sender that passes the filter also creates backscatter. The fix of #8185 does not cover this case.
A possible fix is to route the disabled users of DOVECOT_DISABLED_USERS to the discard: transport in Postfix. It was tested successfully on a test system.
Known limit of the planned fix: when every member of a group has a disabled mailbox, the message is accepted and then dropped, so nobody is told. The expected behavior is a rejection during the SMTP session, like an empty group or an alias that leads only to disabled mailboxes. Postfix cannot count the enabled members of an LDAP group before delivery, so this needs a separate fix. It is a rare case, and such a group is usually one to remove.
Fixed by NethServer/ns8-mail#356, available in Mail 2.0.0-beta.5 from the testing repository.
Test cases
Cases marked with ✋ are not covered by the automated test suite, or only in part: they need a manual check.
Setup: mail domain example.org with "Add group addresses" enabled, group sales with members alice and bob, and alice's mailbox disabled. Send from an external sender, then check the journal with journalctl --since -5min | grep -E "status=|non-delivery".
A message to sales@example.org is delivered to bob. alice is skipped and no bounce is sent.
Disable bob too: sales@example.org is rejected at RCPT with 550 5.1.1 ... User unknown in virtual alias table, or delivered to the catch-all if "Accept unknown recipients" is enabled.
An address of the Addresses page with destinations alice and bob: bob receives the message, the copy for alice is discarded, and no bounce is sent.
A user forward to the group sales, and a forward with "Keep a copy" to alice: the other recipients receive the message, and no bounce is sent.
A forward set on the disabled alice is not applied to the copies she gets as a member of sales.
Enable alice again: the next message to sales@example.org reaches her too. ✋
Tested Mail 2.0.0-beta.6 on Rocky Linux 9.8, core 3.25.1, with an address of the Addresses page whose destination is the group qagrp (members qa1 and qa2). Only the case marked ✋ was checked by hand: the others are covered by the automated tests.
With qa1 disabled, a message to the group address is delivered to qa2 only. The copy for qa1 is dropped when the group is expanded: no delivery attempt for qa1 in the log and no non-delivery notification.
✅ After enabling qa1 again, the next message to the group address reaches both qa1 and qa2, with no service restart or reload.
Activity
stephdl commentedon Oct 6, 2026
Known limit of the planned fix: when every member of a group has a disabled mailbox, the message is accepted and then dropped, so nobody is told. The expected behavior is a rejection during the SMTP session, like an empty group or an alias that leads only to disabled mailboxes. Postfix cannot count the enabled members of an LDAP group before delivery, so this needs a separate fix. It is a rare case, and such a group is usually one to remove.
DavidePrincipi commentedon Oct 13, 2026
@stephdl moved to In Progress since NethServer/ns8-mail#314 is open. Feel free to move it back if that's not right.
Merge pull request #356 from NethServer/bug-8185
DavidePrincipi commentedon Nov 26, 2026
Fixed by NethServer/ns8-mail#356, available in Mail
2.0.0-beta.5from the testing repository.Test cases
Cases marked with ✋ are not covered by the automated test suite, or only in part: they need a manual check.
Setup: mail domain
example.orgwith "Add group addresses" enabled, groupsaleswith membersaliceandbob, andalice's mailbox disabled. Send from an external sender, then check the journal withjournalctl --since -5min | grep -E "status=|non-delivery".sales@example.orgis delivered tobob.aliceis skipped and no bounce is sent.bobtoo:sales@example.orgis rejected at RCPT with550 5.1.1 ... User unknown in virtual alias table, or delivered to the catch-all if "Accept unknown recipients" is enabled.aliceandbob:bobreceives the message, the copy foraliceis discarded, and no bounce is sent.sales, and a forward with "Keep a copy" toalice: the other recipients receive the message, and no bounce is sent.aliceis not applied to the copies she gets as a member ofsales.aliceagain: the next message tosales@example.orgreaches her too. ✋DavidePrincipi commentedon Nov 27, 2026
VERIFIED
Tested Mail
2.0.0-beta.6on Rocky Linux 9.8, core 3.25.1, with an address of the Addresses page whose destination is the groupqagrp(membersqa1andqa2). Only the case marked ✋ was checked by hand: the others are covered by the automated tests.qa1disabled, a message to the group address is delivered toqa2only. The copy forqa1is dropped when the group is expanded: no delivery attempt forqa1in the log and no non-delivery notification.qa1again, the next message to the group address reaches bothqa1andqa2, with no service restart or reload.