Skip to content
mybox Help Center

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
mybox.com All services operational
/

Language

  • English
  • Română
  • mybox panel
  • Webmail
Start free
/
  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
  • Help Center
  • mybox.com
  • English
  • Română
All services operational Start free
  1. Help Center
  2. Email
  3. Spam, Security & Deliverability
Explainer Email

Block specific attachments in emails

Updated June 9, 2026 2 min read
On this page
  1. Why block specific attachments?
  2. Common high-risk attachment types
  3. Executable files
  4. Script files
  5. Macro-enabled documents
  6. Compressed archives
  7. Additional considerations
  8. Password-protected archives
  9. Large attachments
  10. Best practices for handling attachments
  11. Practical implications
  12. Summary

Email attachments are one of the most common ways malware is distributed. Blocking high-risk file types can help reduce the risk of malicious software reaching users’ inboxes and improve the overall security of your email environment.

This article explains which attachment types are commonly considered risky and why organizations may choose to block them.

Why block specific attachments?

Some file types can execute code directly on a computer or trigger automated actions when opened. If a malicious file reaches a user’s inbox and is opened, it may install malware, steal data, or compromise the device.

Blocking these file types before delivery reduces the likelihood of accidental execution and helps protect users from common email-based threats.

Common high-risk attachment types

While any file can potentially be harmful, certain attachment types are more frequently used in phishing and malware campaigns.

Executable files

Examples:

  • .exe
  • .com
  • .bat
  • .msi

These files are designed to run programs directly on a computer. For this reason, they are often blocked by email providers and security systems.

Script files

Examples:

  • .vbs
  • .js
  • .ps1

Script files can automate actions on a device and may be used to download or execute malicious software.

Macro-enabled documents

Examples:

  • .docm
  • .xlsm

These file types can contain embedded macros that perform automated actions when opened. In some cases, attackers use malicious macros to compromise systems.

Compressed archives

Examples:

  • .zip
  • .rar
  • .7z

Archives are commonly used for legitimate file sharing, but they can also be used to hide malicious files from basic filtering mechanisms.

Additional considerations

Password-protected archives

Encrypted archives cannot always be inspected by email security systems because their contents are protected by a password.

If you receive an unexpected password-protected archive, verify its source before opening it.

Large attachments

Unusually large attachments may not necessarily be malicious, but they can create storage and delivery issues. Many organizations choose to enforce attachment size limits as part of their email security policies.

Best practices for handling attachments

To improve email security:

  • Do not open unexpected attachments from unknown senders.
  • Verify suspicious files through a separate communication channel.
  • Scan downloaded files with security software before opening them.
  • Keep operating systems and antivirus software up to date.
  • Use cloud storage links when sharing large files instead of email attachments.

Practical implications

Blocking high-risk attachment types helps reduce the likelihood of malware reaching users through email. However, attachment filtering should be combined with other security measures such as spam filtering, antivirus protection, user awareness training, and email authentication technologies.

No single security measure eliminates all threats, but a layered approach can significantly reduce risk.

Summary

Certain attachment types are commonly associated with malware distribution and phishing campaigns. By identifying and restricting high-risk file formats, organizations can strengthen email security and reduce the risk of malicious files being opened by users.

Attachment filtering is most effective when combined with broader email security practices and user awareness.

Was this article helpful?

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.

Helpdesk 24/7 Open a ticket in the mybox panel mybox panel Log in and manage your services

On this page

  1. Why block specific attachments?
  2. Common high-risk attachment types
  3. Executable files
  4. Script files
  5. Macro-enabled documents
  6. Compressed archives
  7. Additional considerations
  8. Password-protected archives
  9. Large attachments
  10. Best practices for handling attachments
  11. Practical implications
  12. Summary

Related articles

All in Spam, Security & Deliverability
Explainer Spam, Security & Deliverability Why Does a Contact Form Say an Email Was Sent When Nothing Arrives? A website contact form may display a success message even though the intended recipient never receives an email. 4 min read Problem Spam, Security & Deliverability Why Can Some Recipients Receive My Emails While Others Cannot? An email sent from your domain may arrive successfully at one recipient while being rejected, delayed, or filtered by another. 4 min read Problem Spam, Security & Deliverability How to Diagnose DKIM Failures and DMARC Alignment Problems DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting, and Conformance) help receiving mail servers verify the authenticity of incoming messages. 4 min read
mybox

Modular web hosting – free out of the box, modular to grow.

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online

mybox

  • mybox.com
  • mybox panel
  • Webmail
  • Helpdesk 24/7
© 2026 mybox 1,680 articles