Skip to content

Switch email transport to nodemailer direct (no SMTP relay)#479

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/use-nodemailer-direct-transport
Closed

Switch email transport to nodemailer direct (no SMTP relay)#479
Copilot wants to merge 3 commits intomainfrom
copilot/use-nodemailer-direct-transport

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 29, 2026

Drops the MailerSend SMTP relay in favour of nodemailer's built-in direct transport, which resolves recipient MX records via DNS and delivers mail without third-party credentials.

Transport change

// Before — requires EMAIL_USERNAME / EMAIL_PASSWORD env vars + external relay
createTransport({ host: 'smtp.mailersend.net', port: 587, auth: { ... } })

// After — no credentials, delivers directly
createTransport({ direct: true, name: 'mail.qbreader.org' })

EMAIL_USERNAME and EMAIL_PASSWORD are no longer used.

Optional DKIM signing

If DKIM_PRIVATE_KEY and DKIM_SELECTOR env vars are set, the transporter automatically signs all outgoing mail.

Required DNS records

Documented in the file header — five records needed before direct delivery will be accepted by major receivers:

Record Name Value
TXT (SPF) @ v=spf1 ip4:<IP> ~all
TXT (DKIM) <selector>._domainkey.qbreader.org DKIM public key
TXT (DMARC) _dmarc.qbreader.org v=DMARC1; p=quarantine; …
A + PTR (rDNS) mail.qbreader.org<server IP> Must match the name in transport config
MX @ mail.qbreader.org (for receiving replies)
Original prompt

Use nodemailer direct transport to send emails, and leave instructions for what DNS settings I need to chafe


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add nodemailer direct transport for sending emails Switch email transport to nodemailer direct (no SMTP relay) Mar 29, 2026
Copilot AI requested a review from geoffrey-wu March 29, 2026 05:12
@geoffrey-wu geoffrey-wu deleted the copilot/use-nodemailer-direct-transport branch April 4, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants