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