Block dangerous email attachments on cPanel servers

This feature is an Exim feature available trough the Exim Configuration Manager in WHM. It allows you to filter well-known dangerous attachments files – as exe, reg, scr etc. extensions.

When a server will receive an email containing a blocked attachment, it will generate an error message:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
user@plothost.com

This message has been rejected because it has
a potentially executable attachment “sss.exe”
This form of attachment has been used by
recent viruses or other malware.
If you meant to send this file then please
package it up as a zip file and resend it.

EXIM error message
cpanel exim block
Filers in Exim Configuration Manager

Steps to block dangerous email attachments in cPanel/WHM:

1. Login to your WHM root account

2. Navigate to Service Configuration >> Exim Configuration Manager

3. In the Basic Editor look for the Filters tab

4. Enable the option Attachments: Filter messages with dangerous attachments

This Post Has 2 Comments

  1. Yogesh

    its useless.

    don’t block even .exe files

    getting spam in the form of .exe, .zip, .7z, .exe.xz, .ra00 etc. etc. forms.

    1. What A Jokew

      Totally agree with yogesh, what a fcukin joke.

Leave a Reply