0

i have a python script and i want it to run each time postfix holds and email i managed to hold emails based on some patterns using regular expression under /etc/postfix/main.cf and i want to run this python script each time an email is holded. i did my research and i found it this potential solution Postfix does not trigger my before-queue milter script an i tried this:

smtp      inet  n       -       -       -       -       smtpd
   -o content_filter=mymilter

...

mymilter    unix  -       n       n       -       -       pipe
  flags=F user=me argv=/tmp/my_py_script.py

but postfix doesn't seems to trigger my_py_script.py

is there any full example or a suggestion to how to trigger this script via postfix ?

0 Answers0