Add SMTP_NOAUTH support for unauthenticated SMTP servers #425
No reviewers
Labels
No labels
bug
chore
documentation
enhancement
help
in-progress
question
ready-for-release
released
translation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
adam/gate!425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Pull request overview
Adds a new
SMTP_NOAUTHconfiguration option that allows users to disable SMTP authentication when connecting to mail servers that do not require credentials (e.g., IP-whitelisted relays).Changes:
SMTP_NOAUTHboolean config field with defaultfalse, parsed as boolean from env.authobject whenSMTP_NOAUTHis true.Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
SMTP_NOAUTHfield and includes it in the boolean-parsing branch ofassignConfigValue.authtoundefinedwhenSMTP_NOAUTHis enabled.SMTP_NOAUTHenvironment variable.💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.