[PR #1089] [MERGED] test if smtp user/pass config is set and if not set auth: null #11232

Closed
opened 2026-05-06 15:52:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/1089
Author: @tomribbens
Created: 7/18/2025
Status: Merged
Merged: 7/18/2025
Merged by: @oschwartz10612

Base: devHead: unauthenticated_email


📝 Commits (1)

  • 676aa13 test if user/pass config is set and if not set auth: null

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 server/emails/index.ts (+2 -2)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

For smtp servers that require no authentication (Google Workspace has this option for whitelisted IP addresses for example), the auth: option for nodemailer must be set to null. This code checks if a username and password are defined. If they are, there is no change to previous behaviour. But if they aren't, auth: is set to null.

As discussed on discord: https://discord.com/channels/1325658630518865980/1395139357312028672

How to test?

Don't set smtp user/pass values in the config, and configure an open relay as smtp host, and see if it mails.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/pangolin/pull/1089 **Author:** [@tomribbens](https://github.com/tomribbens) **Created:** 7/18/2025 **Status:** ✅ Merged **Merged:** 7/18/2025 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `unauthenticated_email` --- ### 📝 Commits (1) - [`676aa13`](https://github.com/fosrl/pangolin/commit/676aa1358d84fcc7e133db5d89082794ec923e65) test if user/pass config is set and if not set auth: null ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/emails/index.ts` (+2 -2) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description For smtp servers that require no authentication (Google Workspace has this option for whitelisted IP addresses for example), the `auth:` option for nodemailer must be set to null. This code checks if a username and password are defined. If they are, there is no change to previous behaviour. But if they aren't, `auth:` is set to null. As discussed on discord: https://discord.com/channels/1325658630518865980/1395139357312028672 ## How to test? Don't set smtp user/pass values in the config, and configure an open relay as smtp host, and see if it mails. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 15:52:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#11232