# Email settings not able to send email with mailbox is 2 factor authentication enable

**URL:** <https://forum.keycloak.org/t/email-settings-not-able-to-send-email-with-mailbox-is-2-factor-authentication-enable/9424>\
**Category:** Miscellanaeous\
**Created:** [June 4, 2021, 8:26am UTC](https://forum.keycloak.org/t/email-settings-not-able-to-send-email-with-mailbox-is-2-factor-authentication-enable/9424 "2021-06-04T08:26:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuling3086](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@yuling3086](https://forum.keycloak.org/u/yuling3086)\
**Post date:** [June 4, 2021, 8:26am UTC](https://forum.keycloak.org/t/email-settings-not-able-to-send-email-with-mailbox-is-2-factor-authentication-enable/9424/1 "2021-06-04T08:26:24Z")

</div>

Hi,

I try to setup mail settings in our Keycloak realm.  
While our mailbox required 2 factor authentication enable,may I know how should I setup this at Keycloak?

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [June 4, 2021, 11:36am UTC](https://forum.keycloak.org/t/email-settings-not-able-to-send-email-with-mailbox-is-2-factor-authentication-enable/9424/2 "2021-06-04T11:36:37Z")

</div>

2fa for SMTP isn’t supported by keycloak.
