# Cannot send email from passbolt docker to microsift office 356 outlook (smtp.office365.com:587))

**URL:** <https://community.passbolt.com/t/cannot-send-email-from-passbolt-docker-to-microsift-office-356-outlook-smtp-office365-com-587/7855>\
**Category:** API & Customization issues\
**Created:** [June 27, 2023, 3:42am UTC](https://community.passbolt.com/t/cannot-send-email-from-passbolt-docker-to-microsift-office-356-outlook-smtp-office365-com-587/7855 "2023-06-27T03:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeewan1981](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/jeewan1981/32/2730_2.png) [@jeewan1981](https://community.passbolt.com/u/jeewan1981)\
**Post date:** [June 27, 2023, 3:42am UTC](https://community.passbolt.com/t/cannot-send-email-from-passbolt-docker-to-microsift-office-356-outlook-smtp-office365-com-587/7855/1 "2023-06-27T03:42:52Z")

</div>

Docker container is setup on Azure VM (Ubantu) and email configuration has been setup as following in docker-composer file as followins,

EMAIL\_DEFAULT\_FROM=noReply@localhost  
EMAIL\_DEFAULT\_TRANSPORT=Smtp  
EMAIL\_TRANSPORT\_DEFAULT\_HOST=[smtp.office365.com](http://smtp.office365.com)  
EMAIL\_TRANSPORT\_DEFAULT\_PORT=587  
EMAIL\_TRANSPORT\_DEFAULT\_TIMEOUT=30  
EMAIL\_TRANSPORT\_DEFAULT\_USERNAME=xxxxxx@xxx.onsys.com.au  
EMAIL\_TRANSPORT\_DEFAULT\_PASSWORD=xxxxxxx  
EMAIL\_TRANSPORT\_DEFAULT\_CLIENT=null  
EMAIL\_TRANSPORT\_DEFAULT\_TLS=true  
EMAIL\_TRANSPORT\_DEFAULT\_URL=null

error,

“cmd”: “AUTH LOGIN”,  
“response”: [  
{  
“code”: “504”,  
“message”: “5.7.4 Unrecognized authentication type [[SYBPR01CA0128.ausprd01.prod.outlook.com](http://SYBPR01CA0128.ausprd01.prod.outlook.com) 2023-06-26T11:38:25.003Z 08DB755D85D55973]”  
}

Any fix or comments please?

---

<div class="post-metadata">

**Author:** ![jeewan1981](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/jeewan1981/32/2730_2.png) [@jeewan1981](https://community.passbolt.com/u/jeewan1981)\
**Post date:** [June 27, 2023, 3:44am UTC](https://community.passbolt.com/t/cannot-send-email-from-passbolt-docker-to-microsift-office-356-outlook-smtp-office365-com-587/7855/2 "2023-06-27T03:44:47Z")

</div>

Tried [smtp-legacy.office.com](http://smtp-legacy.office.com) and it did now shaw similar error, but email did not receive as expected.

```
"cmd": "AUTH LOGIN",
    "response": [
        {
            "code": "334",
            "message": "VXNlcm5hbWU6"
        }
    ]
},
{
    "cmd": "amVld2FuYUBzdXBwb3J0Lm9uc3lzLmNvbS5hdQ==",
    "response": [
        {
            "code": "334",
            "message": "UGFzc3dvcmQ6"
        }
    ]
}

```

]

---

<div class="post-metadata">

**Author:** ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)\
**Post date:** [June 27, 2023, 7:00am UTC](https://community.passbolt.com/t/cannot-send-email-from-passbolt-docker-to-microsift-office-356-outlook-smtp-office365-com-587/7855/3 "2023-06-27T07:00:59Z")

</div>

Does the account you are using to connect to o365 have MFA set up on it? If so you’ll need an app password to use here
