# Node-red-node-email ignore users if No authentication is set

**URL:** <https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612>\
**Category:** General\
**Created:** [6 November 2025 19:29 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612 "2025-11-06T19:29:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kolaval](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kolaval/32/102856_2.png) [@kolaval](https://discourse.nodered.org/u/kolaval)\
**Post date:** [6 November 2025 19:29 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/1 "2025-11-06T19:29:02Z")

</div>

I have various users connecting to the MTA node of node-red-node-email  
When setting Users to 'No authentication' an error is thrown if the user connects with an uername.  
Is there any way to just ignore supplied credentials when 'No authentication' is selected?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [6 November 2025 20:52 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/2 "2025-11-06T20:52:00Z")

</div>

Hi - can you share a simple flow that shows this ? If I try locally (flow below) I don't seem to get an error.

```auto
[{"id":"5c3bc33c.d6f8bc","type":"debug","z":"b2841f81.4dd1e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":370,"y":260,"wires":[]},{"id":"95327646.4b58d8","type":"e-mail mta","z":"b2841f81.4dd1e","name":"","port":"25","secure":false,"starttls":false,"certFile":"","keyFile":"","mtausers":[],"auth":"false","authType":"none","expert":"{\"logger\":false}","x":120,"y":260,"wires":[["5c3bc33c.d6f8bc","7ffae018.c915b"]]},{"id":"31847c00ada43b02","type":"inject","z":"b2841f81.4dd1e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"from","v":"me@myserver.com","vt":"str"},{"p":"to","v":"testuser@testserver.com","vt":"str"},{"p":"attachments","v":"[{\"filename\":\"foo.txt\",\"content\":\"Simple test message\"}]","vt":"json"},{"p":"priority","v":"high","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Some Subject or other","payload":"See file attached","payloadType":"str","x":132.5,"y":300,"wires":[["015f14e12afd555f"]]},{"id":"015f14e12afd555f","type":"e-mail","z":"b2841f81.4dd1e","server":"localhost","port":"25","authtype":"BASIC","saslformat":true,"token":"oauth2Response.access_token","secure":false,"tls":false,"name":"","dname":"","x":375,"y":300,"wires":[]},{"id":"c1003c6334fc9221","type":"global-config","env":[],"modules":{"node-red-node-email":"5.0.0"}}]

```

---

<div class="post-metadata">

**Author:** ![kolaval](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kolaval/32/102856_2.png) [@kolaval](https://discourse.nodered.org/u/kolaval)\
**Post date:** [7 November 2025 04:41 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/3 "2025-11-07T04:41:41Z")

</div>

I'll try.

1. MTA node is used as is:  

2. .NET SMTP client trying to authenticate:

```auto
 try
 {
   ICredentials credentials = new NetworkCredential(section["Username"], section["Password"]);
   client.Authenticate(credentials);
   Console.WriteLine($"Authenticated...");
 }
 catch (Exception ex)
 {
Console.WriteLine($"{ex.Message}");
}

```

throws an exception of : "The SMTP server does not support authentication."

1. DVR setup with no username, works, and I see it in Node-red.
2. DVR setup with username, fails (and I get no message in Node-red):

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/9522f1f7e429c29febf71c9211bc4556285dd519.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [7 November 2025 14:35 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/4 "2025-11-07T14:35:06Z")

</div>

Not sure really - I have tried locally with both Node-RED sending the mail and a local Thunderbird client - and both work ok. To me they look like client errors that are reporting back that the server doesn't support authentication - which is indeed how you have set it up... so why would you want the server to mislead you ?

---

<div class="post-metadata">

**Author:** ![kolaval](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kolaval/32/102856_2.png) [@kolaval](https://discourse.nodered.org/u/kolaval)\
**Post date:** [7 November 2025 18:14 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/5 "2025-11-07T18:14:58Z")

</div>

Not mislead. If no authentication is selected I would assume it would ignore credentials rather than reject.  
No problem though, I'll work with it, thanks for the help.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [7 November 2025 19:18 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/6 "2025-11-07T19:18:27Z")

</div>

Not sure why it actually rejects as all tests I have done still seem to deliver the mail. Maybe the client is refusing to send if it sees no handshake.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 February 2026 19:18 UTC](https://discourse.nodered.org/t/node-red-node-email-ignore-users-if-no-authentication-is-set/99612/7 "2026-02-05T19:18:38Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
