Topic: SoGo&ActiveSync damage attachments in 7bit e-mail

- iRedMail version (check /etc/iredmail-release): 1.4.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: latest CentOS 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
we have a following problem:
- some of the recived e-mails with attachments has damaged attachments when accessing mailbox through Exchange ActiveSync protocol. It occurs in different versions of Outtlook same as from different mobile phones.
- web mail access is OK, IMAP access is OK.

When I want to repeat problem I take for example some PDF file, in ThunderBird e-mail client I sent it to me in e-mail with only e-mail address of reciever and simple subject "test" without any text. Recieved e-mail has following header(only important part):
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
MIME-Version: 1.0
Content-Type: multipart/mixed;
Content-Language: cs

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=iso-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Content-Type: application/pdf;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;

When accessing my mailbox in ThunderBird, PDF file has size 3,8MB and is OK. When I am accessing my mailbox in Outlook, PDF file has size 5MB and is KO ... file is empty

Error occured after update our Redmail server during weekend 2ng and 3rd of october


Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team.


Re: SoGo&ActiveSync damage attachments in 7bit e-mail

Please report this bug to SOGo team:


Re: SoGo&ActiveSync damage attachments in 7bit e-mail

It seems to me, that we are not able to report it directly to SOGo team. We have registred, but have account only for reading in ther BTS with no info how to change it.

Please help

4 (edited by afanasevl 2021-10-18 18:47:52)

Re: SoGo&ActiveSync damage attachments in 7bit e-mail

I have found solution, that helps me. We have same issue with our mail server and active sync clients (via outlook).

Just change encoding settings in Outlook to UTF-8 in all client's PCs, and attachments will never be blank or damaged any more, and size will be same. It helps me, I think you can try it to!

I trying to find the solution from server-side, but I dont know, how to resolve this problem that way.