Score:0

Trigger a python script when postfix hold an email

de flag

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 ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.