sbidy / MacroMilter

This python based milter (mail-filter) checks an incoming mail for suspicious VBA macro code in MS 20xx Office attachments (doc, xls, ppt ...).
MIT License
37 stars 14 forks source link

Install script not working for newer Debian versions #49

Closed katschingg closed 5 years ago

katschingg commented 5 years ago

The install_ubuntu.sh script is unfortunately not working for debian (stretch). The command "initctl reload-configuration" doesn't work. And I think "service MacroMilter start" is also not working.

sbidy commented 5 years ago

Can you please post the error message or an log trace of this behavior? Thanks!

katschingg commented 5 years ago

install_ubuntu.sh:30

srv|root@/etc/logrotate.d$ initctl reload-configuration -bash: initctl: Kommando nicht gefunden.

install_ubuntu.sh:42

srv|root@/etc/logrotate.d$ service MacroMilter start Failed to start MacroMilter.service: Unit MacroMilter.service not found.

sbidy commented 5 years ago

It seems to be that your debian has upstart not installed. The demon config and the install script works only with upstart-systems. I should update the doc..

katschingg commented 5 years ago

From the debian stretch release notes:

Due to the lack of upstream maintainers, the Upstart init system has been removed from stretch. If your system relies on this package, you should note that it will not be updated during the lifetime of Debian 9, and starting from Debian 10 (buster), Upstart jobs may be removed from packages.

Please consider switching to a supported init system, like systemd or OpenRC.

sbidy commented 5 years ago

Ah, OK thank you!! I have to update the installation script to systemd rather than the documentation 😄 ... Actually there are only a package for RHEL(Fedora, CentOS) or Suse systems available.

sbidy commented 5 years ago

The install script is updated with both sections.

Please alter the script for the corresponding Ubuntu versions.