# Nextcloud + Davmail + Exchange incorrect attachment (.eml)

**URL:** <https://help.nextcloud.com/t/nextcloud-davmail-exchange-incorrect-attachment-eml/75337>\
**Category:** ℹ️ Support\
**Created:** [March 26, 2020, 9:28am UTC](https://help.nextcloud.com/t/nextcloud-davmail-exchange-incorrect-attachment-eml/75337 "2020-03-26T09:28:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unwellchik](https://help.nextcloud.com/letter_avatar/unwellchik/32/5_5575768a8748004e209b776fc1b2916d.png) [@unwellchik](https://help.nextcloud.com/u/unwellchik)\
**Post date:** [March 26, 2020, 9:28am UTC](https://help.nextcloud.com/t/nextcloud-davmail-exchange-incorrect-attachment-eml/75337/1 "2020-03-26T09:28:59Z")

</div>

Hello!

Given: Nextcloud 18.0.3 (with maill app), Davmail 5.4.0, Exchange 2013  
mail arrives and leaves, there are no problems.

The problem with attachments (any format)! They are, but they are downloaded as .eml files that are empty inside. Images in the letter itself are also not displayed.

Downloading the .eml file and changing the extension to the appropriate one does not help, nothing opens then.  
Through Davmail in Outlook 2007, these same files come normal, no problem.  
I connected gmail to nextcloud, all attachments to nextcloud come normal, no problem.

It turns out the problem is in a bunch of Nextcloud Davmail Exchange. Moreover, Davmail and Exchange work fine together. Both Nextcloud and Gmail also work fine.

Explored the entire Internet, nothing helps, please help!

P.S. - Nextcloud maill app: [https://apps.nextcloud.com/apps/mail](https://apps.nextcloud.com/apps/mail)  
Server: Debian 10.3, nginx/1.14.2, php 7.4

---

<div class="post-metadata">

**Author:** ![unwellchik](https://help.nextcloud.com/letter_avatar/unwellchik/32/5_5575768a8748004e209b776fc1b2916d.png) [@unwellchik](https://help.nextcloud.com/u/unwellchik)\
**Post date:** [March 30, 2020, 2:23am UTC](https://help.nextcloud.com/t/nextcloud-davmail-exchange-incorrect-attachment-eml/75337/2 "2020-03-30T02:23:17Z")

</div>

I solved the problem for myself using Exchange directly bypassing Davmail. Apparently Davmail modifies the data and nextcloud mail does not know how to display it correctly.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 9:21pm UTC](https://help.nextcloud.com/t/nextcloud-davmail-exchange-incorrect-attachment-eml/75337/3 "2024-12-11T21:21:21Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 9:21pm UTC](https://help.nextcloud.com/t/nextcloud-davmail-exchange-incorrect-attachment-eml/75337/4 "2024-12-11T21:21:22Z")

</div>


