Postfix smtp hook not working -


i using postfix hook check every mail bash script.

i have line in master.cf

smtp      inet  n       -       y       -       -       smtpd -o content_filter=myhook:dummy 

my script called outgoing emails, want script called when receive email. how can configure this?

best regards

my guess incoming , outgoing emails sent postfix through same process (smtpd using smtp port: 25).

so content_filter applied either way

one way achieve goal use smtpd process listening on other port without content_filter. in master.cf:

smtp      inet  n       -       y       -       -       smtpd -o content_filter=myhook:dummy 1025      inet  n       -       y       -       -       smtpd 

with configuration:

  • every mail sent port 25 filtered.
  • every mail sent port 1025 not filtered

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -