dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Allow empty username and password for SMTP

Open eisterman opened this issue 4 months ago • 1 comments

What problem will this feature address?

Right now, when configuring an SMTP notification, username and password is required, but certain SMTP solutions (like the Google SMTP Relay) requires the possibility to put no username and password.

Right now Google SMTP Relay in configuration without password but only IP whitelist cannot be used with Dokploy.

Describe the solution you'd like

Allowing empty username and password for SMTP. A switch to toggle if one wants SMTP authentication is a good solution too.

Describe alternatives you've considered

I considered using the raw SMTP server, but that requires an account application password that we prefer to not use.

Additional context

No response

Will you send a PR to implement it?

No

eisterman avatar Jul 17 '26 14:07 eisterman

I'd like to work on this. Plan: relax the username/password validation on the email notification form and API schema, and only pass auth to nodemailer when credentials are actually provided — so unauthenticated relays like Google SMTP Relay (IP allowlist) work. PR coming shortly.

hbilal9 avatar Jul 18 '26 06:07 hbilal9