PDA

View Full Version : forwarder to script


ceejayoz
01-08-2003, 03:02 PM
Is it possible to forward an e-mail address to a script using a pipe ("|"), either via DSM or via a courier config file. If it is, does anyone know how to do it?

Thanks in advance! :)

LeeJ
01-09-2003, 09:14 AM
Yes,
You would place this in the file for your domain name within the below directory.
/etc/courier

In this instance the path would be.
/etc/courier/your.com with your.com being the domain that you would like to edit.

You would place the below line in the file and then run "makealiases".
test@your.com: |/usr/sbin/myprogram

I suggest that you read through the courier docs so that you get an understanding of what you are doing.

You can find information at the url below.
http://www.courier-mta.org/makealiases.html

This type of modification is outside the scope of dsm and will not be supported. You will see the entry within your mail manager if it has been performed correctly.