# If local logins are disabled

**URL:** https://meta.discourse.org/t/if-local-logins-are-disabled/403735
**Category:** Support
**Created:** [May 25, 2026, 4:27am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735 "2026-05-25T04:27:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 25, 2026, 4:27am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/1 "2026-05-25T04:27:11Z")

</div>

Hi,

starting a forum, completely new to discourse, hosted on DO, for some reason has issue with smtp or port issue. Now, wanted to find out if you have gone with google logins or social logins and no issue if local sign ups/logins is not in your forum

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 25, 2026, 5:47am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/2 "2026-05-25T05:47:56Z")

</div>

> [@abeen](#):
>
> hosted on DO,

[SMTP is blocked on DO by default.](https://docs.digitalocean.com/support/why-is-smtp-blocked/) If you want to use mail, you’ll need to find a proxy somewhere. Lots of people have said that Mailgun is what works good for Discourse on the cloud but that is not something I have experience with.

This might be what you’re after:

> [@Configure Mailgun for email when using Digital Ocean for DNS](https://meta.discourse.org/t/configure-mailgun-for-email-when-using-digital-ocean-for-dns/40590):
>
> I had a little bit of trouble to connect Mailgun and Digital Ocean (espacially the DNS configuration in Digital Ocean), so I’ve decided to create a little guide to help others : Connecting Mailgun with Digital Ocean Initial configuration in Mailgun [Sign up on Mailgun](https://mailgun.com/signup) Activate your account (you may have to wait 5-10 minutes to receive your activation mail) In Mailgun, do to Domains, Add a New domain. In my example I didn’t use a subdomain as they recommended, I wanted my emails to be noreply@my…

> [@abeen](#):
>
> Now, wanted to find out if you have gone with google logins or social logins and no issue if local sign ups/logins is not in your forum

Yes, you can use social login (Discord, Google, …) or Discourse ID (no setup) without SMTP. You’ll lose digests and email notifications, but if your goal is _just_ a community it will work fine even with lower engagement (digests are designed to help retention).

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 25, 2026, 6:50am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/3 "2026-05-25T06:50:40Z")

</div>

great, i’ve tried sendgrid, mailgun & resend. have same issue, could be port issue, tried all ports. For now I want to see if social logins are fine, and get rid of local logins.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 25, 2026, 2:09pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/4 "2026-05-25T14:09:14Z")

</div>

You can disable the `enable local logins` site setting if you wish to remove local logins. You can also try [Discourse ID](https://meta.discourse.org/t/how-discourse-id-works/379565).

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 25, 2026, 2:40pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/5 "2026-05-25T14:40:42Z")

</div>

> [@abeen](#):
>
> great, i’ve tried sendgrid, mailgun & resend. have same issue, could be port issue, tried all ports. For now I want to see if social logins are fine, and get rid of local logins.

hello @abeen welcome 👋  
i’ve done numerous self-hosted installs with Mailgun and Resend on Digitalocean (and other cloud servers) - can you give more information on what issue you are encountering? are you editing your `app.yml` with the appropriate settings? i assume this is a [standard install](https://meta.discourse.org/t/142537?silent=true)?

for Resend:

```yml
  DISCOURSE_HOSTNAME: <forum.yourforum.etc>
  DISCOURSE_DEVELOPER_EMAILS: <your-email@emailaddress.com>
  DISCOURSE_SMTP_ADDRESS: smtp.resend.com
  DISCOURSE_SMTP_PORT: 2525
  DISCOURSE_SMTP_USER_NAME: resend
  DISCOURSE_SMTP_PASSWORD: "xxxx"

```

for Mailgun

```yml
  DISCOURSE_HOSTNAME: <forum.yourforum.etc>
  DISCOURSE_DEVELOPER_EMAILS: <your-email@emailaddress.com>
  DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org
  DISCOURSE_SMTP_PORT: 2525
  DISCOURSE_SMTP_USER_NAME: <your.mailgun.acccount.email>
  DISCOURSE_SMTP_PASSWORD: "xxxx"

```

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 26, 2026, 11:09am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/6 "2026-05-26T11:09:26Z")

</div>

DO says “Please be informed that, in addition to the previously blocked port 25, ports 465 and 587 have been blocked on droplets as of March 6, 2025. This is to make sure that the DigitalOcean servers are not used to send spam emails.”

and I see inside the admin panel  
There are 30 email jobs that failed. Check your app.yml and ensure that the mail server settings are correct. [See the failed jobs in Sidekiq](https://dobato.au/sidekiq/retries).

recreated the resend api, changed the port to 587, tried with 2525. Nothing is working for me.

this is my yaml

```plaintext

LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
DISCOURSE_HOSTNAME: dobato.au
DISCOURSE_DEVELOPER_EMAILS: myemail@outlook.com
DISCOURSE_SMTP_ADDRESS: smtp.resend.com
DISCOURSE_SMTP_USER_NAME: resend
DISCOURSE_SMTP_PASSWORD: “re_my password here”
DISCOURSE_SMTP_PORT: 2525
DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.au
DISCOURSE_SMTP_DOMAIN: dobato.au

```

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 26, 2026, 12:50pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/7 "2026-05-26T12:50:00Z")

</div>

> [@abeen](#):
>
> ```plaintext
> DISCOURSE_SMTP_PASSWORD: “re_my password here”
> 
> ```

- this is probably the main issue causing you problems: you are using curly quotes. YML files do not like this and usually break. you need to use single or double straight quotes like `'password'` or `"password"`

> [@abeen](#):
>
> ```plaintext
> DISCOURSE_HOSTNAME: dobato.au
> 
> ```

- did you do a [standard install](https://meta.discourse.org/t/142537?silent=true) on a subdomain or is this a root domain install? if the former, it should be something like `forum.dobato.au` or `discourse.dobato.au` (check what you have on your nameserver). unless you intended to do a root domain install, this needs fixing. if your forum is on subdomain, then the `DISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.au` will also need changing.

> [@abeen](#):
>
> ```plaintext
> DISCOURSE_SMTP_DOMAIN: dobato.au
> 
> ```

- this line is unnecessary, remove it

> [@abeen](#):
>
> ```plaintext
> DISCOURSE_SMTP_ENABLE_START_TLS: true
> 
> ```

- this line is not needed; there is no point forcing the mailer to start `STARTTLS` - the underlying ruby mailer (ActionMailer) uses `enable_starttls_auto: true` , meaning it will automatically upgrade the connection to TLS if the server (Resend) supports it. delete this line.

your correct `app.yml` section should look like this:

```yml
DISCOURSE_HOSTNAME: dobato.au # (verify this - it may be incorrect!)
DISCOURSE_DEVELOPER_EMAILS: myemail@outlook.com
DISCOURSE_SMTP_ADDRESS: smtp.resend.com
DISCOURSE_SMTP_USER_NAME: resend
DISCOURSE_SMTP_PASSWORD: "re_actual_api_key_here" # note the straight quotes!
DISCOURSE_SMTP_PORT: 2525
DISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.au

```

YML files are very strict with syntax and spacing so it is important to retain the formatting of the existing template file (see [discourse\_docker/samples/standalone.yml at main · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/blob/main/samples/standalone.yml))

also, you need to rebuild after you make changes to your `app.yml` file:

`cd /var/discourse`  
`./launcher rebuild app`

> failed jobs in Sidekiq

we can’t resolve that link since we are not admins of your forum 😉 . however, once you fix the above issues, if you an see the list of failed email jobs in sidekiq, you can click `Retry All` to instantly flush the queue and send out the backed-up emails.  
if you really want to purge them (for example, if they are just hundreds of test emails to yourself and don’t want to get flooded): you can go to that same `/sidekiq/retries` page and click `Delete All` instead.

this is all assuming you have the proper records in your domain settings on your name server.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [May 26, 2026, 7:43pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/8 "2026-05-26T19:43:37Z")

</div>

> [@Lilly](#):
>
> while Resend supports this and it should work, the standard is `587`

But DigitalOcean has blocked 587, and that’s why 2525 is used.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 26, 2026, 7:52pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/9 "2026-05-26T19:52:21Z")

</div>

oh i forgot about DO lol. 🤦🏻‍♀️ i moved off them awhile back. in my head i was thinking resend and hetzner. so yea use 2525 (i now recall switching that when i migrated too).  
edit: i fixed my post. thanks Jakee

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [May 26, 2026, 8:06pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/10 "2026-05-26T20:06:00Z")

</div>

Along with the excellent advice above, running a `rake emails:test` (see [Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326)) to immediately show the error is probably going to help.

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 26, 2026, 10:02pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/11 "2026-05-26T22:02:23Z")

</div>

my site has crashed now. it is a new site with few members, not sure how to download my custom pages and members. don’t want to use smtp at all.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 26, 2026, 10:13pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/12 "2026-05-26T22:13:39Z")

</div>

i’m sorry this is happening to you.

yea your `yml` file is likely broken. post the whole thing here (without the email addresses and passwords). this really shouldn’t be this difficult to get up and running.

just out of curiosity what size of droplet on Digitalocean are you using?

have you been able to configure if your name server is correctly configured?

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 26, 2026, 10:29pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/13 "2026-05-26T22:29:32Z")

</div>

Hi,

i have Basic / 1 vCPU / 2 GB RAM / 50 GB Disk

`env:`  
`LC_ALL: en_US.UTF-8`  
`LANG: en_US.UTF-8`  
`LANGUAGE: en_US.UTF-8`  
`DISCOURSE_HOSTNAME: dobato.au`  
`DISCOURSE_DEVELOPER_EMAILS: ``myemail@outlook.com`  
`DISCOURSE_SMTP_ADDRESS: ``smtp.resend.com`  
`DISCOURSE_SMTP_USER_NAME: resend`  
`DISCOURSE_SMTP_PASSWORD: “re_mypassword”`  
`DISCOURSE_SMTP_PORT: 587`  
`DISCOURSE_SMTP_ENABLE_START_TLS: true`  
`DISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.au`  
`DISCOURSE_SMTP_DOMAIN: dobato.au`  
`DISCOURSE_SMTP_AUTHENTICATION: login`  
`DISCOURSE_SMTP_FROM_ADDRESS: noreply@dobato.au`  
`UNICORN_WORKERS: 4`

i dont want smtp. Googling issue with some commands shows - Nginx and Unicorn are not running.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 26, 2026, 10:30pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/14 "2026-05-26T22:30:54Z")

</div>

please read my previous [post here](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/7) carefully. your yml file is incorrect.

> [@abeen](#):
>
> i have Basic / 1 vCPU / 2 GB RAM / 50 GB Disk

this should work for a non-busy forum. do you have a swap file at all? run `free -h` at the command line and post the output here. it should look something like this (but smaller numbers):

```bash
~# free -h
               total used free shared buff/cache available
Mem: 3.7Gi 2.5Gi 324Mi 116Mi 1.2Gi 1.2Gi
Swap: 2.0Gi 366Mi 1.6Gi

```

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 26, 2026, 10:55pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/15 "2026-05-26T22:55:11Z")

</div>

> [@Lilly](#):
>
> uld look something like this (b

`curl: (52) Empty reply from server`  
`root@dobato:~# free -h`  
`total used free shared buff/cache available`  
`Mem: 1.9Gi 201Mi 1.2Gi 4.0Mi 507Mi 1.6Gi`  
`Swap: 2.0Gi 0B 2.0Gi`

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 26, 2026, 11:13pm UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/16 "2026-05-26T23:13:02Z")

</div>

how about discourse on amazon Lightsail, they have Amazon SES smpt email as well.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 27, 2026, 4:08am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/17 "2026-05-27T04:08:50Z")

</div>

> [@abeen](#):
>
> “re\_mypassword”

@abeen Have you switched these to straight quotes?

Try using these instead:

```plaintext
"

```

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 27, 2026, 4:11am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/18 "2026-05-27T04:11:15Z")

</div>

i’ve got " ", double quotation mark

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 27, 2026, 4:13am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/19 "2026-05-27T04:13:18Z")

</div>

I see. It’s possible to host Discourse on Lightsail with SES (some users here do that). Or you could try port 2525 if you haven’t already. But if you want to avoid these port headaches, you could shift to a different host, like Hetzner or Lightsail.

---

<div class="post-metadata">

### Author: ![abeen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abeen/32/556478_2.png) [@abeen](https://meta.discourse.org/u/abeen)
#### Post date: [May 27, 2026, 5:01am UTC](https://meta.discourse.org/t/if-local-logins-are-disabled/403735/20 "2026-05-27T05:01:07Z")

</div>

> [@Lilly](#):
>
> your correct `app.yml` section should look like this:
> 
> ```plaintext
> DISCOURSE_HOSTNAME: dobato.au # (verify this - it may be incorrect!)
> DISCOURSE_DEVELOPER_EMAILS: myemail@outlook.com
> DISCOURSE_SMTP_ADDRESS: smtp.resend.com
> DISCOURSE_SMTP_USER_NAME: resend
> DISCOURSE_SMTP_PASSWORD: "re_actual_api_key_here" # note the straight quotes!
> DISCOURSE_SMTP_PORT: 2525
> DISCOURSE_NOTIFICATION_EMAIL: noreply@dobato.au
> 
> ```

rebuild finishes too quickly with this .. don’t know why?

[Next page](https://meta.discourse.org/t/if-local-logins-are-disabled/403735.md?page=2)
