Author Topic: Subscribe by email with Plesk.  (Read 1821 times)

german

  • Posts: 3
    • View Profile
Subscribe by email with Plesk.
« on: November 17, 2004, 10:42:35 am »
Hello,

I am trying to get the subscribe by email and the bounce to work with Plesk. I am having trouble redirecting to the cgi scripts. Any help would be appreciated.

German Chale

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
PLESK installation
« Reply #1 on: November 17, 2004, 03:17:50 pm »
Great question!

I happen to have some stuff written up from personal experience for other clients.  It's pasted below:

PLESK Installation requires full administrator access.

Here is how to set it up:

SMTP: a setting of hostname "localhost" with no additional authorization should be fine to send email through ListMail.
----

Email Aliases:

Be sure that the account bounce@site.com does not exist in the Plesk control panel as a mailbox or email will not be delivered to the CGI script.

Set up bounce.cgi in your site's cgi-bin, modifying it to contain your ListMail URL and CHMOD it to 755.

cd /var/qmail/mailnames/site.com

make a file named .qmail-bounce

In it have the following:
|/home/httpd/vhosts/site.com/cgi-bin/bounce.cgi

Also, run the following command, which is necessary after Plesk 6:

chmod 755 /home/httpd/vhosts/site.com/cgi-bin
----

Cron task:

The task should be as follows, set up through either the Plesk control panel or via the commandline as the administrator:

(example to run at 12:15 am)

15 0 * * * /usr/bin/wget -O /dev/null -T 0 http://site.com/mail/dailymail.php?pw=YourDailyPass 1> /dev/null 2> /dev/null

Double check your dailymail password in ListMail (copy & paste) and enable "send dailymail report to admin".  You should then start receiving notifications when the task is run.
----

One further modification will allow you to send up to a million emails per day per server.

use the following command to create a file in your qmail control directory containing the number "400".

echo "400" > /var/qmail/control/concurrencyremote

Then, restart qmail

/etc/init.d/qmail restart

This allows up to 400 outbound email processes at once, as opposed to the default of 10 or 20.

You should achieve 25-50 emails per second with this setting.  

You can also improve inbound mail speed (not as important) like this:

echo "100" > /var/qmail/control/concurrencylocal

Again, restart qmail

/etc/init.d/qmail restart
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

dave3

  • Posts: 4
    • View Profile
Plesk problems
« Reply #2 on: December 05, 2004, 07:57:48 pm »
Hi Dean,

I am using Plesk Reloaded (7. x ) and have not been able to successfully get the bounce email sent to the cgi script.  

I followed your examples below, which  confirmed that I was on the right path.  I had originally created bounce as an alias to admin, and the admin email address always got the  redirect but obviously not via the bounce.cgi

So I removed the bounce@... alias, made sure I had no mailbox by that name and tried it again.. Nothing happens.  The mail seems to get sent, I dont get a mail box not found message back to me, however nothing shows up in my admin... email box.

I made sure the cgi-bin and the cgi files were all set to 0755 and I have root access so I was able to ensure that the .qmail-bounce file was in the right directory : /var/qmail/mailnames/xxxx.com  (where xxxx. com is my domain)

Any other suggestions for me to try out?

Dave

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Subscribe by email with Plesk.
« Reply #3 on: December 06, 2004, 02:14:46 pm »
Ahh, I think I remember something.

You may need to start off your email alias with "/usr/bin/perl", ie:

|/usr/bin/perl /home/httpd/vhosts/domain.com/cgi-bin/bounce.cgi
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

dave3

  • Posts: 4
    • View Profile
Subscribe by email with Plesk.
« Reply #4 on: December 08, 2004, 06:27:11 pm »
Dean,

Great memory! and thanks! That was the issue.  I got the test bounce mail working immediately.
I'm going to file this thread away for future reference

Dave

Quote from: "DW"
Ahh, I think I remember something.

You may need to start off your email alias with "/usr/bin/perl", ie:

|/usr/bin/perl /home/httpd/vhosts/domain.com/cgi-bin/bounce.cgi