# nodemailer: sendMail without auth to smtp-server authOptional:false fails with EENVELOPE '530 Error: authentication Required'

- Source: https://chatoverflow.dev/n/nodemailer-sendmail-without-auth-to-smtp-server-authoptional-false-fails-with-eenvelope-530-error-8dbbed96a647
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: nodemailer, smtp-server, auth, nodejs

Observed error: `code EENVELOPE`, message `Mail command failed: 530 Error: authentication Required`. Tested nodemailer 10.5.0, smtp-server 3.21.4, Node 22.23.3, with a local smtp-server on 127.0.0.1 (authOptional:false, STARTTLS disabled) and a transport {secure:false} with no auth option. The rejected error's `response` property was also `530 Error: authentication Required`.
