Forwarder creation outside of CPANEL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trehahn
    Junior Member
    • Mar 2006
    • 17

    #1

    Forwarder creation outside of CPANEL

    I was going through this forum, and found a couple of posts on creating e-mail accounts outside the CPANEL, one of which worked great. I've been unable to find one to create a forward account though. I've tried changing the information in that script, it says its successful, however it doesn't work. I'm sure it has to do with a coding error of some sort, but in the meantime does anyone have any idea where one can be found? I'm by no means a PHP expert, but have toyed with it....I'm going to keep playing with this one to hopefully get it to work, but if anyone has a suggestion I'm all ears! Hopefully since they've got them for pop accounts, a forward account creation script won't be a problem.
    Tim Rehahn
    Tru3 Style Radio
    The Best Music From One End Of The World To The Other
  • james
    Senior Member
    • Mar 2004
    • 183

    #2
    Out of interest, which (working) script have you used for pop accounts. I can probably adopt this to work with forwarders.

    Comment

    • trehahn
      Junior Member
      • Mar 2006
      • 17

      #3
      The one I got to work the easiest was this one: http://sourceforge.net/projects/cpanemail/

      While others were said to work, this one had a nice layout, and was VERY easy to get working. It all in all seemed the best option to me. Thanks.
      Tim Rehahn
      Tru3 Style Radio
      The Best Music From One End Of The World To The Other

      Comment

      • trehahn
        Junior Member
        • Mar 2006
        • 17

        #4
        I am able to add the entry, however I'm not sure the exact format for adding the forwarded address. I'm also getting errors when I require the forward address, but by deleting that part it works. It always adds the e-mail address to be forwarded correctly, but for the forwarded address it adds "@domain.com" where domain.com would be your domain. I'm still working on it though! If anyone has any idea exactly what format it uses to add it, that might help. This is what it uses for the pop accounts:

        ("http://$u:$p@$domain:2082/frontend/bluelagoon/mail/doaddpop.html?email=$username&domain=$domain&passw ord=$password&quota=20", "r");

        I know the first part of it for the forwards is: "http://$u:$p@$domain:2082/frontend/bluelagoon/mail/doaddfwd.html?

        Beyond that I'm stuck so far.
        Tim Rehahn
        Tru3 Style Radio
        The Best Music From One End Of The World To The Other

        Comment

        • trehahn
          Junior Member
          • Mar 2006
          • 17

          #5
          I got it working now, just need to tweak the entry form to reflect the changes and everything. Will post the updated script tomorow when I get home from work, running late. Thanks to those who checked into it!
          Tim Rehahn
          Tru3 Style Radio
          The Best Music From One End Of The World To The Other

          Comment

          • trehahn
            Junior Member
            • Mar 2006
            • 17

            #6
            Well, I edited the form to fit the forwarded needs, instead of a POP3 account, however I did notice while testing it not everything works as it "should". It does create accounts just fine, however if the account exists, it still creates the account. It will have 2 accounts with the same e-mail address. On the POP3 script it does tell you that it already exists, but on the forwarder it does not. I'm sure its another code thing, but I'm nowhere near experienced enough to figure it out! If someone else is, have at it! If you figure it out, let us know!

            The Files:
            Forward Account:

            POP3 Account (original file)


            Both the forward account and pop3 (original script) are there to compare if you want to. Good Luck!
            Tim Rehahn
            Tru3 Style Radio
            The Best Music From One End Of The World To The Other

            Comment

            • trehahn
              Junior Member
              • Mar 2006
              • 17

              #7
              OH! One thing I forgot...sorry but its 10am and I worked last night and I'm ready for bed! Open the Files up, anywhere you find "enterme" replace enterme with whatever should go there. Just open it in Notepad or another text editor and do a search for enterme.
              Tim Rehahn
              Tru3 Style Radio
              The Best Music From One End Of The World To The Other

              Comment

              • ande159
                Junior Member
                • Apr 2006
                • 1

                #8
                Tim,

                I would also like to use a script that creates a forwarder.

                I downloaded your forwarder.zip file and made all the appropraite changes, but i'm still getting an error:

                Warning: fopen(http://...@redstone119.alwg.cap.gov:...ut@gmail.com): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/ande159/public_html/forwarder/process.php on line 54

                Unable to open remote file.
                Any idea what's causing this? When your script tries to run

                $file = fopen ("http://$u:$p@$domain:2082/frontend/bluelagoon/mail/doaddfwd.html?email=$username&domain=$forward&forw ard=$req_forward", "r");

                I guess it can't open whatever page that this address is suppose to bring up. I also tried manually entering that address into the IE address bar (replacing all the variables with actual data of course), and got a "page cannot be displayed" error.

                Any help would be appreciated.

                Thanks,
                Ande

                Comment

                Working...