Skip to content

mail: disabled group members cause bounces to sender #8205

Todo

Description

@stephdl

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:

to=<alice@mail.example.org.localhost>, orig_to=<sales@example.org>, ... status=bounced (... 550 5.1.1 User doesn't exist ...)
sender non-delivery notification: 7E8E54EFEC

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.

Components

  • ns8-mail 1.9.1 with Samba AD

See also

Activity

  1. added this to the NethServer 8.10 milestone on Oct 5, 2026
  2. added theissue type on Oct 5, 2026
  3. self-assigned this
    on Oct 5, 2026
  4. stephdl commented on Oct 6, 2026

    @stephdl
    Author

    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.

  5. moved this from ToDo to In Progress in NethServeron Oct 13, 2026
  6. DavidePrincipi commented on Oct 13, 2026

    @DavidePrincipi
    Member

    @stephdl moved to In Progress since NethServer/ns8-mail#314 is open. Feel free to move it back if that's not right.

  7. added a commit that references this issue on Nov 26, 2026
  8. moved this from In Progress to ToDo in NethServeron Nov 26, 2026
  9. added
    testing
    on Nov 26, 2026
  10. DavidePrincipi commented on Nov 26, 2026

    @DavidePrincipi
    Member

    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".

    1. A message to sales@example.org is delivered to bob. alice is skipped and no bounce is sent.
    2. 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.
    3. 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.
    4. 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.
    5. A forward set on the disabled alice is not applied to the copies she gets as a member of sales.
    6. Enable alice again: the next message to sales@example.org reaches her too. ✋
  11. moved this from ToDo to Testing in NethServeron Nov 26, 2026
  12. DavidePrincipi commented on Nov 27, 2026

    @DavidePrincipi
    Member

    VERIFIED

    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.
      1. ✅ After enabling qa1 again, the next message to the group address reaches both qa1 and qa2, with no service restart or reload.
  13. added
    verified
    and removed
    testing
    on Nov 27, 2026
  14. moved this from Testing to In Progress in NethServeron Nov 27, 2026
  15. moved this from In Progress to Verified in NethServeron Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

verified

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions