Web Hosting Talk







View Full Version : .forward file with Exim/Cpanel?


jdatwood
06-10-2002, 12:40 AM
Hey,

I'm trying to set up my autoresponder script on my box. I used to run this on another box with Cpanel. I moved everything over including my .forward file. I'm getting this message back when I try to mail to the Autoresponder
pipe to |/usr/bin/perl
/home/ebiznewb/public_html/cgi-bin/v/varauto.pl
generated by ebiznewb@draco.adigen.net
(ultimately generated from sof@ebiznewbie.com)
Child process of address_pipe transport returned 255 (could mean shell command ended by signal 127 (Unknown signal 127)) from command: /usr/bin/perl
Can anyone help me out?

Warm Regards,
Jon D. Atwood
Jon@AutoSubmitPRO.com

The Prohacker
06-10-2002, 12:47 AM
To setup a mail pipe..

Edit: /etc/valiases/domain.com

And add it like this:

emailname: "|/home/username/script.pl"


email name is this: emailname@yourdomain.com

jdatwood
06-10-2002, 12:59 AM
Originally posted by The Prohacker
To setup a mail pipe..

Edit: /etc/valiases/domain.com

And add it like this:

emailname: "|/home/username/script.pl"


email name is this: emailname@yourdomain.com

I'm setting up an Autoresponder Service for multiple users. I'll be giving away and selling professional Autoresponders. Is there any way to set up a wildcard for the entire domain so that all email that's not pop3 would be piped to the script?

OR

automatically add that info to the valiases?

Thanks

Jon

The Prohacker
06-10-2002, 01:04 AM
Then this is what you valiases file should look like:


*: "|/home/path/to/script.pl"

jdatwood
06-10-2002, 01:14 AM
Originally posted by The Prohacker
Then this is what you valiases file should look like:


*: "|/home/path/to/script.pl"

I'll give it a whirl. Do I need to restart anything after adding this?

The Prohacker
06-10-2002, 01:36 AM
Nope

jdatwood
06-10-2002, 03:05 PM
Originally posted by The Prohacker
To setup a mail pipe..

Edit: /etc/valiases/domain.com

And add it like this:

emailname: "|/home/username/script.pl"


email name is this: emailname@yourdomain.com
Unfortunately I was just notified by the programmer that the script won't work when using a valiases pipe. It will only function properly using a .forward file.

Any help?

The Prohacker
06-10-2002, 03:33 PM
Strange... I've never had a probem setting scripts up to do it....

jdatwood
06-10-2002, 04:16 PM
Originally posted by The Prohacker
Strange... I've never had a probem setting scripts up to do it....
Here is his reply to my inquiry last night after testing using valiases.

No the only way to forward to the system correctly is a .forward

valiases will not work correctly.

Jim

*********** REPLY SEPARATOR ***********
On 6/10/2002 at 12:08 AM Jon D. Atwood wrote:

Can I set the pipe up not using the .forward? I can use valiases to do email pipe and that's how my server is configured....
I'm at a loss at this point :eek:

Regards,
Jon

jdatwood
06-11-2002, 05:56 PM
Anyone have any ideas? Could my script possibly be modified to work with valiases instead of .forward?:confused:

jdatwood
06-13-2002, 06:15 PM
bump

Haze
06-13-2002, 07:11 PM
I don't see why it wouldn't work. I would contact your programer and see what he can do about it.

jdatwood
06-13-2002, 07:25 PM
Originally posted by Haze
I don't see why it wouldn't work. I would contact your programer and see what he can do about it.

I asked if it could be programmed to work with valiases and he's stated it cannot. I'll be out ~$600 if I can't get this working on my dedicated box.

What I can't understand is why the .forward doesn't work. I've had this script up and running on a shared server running cpanel. I moved over to my box expecting little or no interruption due to the fact it was running the same hosting software.... :eek:

Matt Lightner
06-13-2002, 07:33 PM
Maybe you can ask him why .forward will fork and valiases won't. If we know what he believes the problem to be, we can probably provide more useful advice. As of right now, we're just guessing. :)

jdatwood
06-14-2002, 03:36 PM
Here is the latest and greatest reply.....Because valiases will NOT pipe e-mail to a script, the requirments state you must be able to use a .forward, have them set the server so that you can.
Is the new server using .procmail ??

Matt Lightner
06-14-2002, 03:39 PM
You certainly can use valiases to pipe email to a script... how do you think mailing lists and autoresponders work? Magic? :)

Also... I believe that Cpanel supports .forward files as well--so you can go ahead and try that if you like.

Hope that helps.

The Prohacker
06-14-2002, 04:06 PM
If you still have problems...

If you can make me a small account, just shell, with restricted editing access, I'll jump on and tell you if it possible...

If it is, I'll tell you how... Do you have ICQ?? If so, PM me the number...

AQHost
06-14-2002, 04:10 PM
>>Because valiases will NOT pipe e-mail to a script<<

Utter tripe. If that was the case, most of the thousands of installations of PerlDesk wouldn't work correctly. We pipe email sent to our support address to PD using the valises file in the following format:

support@aqhost.com: |/path/to/cgi-bin/path/to/script.pl

For your purposes there's no reason why...

*: |/path/to/cgi-bin/path/to/script.pl

...wouldn't pipe the email to your script.

Best wishes,
Simon

jdatwood
06-14-2002, 05:37 PM
Thanks for your replies guys.

This finally did work

*: |/home/ebiznewb/public_html/cgi-bin/v/varauto.pl

I appreciate everyone's help on this.

Jon