Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Postfix smtp hook not working

17 views
Skip to first unread message

Peter Moser

unread,
Jul 26, 2017, 4:34:45 AM7/26/17
to
Hi,

I am using a postfix hook to check every mail with a bash script.

I have this line in my master.cf

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

My script is also called for outgoing emails, I want that the script is just called when I receive any email. How can I configure this?

I used this tutorial:
https://www.thecodingmachine.com/triggering-a-php-script-when-your-postfix-server-receives-a-mail/

Best regards
Peter
0 new messages