[PR #109] [MERGED] Feature: Recipient allowlist for SMTP relay configuration #445

Closed
opened 2026-03-15 14:19:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/axllent/mailpit/pull/109
Author: @gliwka
Created: 5/4/2023
Status: Merged
Merged: 5/5/2023
Merged by: @axllent

Base: feature/recipient-allowlistHead: recipient-allowlist


📝 Commits (2)

  • d3b2a96 Bugfix: Don't panic on mails without from line
  • 8b9dde9 Feature: Add allowlist to filter recipients before relaying messages

📊 Changes

7 files changed (+76 additions, -15 deletions)

View changed files

📝 README.md (+1 -1)
📝 config/config.go (+23 -9)
📝 server/apiv1/api.go (+8 -1)
📝 server/apiv1/webui.go (+3 -0)
📝 server/smtpd/smtp.go (+35 -3)
📝 server/ui-src/templates/MessageRelease.vue (+5 -0)
📝 storage/database.go (+1 -1)

📄 Description

Implements the recipient allowlist discussed in https://github.com/axllent/mailpit/issues/108

I've kept the UI part simple for now by just displaying the configured allowlist whenever it's active and denying the release on the backend. I could not reuse the regex on the frontend since golang and javascript have a different regex syntax:

Screenshot 2023-05-04 at 23 50 15 Screenshot 2023-05-04 at 23 51 00

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/axllent/mailpit/pull/109 **Author:** [@gliwka](https://github.com/gliwka) **Created:** 5/4/2023 **Status:** ✅ Merged **Merged:** 5/5/2023 **Merged by:** [@axllent](https://github.com/axllent) **Base:** `feature/recipient-allowlist` ← **Head:** `recipient-allowlist` --- ### 📝 Commits (2) - [`d3b2a96`](https://github.com/axllent/mailpit/commit/d3b2a965e1bce5a2313eaaaec491100b76d918c8) Bugfix: Don't panic on mails without from line - [`8b9dde9`](https://github.com/axllent/mailpit/commit/8b9dde930846d5e29c3b76c859137f6d22eff9b8) Feature: Add allowlist to filter recipients before relaying messages ### 📊 Changes **7 files changed** (+76 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `config/config.go` (+23 -9) 📝 `server/apiv1/api.go` (+8 -1) 📝 `server/apiv1/webui.go` (+3 -0) 📝 `server/smtpd/smtp.go` (+35 -3) 📝 `server/ui-src/templates/MessageRelease.vue` (+5 -0) 📝 `storage/database.go` (+1 -1) </details> ### 📄 Description Implements the recipient allowlist discussed in https://github.com/axllent/mailpit/issues/108 I've kept the UI part simple for now by just displaying the configured allowlist whenever it's active and denying the release on the backend. I could not reuse the regex on the frontend since golang and javascript have a different regex syntax: <img width="818" alt="Screenshot 2023-05-04 at 23 50 15" src="https://user-images.githubusercontent.com/4993665/236338289-88fcb429-aa04-41da-aa4e-5be9b339e4dc.png"> <img width="816" alt="Screenshot 2023-05-04 at 23 51 00" src="https://user-images.githubusercontent.com/4993665/236338313-4044ee18-bb13-4bd2-aadd-5fdea6c32876.png"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 14:19:22 +03:00
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/mailpit#445
No description provided.