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

Remove email validation requirement for forward target address in AddMailForwardReq

lotk76b46fe32fe3
diff --git a/core/api/mail_services/v1/mail_forward.go b/core/api/mail_services/v1/mail_forward.go
index e8a54a50..e3aee994 100644
--- a/core/api/mail_services/v1/mail_forward.go
+++ b/core/api/mail_services/v1/mail_forward.go
@@ -33,7 +33,7 @@ type GetMailForwardListRes struct {
type AddMailForwardReq struct {
g.Meta `path:"/mail_forward/add" method:"post" summary:"add mail forward"`
Address string `json:"address" v:"required" desc:"forwarded email address, e.g. [email protected]"`
- Goto string `json:"goto" v:"required|email" desc:"forward target address, multiple addresses separated by newline"`
+ Goto string `json:"goto" v:"required" desc:"forward target address, multiple addresses separated by newline"`
Active int `json:"active" v:"in:0,1" desc:"status: 1-enabled, 0-disabled" default:"1"`
}