Skip to content

Email setup

Email settings live at Admin → Email. Configuration takes effect immediately without a server restart — changes are read at send time.

Without email configured, Nexus still runs normally. Email-dependent features (registration verification, password reset, magic links, notifications, and digest emails) simply won’t deliver.


EmailTrigger
Email verificationOn registration when “Require email verification” is enabled
Magic linkWhen a user requests passwordless sign-in
Notification emailsReplies, reactions, mentions, DMs, and badge awards
Moderation reportWhen a content report is submitted — sent to moderators
Digest emailScheduled weekly or monthly community summary

All emails are sent as both HTML and plain text. HTML emails use the forum’s accent color and logo.


Nexus supports four delivery providers. Select one from the Provider dropdown at Admin → Email.

Works with any SMTP relay — your own mail server, Gmail, Fastmail, SendGrid SMTP, Mailchimp Transactional, and so on.

FieldDescription
From addressThe From: address on all outgoing email, e.g. hello@yourdomain.com
From nameThe display name shown in email clients, e.g. My Forum. Defaults to Nexus
SMTP hostYour relay’s hostname, e.g. smtp.sendgrid.net
PortDefault: 587
EncryptionSTARTTLS (587), SSL/TLS (465), or None (25)
SMTP usernameYour relay’s username or email address
SMTP passwordYour relay’s password or API key

If no SMTP host is configured, Nexus falls back to a local in-memory adapter that accepts email silently without delivering it. This is the default dev behaviour and should not be used in production.

FieldDescription
From addressMust be a verified sender address or domain in your Postmark account
From nameDisplay name for outgoing email
Server API tokenFound in your Postmark account under API Tokens. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
FieldDescription
From addressMust be a verified domain in your Resend account
From nameDisplay name for outgoing email
API keyFound in your Resend dashboard. Format: re_xxxxxxxxxxxx
FieldDescription
From addressMust match a verified sending domain in Mailgun
From nameDisplay name for outgoing email
API keyYour Mailgun API key. Format: key-xxxxxxxxxxxx
DomainYour Mailgun sending domain, e.g. mg.yourdomain.com

After entering your credentials, use the Send test email button at the bottom of Admin → Email. This sends a test email to your own account’s email address. Check your inbox — if it doesn’t arrive within a minute, check your spam folder and verify your credentials.


Nexus emails include your forum logo at the top if a logo URL is set under Admin → Forum info → Site logo. If no logo is set, the forum name is displayed as text instead.

Logos stored locally (uploaded via the admin panel) are referenced with an absolute URL constructed from your PHX_HOST setting in /opt/nexus/.env. If your forum’s domain changes, re-upload the logo so the URL is updated.


Regardless of which provider you use, email deliverability requires DNS records on your sending domain. Your provider’s documentation will give you the exact values to add, but in general you’ll need:

  • SPF — authorises your provider to send on behalf of your domain
  • DKIM — a cryptographic signature verifying the email’s origin
  • DMARC — a policy record instructing receiving servers how to handle failures

Without these records, email from your forum will frequently land in spam or be rejected outright. All four providers above have detailed setup guides for configuring these records.