Author Topic: Redirecting Email to Script in shared CPanel Environment  (Read 1871 times)

sales13

  • Posts: 4
    • View Profile
Redirecting Email to Script in shared CPanel Environment
« on: December 09, 2005, 09:26:34 am »
Hello,

If someone is in a shared hosting environment using CPanel, does anyone know if it is better (more efficient) to redirect the email addresses...

1) Using the Email -> Add Fowarders ->
Forward: bounce@domain.com to /cgi/bounce.cgi (what would be the exact thing to enter in the forward on this type of server)

or

2) Editing the procmailrc file?

Another question is do you enter the 3 lines of code in the help section for EACH of your lists AND the bounce?  So if you had 3 lists, would you have 12 lines of code in the procmailrc file?

Thanks,
Eric

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Redirecting Email to Script in shared CPanel Environment
« Reply #1 on: December 09, 2005, 10:04:26 am »
cPanel is very easy to set up forwarders on.

Set up bounce.cgi in your public_html/cgi-bin folder, and set up an alias as follows:

Email: bounce@example.com
Forward: "|/home/user/public_html/cgi-bin/bounce.cgi"

Signup scripts are set up the same, ie:
Email: signup@example.com
Forward: "|/home/user/public_html/cgi-bin/signup-list1.cgi"

Replace "user" with your cPanel username.

If you still can't get it to work you may need to consider modifying the .cgi scripts to use an alternative to wget, such as "curl -o /dev/null .... "

Hope that helps!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sales13

  • Posts: 4
    • View Profile
Redirecting Email to Script in shared CPanel Environment
« Reply #2 on: December 09, 2005, 10:52:57 am »
Thanks Dean,

So it's better to do that via CPanel rather than the procmailrc  or .forward file in a shared CPanel System?  

I am usuaully working in a dedicated server environment, so this shared CPanel setup is a first for me for a mail script.  

Thanks,
Eric

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Redirecting Email to Script in shared CPanel Environment
« Reply #3 on: December 09, 2005, 08:57:55 pm »
Eric,

Yes, cPanel is one of the few server types that allows the setup of a forward to a CGI directly from the control panel.

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