Quote:
|
Originally Posted by Timothy D. Ginn
The way it's done for the mailman software is like this (in my case its in /etc/aliases, but that can vary depending on system setup):
test: "|/usr/lib/mailman/mail/mailman post test"
(with other aliases setup in a similar way passing different paramaters to the mailman binary).
|
I thought of recommending that method, but it depends on whether the message also needs to be delivered to the mailbox, besides running the script.
If you only need to run a script when the e-mail is sent, the mailman method will work. If the e-mail needs to be delivered and also the script run, procmail is probably your best bet.