# Custom email without authentication

**URL:** <https://forum.getodk.org/t/custom-email-without-authentication/58724>\
**Category:** Support\
**Tags:** odk-central\
**Created:** [October 26, 2026, 2:06pm UTC](https://forum.getodk.org/t/custom-email-without-authentication/58724 "2026-10-26T14:06:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan1](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jordan1](https://forum.getodk.org/u/jordan1)\
**Post date:** [October 26, 2026, 2:06pm UTC](https://forum.getodk.org/t/custom-email-without-authentication/58724/1 "2026-10-26T14:06:18Z")

</div>

**1. What is the issue? Please be detailed.**

Is it possible to configure ODK Central to use a custom email server without authentication? We have an internal SMTP relay server that we typically use for notification services.

Unable to send email notifications using an internal SMTP relay without authentication. It seems ODK Central config requires username/password in the custom email configuration, but this results in an error 500 when creating a user account.

**2. What steps can we take to reproduce this issue?**  
Set the custom email configuration to use an SMTP relay without authentication.

**3. What have you tried to fix the issue?**  
Various combinations of secure true/false, TLS true/false, username/pw enabled/disabled.

**4. Upload any forms or screenshots you can share publicly below.**

```auto
Error: Invalid login: 535 5.7.3 Authentication unsuccessful
at SMTPConnection.\_formatError (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:938:19)
at SMTPConnection.\_actionAUTHComplete (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:1784:34)
at SMTPConnection. (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:1738:18)
at SMTPConnection.\_processResponse (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:1150:20)
at SMTPConnection.\_onData (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:898:14)
at SMTPConnection.\_onSocketData (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:224:44)
at TLSSocket.emit (node:events:514:28)
at TLSSocket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:567:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:518:3)
at Readable.push (node:internal/streams/readable:398:5)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:189:23) {
code: 'EAUTH',
response: '535 5.7.3 Authentication unsuccessful',
responseCode: 535,
command: 'AUTH LOGIN'

```

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [October 26, 2026, 7:25pm UTC](https://forum.getodk.org/t/custom-email-without-authentication/58724/2 "2026-10-26T19:25:16Z")

</div>

Thanks for reporting this issue. I've filed at [https://github.com/getodk/central/issues/2295](https://github.com/getodk/central/issues/2295)

One quick thing to try would be changing [docker-compose.yml](https://github.com/getodk/central/blob/master/docker-compose.yml#L75) to omit the variables when they're unset by removing `${EMAIL_USER:-}` and `${EMAIL_PASSWORD:-}`.

So lines 75 and 76 in docker-compose.yml should look like this when you are done.

```auto
 - EMAIL_USER
 - EMAIL_PASSWORD

```

Then rebuild and see what if that workaround works.

```auto
docker compose build && docker compose stop && docker compose up --detach

```

---

<div class="post-metadata">

**Author:** ![jordan1](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jordan1](https://forum.getodk.org/u/jordan1)\
**Post date:** [October 27, 2026, 11:38am UTC](https://forum.getodk.org/t/custom-email-without-authentication/58724/3 "2026-10-27T11:38:51Z")

</div>

Thank you for the suggestion. I tried and I still receive the 500 error when creating a test user, but interestingly the log error has changed slightly.

```auto
Error: Invalid login: 504 5.7.4 Unrecognized authentication type
    at SMTPConnection._formatError (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:938:19)
    at SMTPConnection._actionAUTHComplete (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:1784:34)
    at SMTPConnection.<anonymous> (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:669:26)
    at SMTPConnection._processResponse (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:1150:20)
    at SMTPConnection._onData (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:898:14)
    at SMTPConnection._onSocketData (/usr/odk/node_modules/nodemailer/lib/smtp-connection/index.js:224:44)
    at Socket.emit (node:events:514:28)
    at Socket.emit (node:domain:489:12)
    at addChunk (node:internal/streams/readable:567:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:518:3)
    at Readable.push (node:internal/streams/readable:398:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
  code: 'EAUTH',
  response: '504 5.7.4 Unrecognized authentication type',
  responseCode: 504,
  command: 'AUTH PLAIN'

```

I suppose it might be a matter of omitting the login method from nodemailer: [SMTP Connection | Nodemailer](https://nodemailer.com/extras/smtp-connection#loginauth-callback)
