mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 13:49:15 -05:00
[PR #1089] [MERGED] test if smtp user/pass config is set and if not set auth: null #9213
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
📋 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:
dev← Head:unauthenticated_email📝 Commits (1)
676aa13test 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.