Web Hosting Talk







View Full Version : Emailagent piping to script?


lusid
09-09-2002, 06:02 AM
Hi!
I'm looking for a mailprogram
that can upon recieving mails to a certain account
can pipe the whole content(including attachments) to a script?
Any 2 cents on this would be appreciated!
Jim.

dandanfirema
09-09-2002, 07:27 AM
I have typically seen this done through an alias. For example:

support: "|/path/to/script/somescript.pl"

hostchamp
09-09-2002, 08:41 AM
just enter the above line by dandanfirema to your /etc/alias file, replace "support" with your user and any mial recd. by the user shall be piped to the script you specify.