Author Topic: Move to Dreamhost and bounce.cgi is not working  (Read 2988 times)

sms

  • Posts: 6
    • View Profile
Move to Dreamhost and bounce.cgi is not working
« on: July 12, 2005, 08:35:34 am »
Hello,

I just move to dreamhost server from other server and when I setup the script using the help manual fro the dreamhost after I test my bounce email by sending an email with subject TESTBOUNCE I do not receive a message at my administrator email address with the subject "Test bounce success", or similar. Also when I try to CHMOD the bounce.cgi I get an error that Operation not permitted. So I CHMOD it using FTP to 755.

Also when I login to my web email to the bounce mailbox I do not see my test email there. Here is the output screen of the SSHSecure shell program:

[morgan]$ chmod +x /home/.fellah/mytestdomaincom/mytestdomain.com/mail/cgi/bounce.cgi
chmod: changing permissions of `/home/.fellah/mytestdomaincom/mytestdomain.com/mail/cgi/bounce.cgi': Operation not permitted


[morgan]$ cat .procmailrc


DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
SHELL=/bin/sh

:0
* ^TO_bounce@mytestdomain\.com
| /home/.fellah/mytestdomaincom/mytestdomain.com/mail/cgi/bounce.cgi

#!/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://mytestdomain.com/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 " . $listmail_url . "/bounce.php";

# dont need to change anything below here

sub encode {
  my $str = shift || '';
    $str =~ s/([^\w.-])/sprintf("%%%02X",ord($1))/eg;
      $str;
      }
     
      # main
     
      # get piped message
      $email = '';
      while($line=<>){
       $email = $email . $line;
       }
       
       if($email){
        if($email ne ''){
          $sys_cmd = $http_program . "\\?em=" . encode(substr($email,0,4096)) . " 1> /dev/null 2> /dev/null";
           }
            # forward to bounce.php
             system($sys_cmd);
             }
             # done
[morgan]$



Please help, because until now I was using cpanel and dreamhost's panel is not easy for me to deal with. What I do wrong?

regards
James

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Move to Dreamhost and bounce.cgi is not working
« Reply #1 on: July 12, 2005, 08:36:40 pm »
Hi James,

Sorry to hear about your frustration.  Indeed, DreamHost is quite tricky to set up on.

You need to set up a new user in your control panel, such as "site_bounce" and create a new email address, ie "bounce@site.com" attached to this user account.  The .forward.postfix, .procmailrc and bounce.cgi files should be set up via an SSH shell in this users home directory.  You can also set up the cron task, also via an SSH shell, on this user.

Please check out the help page at http://listmailpro.com/help/cgi_dreamhost.html and let me know if you continue to have troubles.

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

sms

  • Posts: 6
    • View Profile
Move to Dreamhost and bounce.cgi is not working
« Reply #2 on: July 13, 2005, 02:21:29 am »
Hello again,

I have already did that. In my previous posting if you take a good look, :roll:  is the output of the SSH shell. I have follow the instructions step by step and I got this problem. Can you please help me? I have moved to a Dreamhost the last week and turning the dns and setting up the list to follow the requirements of Dreamhost, took me a lot of time and my followups and lists was dead for that time :(  for a few days.

Best regards
James

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Move to Dreamhost and bounce.cgi is not working
« Reply #3 on: July 13, 2005, 05:08:53 am »
Where you have:
/home/.fellah/mytestdomaincom/mytestdomain.com/mail/cgi/bounce.cgi

It should simply be:
/home/user/bounce.cgi

...with bounce.cgi being pasted into a new file in user's home directory as pe the instructions (as opposed to pointing to the ListMail mail/cgi file location).

So you have, for example a user called "site_bounce" (email bounce@site.com).  The files would be:

/home/site_bounce/.forward.postfix
/home/site_bounce/.procmailrc
and /home/site_bounce/bounce.cgi

For hands on assistance please order a 'Server Analysis' from http://listmailpro.com/support

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

sms

  • Posts: 6
    • View Profile
Move to Dreamhost and bounce.cgi is not working
« Reply #4 on: July 15, 2005, 07:13:39 am »
Hello,

Thanks for your help.

It's working now perfect. :lol:

I have one more question. Since I moved to dreamhost I contact them to tell them that many of my subscribers have subscribed from other server with other software (I had other email list software, But yours is the best ;-) ) So I didn't have double optin and IP in my logs. So I must send an email as they told me from the dreamhost sales to re-subscribe those subscribers. So my question is how can I remove from the MySQL database those subscribers who have subscribed in a certen time period (i.e remove all subscribers from january 2005 - june 2005) Is there a fast way(easy way) and not one by one, to do that?
My previous software had two fields (name,email) but now I collect from subscribers 3 fields (first name, last name, email) So I don't want to overwrite them or allow doubles. I want to re-subscribe them clean from the start.

Please help.
Regards
James

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Move to Dreamhost and bounce.cgi is not working
« Reply #5 on: July 15, 2005, 10:05:04 am »
Do you have the date and perhaps IP address recorded from your other software? You said you didn't, but I'm unsure about whether this was caused by the ListMail import or because it was not supported in your previous program. The only way to select users by date would be by accessing them in the old program. We would need to extract the date information, do you have this data anywhere, perhaps in MySQL on another host?

If not, it is possible to remove users from your ListMail database before a certain date with the "PhpMyAdmin" tool, a web tool for viewing your databases and running custom SQL statements.

Let me know what data you have, any access information and what date(s) you want to do what with and I'll give you a hand.

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

sms

  • Posts: 6
    • View Profile
Move to Dreamhost and bounce.cgi is not working
« Reply #6 on: July 15, 2005, 10:11:41 am »
Hello,

I have fix it already. I used in phpmyAdmin:

delete from lm_users where refurl = 'Imported';
delete from lm_users where ipaddr = 'Unknown';

So I have deleted all the subscribers that I have imported to listmailpro and do not comply with Dreamhost spam policy.

Thanks again for the quick response. Your mail list software is awesome.

Regards
James

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Move to Dreamhost and bounce.cgi is not working
« Reply #7 on: February 25, 2007, 07:22:50 pm »
Web hosts are being analyzed and reviewed - please post your recent experience if your host is not listed already!

Here's the post:
Email Web Hosting Review

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