# Some e-mail safety issue

**URL:** <https://talk.getindico.io/t/some-e-mail-safety-issue/2372>\
**Category:** General Discussion\
**Created:** [August 25, 2021, 8:31am UTC](https://talk.getindico.io/t/some-e-mail-safety-issue/2372 "2021-08-25T08:31:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VanguardAX1](https://talk.getindico.io/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@VanguardAX1](https://talk.getindico.io/u/VanguardAX1)\
**Post date:** [August 25, 2021, 8:31am UTC](https://talk.getindico.io/t/some-e-mail-safety-issue/2372/1 "2021-08-25T08:31:46Z")

</div>

1. It seems my SMTP would send infinite verification e-mails if a user constantly click “create user”. That feels dangerous. I would like it to only response to certain e-mail suffix, or something like `FAILED_LOGIN_RATE_LIMIT` ?
2. Seems my SMTP only works when set to use 25 port, and when set to 465(SSL) nothing happens. It’s that a problem from my SMTP provider?
3. And nothing happens either if I change my `NO_REPLY_EMAIL`, I suppose that is my SMTP provider’s restriction?

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [August 25, 2021, 8:39am UTC](https://talk.getindico.io/t/some-e-mail-safety-issue/2372/2 "2021-08-25T08:39:08Z")

</div>

> [@VanguardAX1](#):
>
> It seems my SMTP would send infinite verification e-mails if a user constantly click “create user”.

Good idea, we should indeed rate-limit this.

> [@VanguardAX1](#):
>
> Seems my SMTP only works when set to use 25 port, and when set to 465(SSL) nothing happens. It’s that a problem from my SMTP provider?

AFAIK SMTP+SSL over 465 is deprecated; usually you would use port 587 with STARTTLS. We currently do not expose a setting to use SSL without STARTTLS.

> [@VanguardAX1](#):
>
> And nothing happens either if I change my `NO_REPLY_EMAIL`, I suppose that is my SMTP provider’s restriction?

Did you restart uwsgi (and indico-celery)? Otherwise config file changes are not taken into account

---

<div class="post-metadata">

**Author:** ![VanguardAX1](https://talk.getindico.io/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@VanguardAX1](https://talk.getindico.io/u/VanguardAX1)\
**Post date:** [August 25, 2021, 8:49am UTC](https://talk.getindico.io/t/some-e-mail-safety-issue/2372/3 "2021-08-25T08:49:31Z")

</div>

> [@ThiefMaster](#):
>
> AFAIK SMTP+SSL over 465 is deprecated; usually you would use port 587 with STARTTLS. We currently do not expose a setting to use SSL without STARTTLS.

Seems my email provider is little old-fashioned 🤔 They only provide 25 and 465 for SMTP.

> [@ThiefMaster](#):
>
> Did you restart uwsgi (and indico-celery)? Otherwise config file changes are not taken into account

Yes, I restarted every service. I think they limited it to avoid spam mails.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [August 25, 2021, 8:54am UTC](https://talk.getindico.io/t/some-e-mail-safety-issue/2372/4 "2021-08-25T08:54:37Z")

</div>

STARTTLS may be possible on port 25 as well; i’d give that a try
