Author Topic: Bounce Not Bouncing  (Read 4230 times)

davidmccready

  • Posts: 35
    • View Profile
Bounce Not Bouncing
« on: November 09, 2006, 08:21:21 am »
I never really got "Bounce" to work when I first started with Listmail. Probably because it did not matter much in thoes days.

Now I want to send some emails to about 100 people and I have to enter the addresses by hand..... That will be a fun day.

Anyway, boredom will take have an effect and some emails will be entered incorrectly. So now I need bounce to work.

What is the simples method to discover if I have entered a bad email address.

Also, what are the most common faults when making a mess of seting up bounce.cgi

Thanks
David

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Bounce Not Bouncing
« Reply #1 on: November 09, 2006, 09:40:45 am »
Hi David,

Instead of entering your 100 users manually from the ListMail interface you can create a text file with one email per line and use the "Import" feature.  This should take a lot less time.

To verify your email addresses -before- sending you might want to take a look at this post and the custom script available in it.

http://listmailpro.com/forum/index.php?topic=1243.0

Common faults with bounce.cgi would be editing bounce.cgi, the availability of the /usr/bin/wget program set in bounce.cgi, the permissions (chmod 755) of bounce.cgi and the email forwarder to CGI script (system path to bounce.cgi).  Here's the help page:

http://www.listmailpro.com/help/cgi.html

Please let me know if I can be of further assistance!

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

davidmccready

  • Posts: 35
    • View Profile
Bounce Not Bouncing
« Reply #2 on: November 10, 2006, 08:41:13 am »
Here is my configuration (mysite corrected) CHMOD is 755

#!/usr/bin/perl
#
# ListMail bounce.cgi
#
# Modify this file to contain your ListMail URL, place it in your cgi-bin directory and CHMOD it to 755.

# Full URL to ListMail, no trailing slash
$listmail_url = "http://www.mysite.com/public_html/mail";

# Program and paramaters to pass URL to
# Usually works as default (may be /usr/local/bin/wget or other)
$http_program = "/usr/bin/wget -O /dev/null " . $http://www.mysite.com/public_html/mail . "/bounce.php";

# dont need to change anything below here



When I test mail mail settings on the Configuration page it says "Success" expect an email. But the email never arrives.


Thanks
David

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Bounce Not Bouncing
« Reply #3 on: November 11, 2006, 01:36:43 am »
David,
Quote
$listmail_url = "http://www.mysite.com/public_html/mail";

This should probably be http://www.mysite.com/mail with "public_html" omitted.  It is set up just as if "browsing" to your site.
Quote
I test mail mail settings on the Configuration page it says "Success" expect an email. But the email never arrives.

This indicates that some things still need to be set up.  Instead of using "Test Mail Settings" you might try manually emailing your bounce address with the word "TESTBOUNCE" in the subject line.  This will allow you to view the bounce message if the account cannot be reached which will give you more information.

Have you set up email address to bounce.cgi redirection?  This is, perhaps, the most difficult part.  First you need to know the full system path to your cgi-bin folder.  I highly recommend asking your host for help with redirecting your bounce address, ie "bounce@example.com" to the bounce.cgi script.

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

davidmccready

  • Posts: 35
    • View Profile
Bounce Not Bouncing
« Reply #4 on: November 18, 2006, 04:38:18 am »
Asked my web host for a redirection script. Got one. No luck.

Tried TESTCOUNCE again and got:

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

Set bounce to the first tick box = return to administrator and have yet to receive a bounce message. Note that I set up an a few bad email addresses to test the bounce and have yet to see one of them register as a fail.

What next ?

David

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Bounce Not Bouncing
« Reply #5 on: November 19, 2006, 11:12:41 pm »
Hi David,

This is progress.  Now that we're getting a response from the server we know what to look at.  We can see by the error that the email alias/forwarder/pipe is semi-operational, but needs some tweaking.

The error could be caused by one of the following:

1) The bounce.cgi script does not have 'executable' or '755' permissions as noted on this help page.

2) The path to bounce.cgi is not correct, although it does look good:  |/home/MYUSERNAME/public_html/cgi-bin/bounce.cgi

3) A call to the perl interpreter may be required.  The alias might look like this:
Code: [Select]
|/usr/bin/perl /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi
Quote
Set bounce to the first tick box = return to administrator and have yet to receive a bounce message.

When you send an email to a test list and -recieve- the message, check the headers/message source.  You should see the "Return-path:" line with the bounce address or 'Administrator email' if bounce processing is disabled.  Note that with bounce processing disabled it's a good idea to keep your 'Administrator email' on the same domain as ListMail is installed on to prevent authentication issues.

Please let me know if I can be of further assistance.

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

davidmccready

  • Posts: 35
    • View Profile
Bounce Not Bouncing
« Reply #6 on: November 20, 2006, 01:16:42 am »
Dean

Thanks for keeping up with this.

1) Bounce is 755, but most of the signip-lists are 644.

2) Changed path to pearl version and back. Each time when I sent a message to bounce with the title TESTBOUNCE I got the following errors

Please note that some details have been altered......

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 |/usr/bin/perl /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi
    generated by bounce@MYSITE.com
    local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/usr/bin/perl /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi
       generated by bounce@MYSITE.com ------

Bareword found where operator expected at /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi line 12, near "//www"
   (Missing operator before www?)
syntax error at /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi line 12, near "$http:"
Execution of /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi aborted due to compilation errors.

and also this error

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

The following text was generated during the delivery attempt:

------ pipe to |/home/MYUSERNAME/public_html/cgi-bin/bounce.cgi
       generated by bounce@MYSITE.com ------

Bareword found where operator expected at /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi line 12, near "//www"
   (Missing operator before www?)
syntax error at /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi line 12, near "$http:"
Execution of /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi aborted due to compilation errors.


3) To date I have never EVER had a message from my admin email address telling me that anythin bounced. So I just checked admin@MYSITE.com and it is working.

Thanks
David

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Bounce Not Bouncing
« Reply #7 on: November 20, 2006, 05:19:56 pm »
David,

It looks like your alias will work with or without /usr/bin/perl at the beginning of the command.

From this error:
Quote
Bareword found where operator expected at /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi line 12, near "//www"
(Missing operator before www?)
syntax error at /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi line 12, near "$http:"
Execution of /home/MYUSERNAME/public_html/cgi-bin/bounce.cgi aborted due to compilation errors.

...it becomes obvious this is a bounce.cgi format error.  bounce.cgi is a Perl file that must maintain strict syntax.

Please check bounce.cgi and make sure it reads similar to as follows.  Please make sure that all quotes and semi-colons are left intact.
Code: [Select]
# Full URL to ListMail, no trailing slash
$listmail_url = "http://www.DOMAIN.com/mail";

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

davidmccready

  • Posts: 35
    • View Profile
Bounce Not Bouncing
« Reply #8 on: December 01, 2006, 04:07:05 am »
Spent 10 min looking for typing error and could not find any.

Copied "http://www.DOMAIN.com/mail" into my internet explorer and got my Listmail login page.

What next ?

Thank you.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Bounce Not Bouncing
« Reply #9 on: December 01, 2006, 02:37:47 pm »
David, Instead of looking very closely at every character in the file I recommend setting up bounce.cgi from scratch.  Take the fresh bounce.cgi file from the ListMail "cgi" folder, edit just the one spot, where you need to put your ListMail URL in place of the example (preserving surrounding quotes) and upload it.

This should ensure there are no 'compilation' or 'syntax' errors in the code.

If you upload the newly-modified bounce.cgi over your last 'live' copy the file should keep it's old (755 to be executable) permissions.

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