# Microsoft smtp server setup

**URL:** <https://community.taiga.io/t/microsoft-smtp-server-setup/4996>\
**Category:** Self hosted Taiga\
**Tags:** docker\
**Created:** [January 28, 2025, 9:13am UTC](https://community.taiga.io/t/microsoft-smtp-server-setup/4996 "2025-01-28T09:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avenash\_Sharma](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/avenash_sharma/32/3486_2.png) [@Avenash\_Sharma](https://community.taiga.io/u/Avenash_Sharma)\
**Post date:** [January 28, 2025, 9:13am UTC](https://community.taiga.io/t/microsoft-smtp-server-setup/4996/1 "2025-01-28T09:13:20Z")

</div>

i have self hosted taiga management on my server i have configured the smtp environment for sending mails but when i try to send the mail from the server it shows me this error logs i have configured the smtp environment because i am using Microsoft office 365 account

EMAIL\_BACKEND=smtp  
EMAIL\_HOST=[smtp.office365.com](http://smtp.office365.com)  
EMAIL\_PORT=587  
EMAIL\_HOST\_USER=task@abcde.dev  
EMAIL\_HOST\_PASSWORD=  
EMAIL\_DEFAULT\_FROM=task@abcde.dev  
EMAIL\_USE\_TLS=True  
EMAIL\_USE\_SSL=False

i am getting this log

smtplib.SMTPAuthenticationError: (535, b"5.7.139 Authentication unsuccessful, user is locked by your organization’s security defaults policy. Contact your administrator. [[PN3PR01CA0173.INDPRD01.PROD.OUTLOOK.COM](http://PN3PR01CA0173.INDPRD01.PROD.OUTLOOK.COM) 2025-01-28T08:02:34.457Z 08DD3F0EED88BC46]")

can someone help me how to ingerate microsoft office 365 smtp server in taiga
