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

Configurable umask for unix socket #26

Closed robert-scheck closed 6 years ago

robert-scheck commented 6 years ago

While you might be a TCP fan, this suggestion only enhances the Unix socket. Usage:

In /etc/macromilter/config.ini set:

SOCKET = /run/macromilter/macromilter.sock
UMASK = 0077  # 0007 if MacroMilter is run as user postfix

If MacroMilter is run as as non-postfix user (e.g. as macromilter user), run:

usermod -a -G macromilter postfix

Configure postfix to use the Unix socket:

postconf -e smtpd_milters=unix:/run/macromilter/macromilter.sock