[GH-ISSUE #1197] Mail for non-existing users is not rejected during SMTP dialog #977

Closed
opened 2026-02-27 11:14:33 +03:00 by kerem · 4 comments
Owner

Originally created by @helgew on GitHub (Jul 27, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1197

Impacted versions

  • Modoboa: 1.7.4
  • installer used: Yes
  • Webserver: Apache

Current behavior

After removing a user who received a lot of spam, messages for the now deleted user are still processed for spam and quarantined.

Expected behavior

Mail for non-existing users should be rejected outright.

Originally created by @helgew on GitHub (Jul 27, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1197 # Impacted versions * Modoboa: 1.7.4 * installer used: Yes * Webserver: Apache # Current behavior After removing a user who received a lot of spam, messages for the now deleted user are still processed for spam and quarantined. # Expected behavior Mail for non-existing users should be rejected outright.
kerem closed this issue 2026-02-27 11:14:34 +03:00
Author
Owner

@tonioo commented on GitHub (Jul 28, 2017):

@helgew Actually, it is a normal behaviour if you installed Modoboa using the installer. Spam detection comes after postscreen and before postfix verifies if recipient exists. (see http://www.postfix.org/SMTPD_PROXY_README.html)

<!-- gh-comment-id:318646614 --> @tonioo commented on GitHub (Jul 28, 2017): @helgew Actually, it is a normal behaviour if you installed Modoboa using the installer. Spam detection comes after postscreen and before postfix verifies if recipient exists. (see http://www.postfix.org/SMTPD_PROXY_README.html)
Author
Owner

@helgew commented on GitHub (Jul 28, 2017):

I see. Would you have any advice on how to configure smtpd_reject_unlisted_recipient so that it would work with the virtual recipients configured via modoboa? My understanding is that smtpd_reject_unlisted_recipient kicks in during the SMTP dialogue.

<!-- gh-comment-id:318691872 --> @helgew commented on GitHub (Jul 28, 2017): I see. Would you have any advice on how to configure [`smtpd_reject_unlisted_recipient`](http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_recipient) so that it would work with the virtual recipients configured via modoboa? My understanding is that `smtpd_reject_unlisted_recipient` kicks in during the SMTP dialogue.
Author
Owner

@tonioo commented on GitHub (Aug 9, 2017):

I think it'd work, but after postscreen and amavis checks (which is not a bad thing, think about a ddos using fake addresses). Have you tried to activate this setting?

<!-- gh-comment-id:321196055 --> @tonioo commented on GitHub (Aug 9, 2017): I think it'd work, but after postscreen and amavis checks (which is not a bad thing, think about a ddos using fake addresses). Have you tried to activate this setting?
Author
Owner

@tonioo commented on GitHub (Sep 15, 2017):

Inactive thread => close.

<!-- gh-comment-id:329729789 --> @tonioo commented on GitHub (Sep 15, 2017): Inactive thread => close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#977
No description provided.