Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Soren on November 28, 2002, 01:46:52 AM

Title: Execute program on e-mail receiption
Post by: Soren on November 28, 2002, 01:46:52 AM
Hello,

I have a C program, that I want to be executed everytime a certain user recieves a mail. I've heard that if I place '|/my_program' in the .qmail file it might do the trick.

Unfortunately I really can't figure out where to place the "magic line" to make it work? Perhaps you could help me out.

Thanks in advance...

Regards
Soren
Title: Re: Execute program on e-mail receiption
Post by: Darrell May on November 30, 2002, 01:49:45 AM
You need nothing but your line in the .qmail file:

| /absolute_path_to_your_program

Remember your program will be launched as the user so the executable must be able to be run as the user.

Darrell