Hi there,

I've just suscribed because I'm having troubles to set up a postfix
server and just can't find the right answer in google.

I'm running Postfix 2.3.3 on a CentOS 5.4 box with Dovecot 1.0.7 for
authentication, Amavisd-new 2.6.4, SpamAssasin 3.3.1 and ClamAV 0.96.
I finally got it all working (I had never installed Amavisd-new
before, and that took me a while to figure out), but now I need
something more.

I need to set up some sort of hook that calls a PHP script for each
email received. I need something that can be applied globally to all
incoming emails (including the ones that are locally delivered) or at
least to all the addresses of a domain (because I won't be having too
many domains).

I've seen this link:
http://www.adkap.com/autoresponder.html

The problem there is that I don't know how to make that hook get
called for all my addresses (without having to add all of them to the
/etc/postfix/virtual_addresses file).

I've also seen this other link:
http://www.howtoforge.com/forums/showthread.php?t=38808

I created a transport file with something like this:
/....@mydomain.com/ process-hook:

And then created this to the master.cf:

process-hook unix - n n - - pipe
 flags=Fq user=nobody argv=/usr/bin/php /opt/mail_process.php
${sender} ${size} ${recipient}

But I think it's never being called.

Could you help me figure this out?

Thanks!

A

Reply via email to