diff --git a/MacroMilter/config.ini b/MacroMilter/config.ini deleted file mode 100644 index 6828d04..0000000 --- a/MacroMilter/config.ini +++ /dev/null @@ -1,26 +0,0 @@ -[Milter] -# at postfix smtpd_milters = inet:127.0.0.1:3690 -# bind to unix or tcp socket "inet:port@ip" or "///.sock" -SOCKET = inet:3690@127.0.0.1 -# Milter timout in seconds -TIMEOUT = 30 -# Define the max size for each message in bytes (~50BM) -MAX_FILESIZE = 50000000 -# Directory for the macromilter configuration and withlist -CFG_DIR = /etc/macromilter/ -# Reject error message -MESSAGE = ERROR - Attachment contains unallowed office macros! -# Reject the mail if a malware macro is detected (yes/no) -REJECT_MESSAGE = yes -# Max nested archive depth - recomandation = 5 -MAX_ZIP = 5 - -[Logging] -LOGFILE_DIR = /var/log/macromilter -LOGFILE_NAME = macromilter.log -# Loglevels are: 1 = Debug (default) , 2 = Info, 3 = Warning/Error -LOGLEVEL = 1 - -[Whitelist] -# Add (comma seperated) some whitelisted recipients to the list to skip the VBA parsing "xyz@example.de","@example.de" -Recipients = "", "" \ No newline at end of file diff --git a/MacroMilter/install_ubuntu.sh b/MacroMilter/install_ubuntu.sh deleted file mode 100644 index b3e97b9..0000000 --- a/MacroMilter/install_ubuntu.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# create files and folders -mkdir /etc/macromilter/ -mkdir -p /var/log/macromilter/ -# only needed for a chroot env -# mkdir /var/spool/postfix/etc/milter - -# install macromilter dependencies -apt-get update -apt-get install python2.7 python2.7-dev libmilter-dev libmilter1.0.1 python-pip - -# install oletools -pip install oletools -# install pymilter --> maybe you need some addtional dependencies - see doc -pip install pymilter -# install configparser -pip install configparser - -# copy the python script -cd /usr/bin/ -wget https://raw.githubusercontent.com/sbidy/MacroMilter/master/macromilter/macromilter.py -cd /etc/macromilter/ -wget https://raw.githubusercontent.com/sbidy/MacroMilter/master/macromilter/config.ini -# setup upstart config -cd /etc/init/ -wget https://raw.githubusercontent.com/sbidy/MacroMilter/master/macromilter/MacroMilter.conf -cd /etc/logrotate.d/ -wget https://raw.githubusercontent.com/sbidy/MacroMilter/master/macromilter/macromilter.logrotate -initctl reload-configuration - - -# set chown for postfix -chown postfix:postfix -R /etc/macromilter -chown postfix:postfix -R /var/log/macromilter -chown postfix:postfix /usr/bin/macromilter.py - -# only needed if you run the milter at chroot an with a linux-socket -# chown postfix:postfix -R /var/spool/postfix/etc/milter - -# start and check -service MacroMilter start -tail /var/log/syslog