Skip to content

Add SMTP_NOAUTH support for unauthenticated SMTP servers#425

Open
mderasse wants to merge 1 commit into
voidauth:mainfrom
mderasse:main
Open

Add SMTP_NOAUTH support for unauthenticated SMTP servers#425
mderasse wants to merge 1 commit into
voidauth:mainfrom
mderasse:main

Conversation

@mderasse
Copy link
Copy Markdown

@mderasse mderasse commented May 18, 2026

Description

Adds a new SMTP_NOAUTH environment variable (boolean, defaults to false) that allows disabling SMTP authentication when connecting to mail servers that don't require credentials, such as those using IP whitelisting. (let me know if you prefer to just check if user and pass are empty and avoid an env variable)

When set to true, the nodemailer transport's auth object is set to undefined, skipping the authentication step entirely.

This avoids connection errors that occur when nodemailer attempts to authenticate against servers that have no auth mechanism configured.

Copilot AI review requested due to automatic review settings May 18, 2026 06:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new SMTP_NOAUTH configuration option that allows users to disable SMTP authentication when connecting to mail servers that do not require credentials (e.g., IP-whitelisted relays).

Changes:

  • Introduce SMTP_NOAUTH boolean config field with default false, parsed as boolean from env.
  • Conditionally omit the nodemailer auth object when SMTP_NOAUTH is true.
  • Document the new env variable in Getting-Started.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
server/util/config.ts Adds the SMTP_NOAUTH field and includes it in the boolean-parsing branch of assignConfigValue.
server/util/email.ts Sets the nodemailer transport auth to undefined when SMTP_NOAUTH is enabled.
docs/Getting-Started.md Documents the new SMTP_NOAUTH environment variable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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