Author Topic: Configuring bounce.cgi  (Read 1977 times)

don2

  • Posts: 14
    • View Profile
Configuring bounce.cgi
« on: April 30, 2006, 08:52:34 pm »
I get the following popup message when I click Test Mail Settings but I don't get the email at my Administrator email address.

[Bounce Handling]
Is enabled?  Yes, Using bounce.cgi
Sending TESTBOUNCE email to bounce address.. Success!

If you receive an email at your "Administrator Email Address" bounce.cgi is configured correctly.

I have cPanel on my server and setup a forwarder as follows:

bounce@income-opps.com         |/home/jincomed/public_html/cgi-bin/bounce.cgi

My .procmailrc file is configured as follows...

:0
* ^TO_bounce@income-opps.com
|/home/jincomed/www/cgi-bin/bounce.cgi

don2

  • Posts: 14
    • View Profile
Please HELP!
« Reply #1 on: May 01, 2006, 11:38:01 am »
I notified the Support Dept. for my server/hosting and here's their reply...

I have checked the mail server logs and following error is reported there for the bounce.cgi script :

-------
2006-04-30 20:24:35 1FaN9P-0001yD-O1 ** |/home/jincomed/public_html/cgi-bin/bounce.cgi
(bounce@income-opps.com) <bounce@income-opps.com> R=virtual_aliases_nostar
T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /home/jincomed/public_html/cgi-bin/bounce.cgi
---------

Please check if the script is correct and if it is then please check with the vendor of the script that why it is giving the command not found error.

I have checked the forwarder setup in the Cpanel and it is setup fine.

---------------------- END OF REPLY FROM SUPPORT -------------------------

Sounds like FRENCH to me!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Configuring bounce.cgi
« Reply #2 on: May 01, 2006, 02:17:00 pm »
You may want to try changing your .procmailrc file bounce.cgi line to as follows:
Code: [Select]
|/usr/bin/perl /home/jincomed/www/cgi-bin/bounce.cgi
If that fails, I wonder if this error could be caused by the system program /usr/bin/wget not being available.  You may want to try an alternative in bounce.cgi, such as curl:
Code: [Select]
$http_program = "curl -o /dev/null " . $listmail_url . "/bounce.php";
Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

don2

  • Posts: 14
    • View Profile
Still not working
« Reply #3 on: May 01, 2006, 06:30:07 pm »
I made the change to the .procmailrc as suggested but it still doesn't work.
I get the following error if I send an email to bounce@income-opps.com

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home/jincomed/public_html/cgi-bin/bounce.cgi
    generated by bounce@income-opps.com
    local delivery failed

I connected to my server via SSH and entered the which wget command.

The answer I got was /usr/bin/wget

I guess I'll try your 2nd suggestion to see what happens while I am waiting for a reply.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Configuring bounce.cgi
« Reply #4 on: May 01, 2006, 06:36:59 pm »
Wait a minute...
Quote
I have cPanel on my server and setup a forwarder as follows:

bounce@income-opps.com |/home/jincomed/public_html/cgi-bin/bounce.cgi

My .procmailrc file is configured as follows...

:0
* ^TO_bounce@income-opps.com
|/home/jincomed/www/cgi-bin/bounce.cgi

Under cPanel you shouldn't need a .procmailrc file.  Check out this help page.

Also double check that an actual mailbox with the same name as the Forwarder does not exist as it can cause problems.

And of course check that bounce.cgi contains the correct ListMail URL and is CHMOD to 755 to be executable.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

don2

  • Posts: 14
    • View Profile
It's working now! Thanks a bunch!
« Reply #5 on: May 01, 2006, 07:27:11 pm »
Better watch out for me, I'll keep you on your toes!  :)