We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce14fcc + 72db181 commit d4e1cfdCopy full SHA for d4e1cfd
lib/smtp-connection.js
@@ -496,7 +496,7 @@ class SMTPConnection extends EventEmitter {
496
}
497
498
// block users that try to fiddle around without logging in
499
- if (!this.session.user && this._isSupported('AUTH') && commandName !== 'AUTH' && this._maxAllowedUnauthenticatedCommands !== false) {
+ if (!this.session.user && this._isSupported('AUTH') && !this._server.options.authOptional && commandName !== 'AUTH' && this._maxAllowedUnauthenticatedCommands !== false) {
500
this._unauthenticatedCommands++;
501
if (this._unauthenticatedCommands >= this._maxAllowedUnauthenticatedCommands) {
502
return this.send(421, 'Error: too many unauthenticated commands');
0 commit comments