I can't get the milter triggered when a new email is accepted by Postfix before-queue. Obviously, I don't do something properly but I can't figure out what.
I have the following setup: Ubuntu Server, Postfix 2.11.
The Postfix service is working and receives emails to the local accounts properly.
Script /tmp/milter.sh (owner: me, group: me, permission: rwx-rwx-rx) logs some string each time it's run. It works properly when launched under user me in the terminal.
In /etc/postfix/master.cf
, I have:
smtp inet n - - - - smtpd
-o content_filter=mymilter
...
mymilter unix - n n - - pipe
flags=F user=me argv=/tmp/milter.sh
The new configuration is loaded by
sudo postfix reload