mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 16:56:00 +03:00
[PR #109] [MERGED] Feature: Recipient allowlist for SMTP relay configuration #445
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#445
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?
📋 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-allowlist← Head:recipient-allowlist📝 Commits (2)
d3b2a96Bugfix: Don't panic on mails without from line8b9dde9Feature: 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:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.