postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: question about notifications

Re: question about notifications

From: mouss <mouss_at_nospam>
Date: Wed Oct 20 2010 - 21:15:33 GMT

  Le 20/10/2010 21:04, John Watson a écrit :
> Hello,
> I am using postfix in conjunction with squirrelmail to build a
> business application. One of the requirements that I have is that when
> an email is received in one of the postfix mail boxes an alert is
> generated. In our case we will be sending a standard message to
> another email but in general we might want to run arbitrary code when
> messages are received by postfix.
> It seems that some of the work that has been done with virus scanners
> uses a server hook to examine all the messages that pass through the
> server. Can anyone tell me what that is called or provide a pointer to
> more detail and is this the best way to solve a problem like this?

you can do that
- in your MDA (dovecot, maildrop, ...).
- by specifying a script as an MDA for those mailboxes that you want...

I personally prefer the "run the action later".
- keep delivery as it is
- have a script that does pop3 (or imap) periodically. this script can
do anything you want

the advantage is that
- bugs in your script won't cause trouble to your delivery
- if you're under heavy mail stream, you don't add yet more load on your