Implement OLE Filter on Debian 8 / Postfix (Mraptor Milter)

Published on Author righterLeave a comment

To avoid this stupid OLE Viruses in Office documents, there is a OLE scanner which you can implement in your postfix
http://www.decalage.info/en/python/oletools

First you need some apts:

apt-get install python-milter python-daemonize

Then you need to install the OLE tools:

pip install -U https://github.com/decalage2/oletools/archive/master.zip
chomd +x /usr/local/lib/python2.7/dist-packages/oletools/mraptor_milter.py
/usr/local/lib/python2.7/dist-packages/oletools/mraptor_milter.py

Paste this in /etc/crontab for autostart at reboot (or do a better systemd init script whatever..)

# Autostart
@reboot root /usr/local/lib/python2.7/dist-packages/oletools/mraptor_milter.py

This will not block the mails but will filter out the virus infected documents

Leave a Reply

Your email address will not be published. Required fields are marked *