Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

api sender whitened

lotk9a34eddc363d
diff --git a/core/internal/cmd/cmd.go b/core/internal/cmd/cmd.go
index 37282a64..ab182c44 100644
--- a/core/internal/cmd/cmd.go
+++ b/core/internal/cmd/cmd.go
@@ -108,6 +108,9 @@ var (
// Use Redis for session storage
// s.SetSessionStorage(gsession.NewStorageRedis(g.Redis()))
+ // ip whitelist middleware
+ //s.Use(middleware.IPWhitelist)
+
// Define excluded URIs
excludesURIs := map[string]struct{}{
"/favicon.ico": {},
@@ -115,6 +118,7 @@ var (
"/unsubscribe.html": {},
"/api/unsubscribe/user_group": {},
"/api/unsubscribe": {},
+ "/api/batch_mail/api/send": {},
}
// Bind Server Hooks