Email Attachment (.step file) Renamed to .step.txt on Android Download

Hello HestiaCP Community,

I’m encountering an issue where a .step (CAD model) file attached to emails sent from my HestiaCP Server is being automatically renamed to .step.txt when the recipient downloads it on an Android device (using Gmail, specifically).

I suspect this might be related to the MIME type not being correctly recognized or transmitted. I have attempted to configure the MIME type for .step files in my HestiaCP setup for the relevant web domain by adding the following to the Nginx Directives section:
Nginx

types {
application/step step;
model/step step;
}

However, the issue persists. When the recipient downloads the attachment on their Android device using Gmail, the filename is changed to include .txt.

Has anyone else experienced this issue or have any insights on how to ensure .step files are downloaded correctly on Android devices without being renamed?

Here are some details about my setup:

HestiaCP Version: 1.8.12
Web Server: Nginx 
Email Sending Method: Thunderbird
Recipient's Email Client: Gmail on Android

Any help or suggestions would be greatly appreciated!

Thank you,

mwlandolsi

This seems to be the reason for the mobile client! It has nothing to do with Hestia

Mailclients don’t use nginx at all…

So it might be an issue with the mail client

Thank you for your answer,
when I send the same file.step (or .stp) from gmail or hotmail to the same mail client (gmail or thunderbird), it is not renamed it to .step.txt !

Check mime types in /etc folder to see if it is included. It can also be your email client or the recipient email setups/client setups.
It can also be OS related (doubtful though).

Sorry to deactivate the solved button!