# Email non funziona affatto

**URL:** https://meta.discourse.org/t/email-not-working-at-all/165117
**Category:** Self-hosting
**Created:** [23 Settembre 2020, 6:10pm UTC](https://meta.discourse.org/t/email-not-working-at-all/165117 "2020-09-23T18:10:34Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Batman212369](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/batman212369/32/194481_2.png) [@Batman212369](https://meta.discourse.org/u/Batman212369)
#### Post date: [24 Settembre 2020, 2:21pm UTC](https://meta.discourse.org/t/email-not-working-at-all/165117/13 "2020-09-24T14:21:04Z")

</div>

**AGGIORNAMENTO:** Utilizzando il comando `curl --ssl-reqd`, ho testato le porte 465, 587, 25 e 2525. I risultati sono stati:  
25: Non ha funzionato (Errore Curl 35, numero di versione errato)  
465: Ha funzionato come previsto con una rapida risposta via email  
587: Non ha funzionato (Errore Curl 35, numero di versione errato)  
2525: Non ha fallito, ma non ha mai inviato un’email (il tempo trascorso è aumentato senza mai fermarsi durante l’invio di nessuna email)

Se può essere utile, le mie impostazioni attuali sono (con l’errore 502):

```yml
  DISCOURSE_SMTP_ADDRESS: CENSORED
  DISCOURSE_SMTP_PORT: 465
  DISCOURSE_SMTP_USER_NAME: CENSORED
  DISCOURSE_SMTP_PASSWORD: CENSORED
  # DISCOURSE_SMTP_ENABLE_START_TLS: true # (opzionale, valore predefinito true)

```

Template:

```yml
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Rimuovi il commento da queste due righe se desideri aggiungere Lets Encrypt (https)
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"

```

E l’esposizione:

```yml
expose:
  - "80:80" # http
  - "443:443" # https

```

Questa è un’immagine con le informazioni sull’email:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/a/ea11f95db65e4bcf613963dabd1a87ecf0d211db.png)  
Non sono sicuro se il motivo sia che Discourse non si connette tramite SSL/TLS o qualcosa di altro. Spero che queste informazioni siano utili e aiutino a risolvere il problema.

---

_[View the full topic](https://meta.discourse.org/t/email-not-working-at-all/165117)._
