Author Topic: Problems with bounce.cgi  (Read 3304 times)

macbethgr

  • Posts: 2
    • View Profile
Problems with bounce.cgi
« on: May 06, 2004, 10:45:59 am »
Hi,

I followed the instructions to setup bounce.cgi and ran the test, I got the following:
Quote

Testing mail servers..

[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.

[SMTP Server]
Is enabled?  Yes
Connecting to SMTP server.. Connected!
Sending test email to remote address.. Success!

If you receive an email at your "Remote Test Address" the SMTP server is configured correctly.


and I receive the following email to my Remote Test Address account:

Quote

The server successfully received and relayed the test message to a remote address.

This most likely means that SMTP is configured correctly.


But to my Administrator Email Address I get nothing.  I checked my bounce mailbox and nothing is in there (as I'm sure there shouldnt be), so I beleive the information is being passed to the bounce.cgi script, but from there I dont know what is happening.  

I also sent out some test emails to accounts that I know would bounce, after sending 6 test messages, I checked the User Database, and no bounces are showing up.

I tested the bounce using an email account, it worked fine, after sending out 3 test mails to an account that I knew would bounce, the user was removed from the database.  So that tells me that the bounce.php is working, I believe that the problem is with the bounce.cgi file or the way it's processing the data passed to it.  In fact when I try to access the bounce.cgi script through a browser I get an Internal Server Error.  So perhaps that script is broken in some way or is not executable.


What could I check to find out why this feature is not working?

George

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Problems with bounce.cgi
« Reply #1 on: May 06, 2004, 12:42:02 pm »
First, of course, make sure you have configured bounce.cgi to contain your ListMail URL, upload it to your (usually precreated) cgi-bin directory, and CHMOD (set permissions) of the file to 755 to be executable.

Next, you need to determine the correct server path to bounce.cgi and set up an email alias to forward email to it.  This may or may not be able to be done from your control panel - it depends on your host.

e.g:

bounce@listmailpro.com: "|/home/listmail/public_html/cgi-bin/bounce.cgi"

The "|" character indicates that you are forwarding to a script, not another email address.

Since setting up email aliases can vary so greatly across hosts, it may be best to simply ask your tech support staff if these are supported and how they are set up on your server.  It would also be a good idea to ask them what the full path to your cgi-bin/bounce.cgi file is for the alias.

One thing to make sure of is that you do not also have an Email Account with the same name as the Email Alias or your messages may not be delivered to the script.

The official documentation for bounce.cgi can be found at the following URL:
http://www.listmailpro.com/help/7.html
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

macbethgr

  • Posts: 2
    • View Profile
Problems with bounce.cgi
« Reply #2 on: May 06, 2004, 05:54:31 pm »
OK,

I did all that here is what I am getting:

   ----- Transcript of session follows -----
/home/1naday/cgi/bounce.cgi: permission denied
554 5.3.0 unknown mailer error 126


George

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Problems with bounce.cgi
« Reply #3 on: May 06, 2004, 07:45:56 pm »
Hmm, the problem could be that the "mail" program's "user" is not able to access the script in your home/cgi folder.  You will need to make sure that all of your folders have the following permission: 755, or, executable for all.  First, check the "cgi" folder to make sure it has these permissions.  If this doesn't fix the problem, you'll have to ask your host to make sure your home folder does, too.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

alice

  • Posts: 10
    • View Profile
Problems with bounce.cgi
« Reply #4 on: July 03, 2004, 02:40:36 pm »
I'm having the very same problem, I can create a email forward from cpanel and set them to forward to "|/home/mommaste/public_html/cgi-bin/lmail/bounce.cgi"

All cgi folders are set to 755. I get this when I send a test mail to bounce@mommasterminds.com

Code: [Select]
This message was created automatically by mail delivery software.

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/mommaste/public_html/cgi-bin/lmail/bounce.cgi
    generated by bounce@mommasterminds.com
    local delivery failed

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Problems with bounce.cgi
« Reply #5 on: July 08, 2004, 05:46:41 am »
If you're running CPanel you should have no troubles.  Perhaps when you were modifying bounce.cgi to contain your ListMail URL you accidentally removed or added a special character, like a quote or a semicolon and the script cannot run / accept messages.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

alice

  • Posts: 10
    • View Profile
Problems with bounce.cgi
« Reply #6 on: October 12, 2004, 10:50:31 am »
Hello again. I have been using mailbox bounce method all this while because the bounce.cgi still refused to work, I checked the bounce.cgi file everything is good with it. I'd really like to get this working. Any other ideas?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Problems with bounce.cgi
« Reply #7 on: October 13, 2004, 10:16:08 am »
I haven't seen a CPanel that didn't work.  It could be something simple.  Are you sure the public_html/cgi-bin/lmail folder AND bounce.cgi are CHMOD to 755? (executable for all user types).  Also make sure you do not have an actual mailbox with the same name.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

alice

  • Posts: 10
    • View Profile
Problems with bounce.cgi
« Reply #8 on: October 13, 2004, 10:56:49 am »
Yes I am very sure. I checked the permissions and they are correct even now. Since it hasn't been working now I do have a mailbox in the same name but when I did the trial there was no bounce@mailbox.com. I've also had other problems with this server on other scripts maybe its just the way the server is set up :( oh well bounce mailbox seems to be working ok.