Hi I have a question regarding launching external programs. What I want to do is to have an external program receive a copy of every email, or at least the headers of it - I need it for a new mail notification feature to my small mail server.
I know so far that I need to edit master.cf to include a line with a program in spawn or pipe "mode". I don't know how to edit main.cf to pass a copy of every email to it. I could do it by making a wrapper for spf checker, which receives every email's headers, but it feels rather hackish. I'm not sure about the forwarding features, as I want the emails delivered as usual. Digging through the manual pages didn't help me much. Cheers, rhn