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
Post a Comment