PDA

View Full Version : Feed to program?



saman
06-29-2004, 02:28 PM
Hi all!

Isn't there an option in DA to feed or "pipe" an e-mail to a program/script? It's just that one of my clients uses a script that needs this...........

Regards,
Saman

sander815
06-29-2004, 03:29 PM
yep:
add a forwarder like this:
"|/home/<username>/public_html/cgi-bin/scriptname.cgi

incl. the "

toml
06-29-2004, 03:40 PM
Originally posted by sander815
yep:
add a forwarder like this:
"|/home/<username>/public_html/cgi-bin/scriptname.cgi

incl. the "

The only thing that may cause a problem, is that if the mail isn't forwarded somewhere else by that script, you would have no way of retrieving that email, since there would be no entry in the /etc/virutual/${domain}/passwd file.

saman
06-30-2004, 06:01 AM
Originally posted by sander815
yep:
add a forwarder like this:
"|/home/<username>/public_html/cgi-bin/scriptname.cgi

incl. the "

Thanks alot.


The only thing that may cause a problem, is that if the mail isn't forwarded somewhere else by that script, you would have no way of retrieving that email, since there would be no entry in the /etc/virutual/${domain}/passwd file.

Don't worry, that should not be neccessary since the script is a mailing list system (I don't think the Majordomo feature in DA is very good. Much room for improvement...)

I'm going to move from VirtualServer (or whatever it is called) Iin Webmin to DA and have many of these "aliases". Are there any way to add them all at once using a script? (I know this might not be the right place to ask this..but it is related to my main question)

Thanks again :)