Introduction
MailScanner scans email attachments to protect mail servers from malicious files. By default, it may block archive files such as .zip, .tar, and .gz if they contain executable or potentially dangerous file types. If required, you can configure MailScanner to allow these archive formats while continuing to scan the attachments for viruses.
Prerequisites
- Root or sudo access to the server
- Access to WHM
- MailScanner installed and configured
Implementation
Step 1
Log in to WHM.
Step 2
Navigate to:
WHM → MailScanner → MailScanner Configuration
Step 3
Search for the setting:
Maximum Archive Depth
Step 4
Set the value to:
0
This disables archive content checking and allows archive files such as .zip, .tar, and .gz to pass through MailScanner.
Step 5
Save the configuration changes.
Step 6
Send a test email with a supported archive attachment to verify that it is delivered successfully.
Conclusion
Setting Maximum Archive Depth to 0 allows archive files such as .zip, .tar, and .gz to be sent through MailScanner without being blocked due to their contents. The attachments will continue to be scanned for viruses, helping maintain email security while allowing archive file transfers.
FAQs
1. Why does MailScanner block ZIP, TAR, and GZ files?
MailScanner may block archive files when they contain executable or potentially dangerous file types. This is part of its attachment security checks.
2. How can I allow archive files through MailScanner?
In WHM → MailScanner → MailScanner Configuration, locate Maximum Archive Depth and set its value to 0. Save the configuration and test by sending an email with an archive attachment.
3. Will archive files still be scanned for viruses?
Yes. Setting Maximum Archive Depth to 0 allows the archive files to pass through without being blocked due to their contents, while the attachments can still be scanned for viruses.
Related Articles
MailScanner – Allow Specific File Extensions
Learn how to configure MailScanner to allow specific attachment extensions when certain file types are being blocked by the mail server.
MailScanner – Allow Extensions
Configure Email Account on a Mac Machine
Learn how to configure an email account on a Mac machine and set up the required email account settings for sending and receiving messages.
Configure Email Account on a Mac Machine
Talk to our experts
Looking for the right technology solution for your business? Our team of experts can help you with development, cloud, DevOps, design, and a wide range of other technology needs. Get in touch with our team here.