Skip to content

armgit / posta

Public Imported from GitHub
0

Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.

Set email verification to false by default

Jonas Kanindaf6c4afb5f423
diff --git a/.env.example b/.env.example
index e96fba1..0f902f5 100644
--- a/.env.example
+++ b/.env.example
@@ -121,4 +121,7 @@ POSTA_INBOUND_TLS_MODE=none
# Per-IP SMTP rate limit: max sessions per window (0 disables)
POSTA_INBOUND_SMTP_RATE_LIMIT=60
# Rate-limit window in seconds
-POSTA_INBOUND_SMTP_RATE_WINDOW=60
\ No newline at end of file
+POSTA_INBOUND_SMTP_RATE_WINDOW=60
+# Require new users to verify their email address before they can sign in.
+# When true, signup sends a verification link and login is blocked until confirmed.
+POSTA_EMAIL_VERIFICATION_REQUIRED=false
\ No newline at end of file
diff --git a/internal/config/config.go b/internal/config/config.go
index 3800a7a..988ab05 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -196,7 +196,7 @@ func New() *Config {
Encryption: goutils.Env("POSTA_SYSTEM_SMTP_ENCRYPTION", "starttls"),
},
- EmailVerificationRequired: goutils.EnvBool("POSTA_EMAIL_VERIFICATION_REQUIRED", true),
+ EmailVerificationRequired: goutils.EnvBool("POSTA_EMAIL_VERIFICATION_REQUIRED", false),
EncryptionKey: goutils.Env("POSTA_ENCRYPTION_KEY", ""),