On 5/7/2010 3:40 PM, Andrés Gattinoni wrote:
On Fri, May 7, 2010 at 5:29 PM, Noel Jones<njo...@megan.vbhcs.org> wrote:
On 5/7/2010 2:53 PM, Andrés Gattinoni wrote:
Here's an example of a shell script that receives all mail. Shouldn't be
much of a stretch to use PHP instead.
http://www.postfix.org/FILTER_README.html#simple_filter
If you still want to use amavisd-new, then use multiple postfix instances
for each filter hop.
Another alternative is to integrate your code into amavisd-new, either as a
custom hook or as a pseudo antivirus scanner. Check the amavis-users
archives for other folks doing similar things.
Thanks for your response Noel.
I've checked out that link. The thing is that I don't actually to do
any filtering inside my script, I just need to gather some
information.
Maybe there's an easier way that I can do that without having to call
sendmail again.
Could you tell me more about how to use multiple postfix instances to
keep using amavisd-new?
sort of like this:
input->postfix1->amavis->postfix2->php->postfix3->delivery
http://www.postfix.org/MULTI_INSTANCE_README.html
You'll have to work out the details yourself.
I would checkout the idea of the hook for amavisd-new. Maybe if it's
not to messy it could be a good solution.
Doing this in amavisd-new may work out easier if your script
just needs to see the mail and not alter the mail or delivery.
Sounds conceptually like a command-line virus scanner, and
maybe easiest to integrate it that way.
-- Noel Jones