haraka / haraka-plugin-attachment

Haraka Plugin for Attachment Filtering
https://www.npmjs.com/package/haraka-plugin-attachment
MIT License
2 stars 5 forks source link
attachment haraka-plugin

attachment

Build Status Code Climate NPM

This plugin allows you to reject messages based on Content-Type within the message or any MIME parts or on the filename of any attachments.

Limitations

This plugin cannot detect forged MIME types where the sender is lying about the type. The type is not confirmed in any way currently.

Encrypted archives that contain encrypted sub-archives cannot be expanded and will cause the plugin to reject the message.

Requirements

To check filenames inside archive files the npm module tmp is required and the bsdtar binary must be available.

If either tmp or bsdtar are unavailable then the plugin will not expand archives.

Logging

At INFO level logging this plugin will output the filename and type of each attached file along with an MD5 checksum of the contents. The MD5 checksum is useful to check against www.virustotal.com

Configuration