Introduction
By default, Exim blocks attachments with the .eml extension for security. This article provides the steps to modify the Exim configuration to allow attachments with the .eml extension.
Procedure
- Log into WHM as the ‘root’ user.
- Navigate to "Home / Service Configuration / Exim Configuration Manager."
- Click the "Advanced Editor" tab.
- Scroll down to the "acl_not_smtp_mime" section.
- Deselect the "disallowed_filenames_bl" option.
- Select the "custom_begin_not_smtp_mime" option.
- Paste the following into the "custom_begin_not_smtp_mime" textbox.
# Reject inbound mail with potentially dangerous attachments # Obfuscation of file names using parameter value continuation evades other filters, but not this one deny log_message = DENY: disallowed \"$mime_filename\" condition = ${if match \ {${lc:$mime_filename}} \ {[.](ad[ep]|ba[st]|chm|cmd|com|cpl|crt|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc])\$}} message = Attached file '$mime_filename' has disallowed extension.
accept - Scroll down to the "acl_smtp_mime" section.
- Deselect the "disallowed_filenames_bl" option.
- Select the "custom_begin_smtp_mime" option.
- Paste the following into the "custom_begin_smtp_mime" textbox.
# Reject inbound mail with potentially dangerous attachments # Obfuscation of file names using parameter value continuation evades other filters, but not this one deny log_message = DENY: disallowed \"$mime_filename\" condition = ${if match \ {${lc:$mime_filename}} \ {[.](ad[ep]|ba[st]|chm|cmd|com|cpl|crt|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc])\$}} message = Attached file '$mime_filename' has disallowed extension.
accept - Scroll down to the bottom of the page.
- Click the "Save" button.