Forwarding email to a script
Posted by: Eagle
Posted on: 2007-11-04 20:25:00
Hello folks,
After checking with customer support some time back and experimenting exaustively, the only way they and I found to foward an email to a script for processing, is by using Procmail.
I am familiar with Procmail and by setting up a .forward file to route the email through Procmail and a .procmailrc file to contain recipes to direct the delivery from Procmail to wherever I want, in my root directory, I am able to foward emails to a script.
The problem is that only emails addressed to, or forwarded to, the original email address DH set up for me, will see the .forward file. Any other email address I set up in the control panel, even in the same domain, get deliverred in such a way that they do not see the .forward file in my home directory and thus, are not routed through Procmail.
In other control panels, such as cpanel for instance, you are able to set up forwards for any email address through a pipe and thus, you can forward the emails directly to any script on your site, by piping to the full path to the script.
The forwarding system of DH does not permit you to foward to anything other than an email address. (I suppose it looks for the @ sign). The result, at any event, is that you cannot forward to a pipe and a full path to a script.
Does anyone know about a workaround for this,? Or is there no way to forward an email to a script other than through the email address DH originally set up?
TIA for any info.
Cordially,
Eagle
Eagle
Florida, USA
"If you think you can or if you think you can't, you
are right"