Getting Started with setting up an email proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IT Master2
    New Member
    • Aug 2007
    • 13

    Getting Started with setting up an email proxy

    hi every 1:

    how can i deal with mail server to create alias through php?

    i want the user to be able to create alias to his/her email on my mail server.

    the page to do this is done in php.

    my mail server is UNIX platform .

    if any one need further info. please post what you need.

    please please provide me with answer A.S.A.P
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, IT Master.

    I'm going to go ahead and move this thread to the *n?x forum, where our resident Experts will be better able to help you out.

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      Originally posted by IT Master2
      i want the user to be able to create alias to his/her email on my mail server.
      ...
      my mail server is UNIX platform .
      I guess some further Information would be helpfull.
      • What mail server are you using?
      • How is the mail server connected to the php page?
      • Should there be any restrictions on how many aliases one user can create?
      If you can provide more information, please do so!

      Comment

      • IT Master2
        New Member
        • Aug 2007
        • 13

        #4
        hi every one:

        avctualy what i want is this:

        the mail server is built on JAVA, so what i want is some way to call a function in jave to my php page.(i read about something called php/java bridge, but i don't how to use it)

        for nepomuk:

        no limit is defined. but if there, how the solution will be different?

        Comment

        • Nepomuk
          Recognized Expert Specialist
          • Aug 2007
          • 3111

          #5
          Originally posted by IT Master2
          the mail server is built on JAVA, so what i want is some way to call a function in jave to my php page.(i read about something called php/java bridge, but i don't how to use it)
          In that case, this should probably be in the Java (or PHP) Forum. However nobody could know, as you didn't give this information. Well, everyone makes mistakes.
          The operating system is normally irrelevant, when Java is used (if it is coded apropriately that is).
          Originally posted by IT Master2
          no limit is defined. but if there, how the solution will be different?
          As you probably wrote the server yourself (or at least have the code) it would be easy - you would have to check, if the request to create a new alias is within the limit and only if so allow the creation of a new alias continue.

          Then the question comes up: How do the users connect to the mail server at the moment? Is it also webbased or is the alias-project the first webbased part of it?

          Comment

          • IT Master2
            New Member
            • Aug 2007
            • 13

            #6
            hi all:

            to nepomuk:

            i know you've got tired from me, but i realy appreciate your help:

            in a simple language:

            there is a function in JAVA and i want to call it to my php page, how could i do this???

            thank you again.
            best regards.

            Comment

            • Nepomuk
              Recognized Expert Specialist
              • Aug 2007
              • 3111

              #7
              Originally posted by IT Master2
              hi all:

              to nepomuk:

              i know you've got tired from me, but i realy appreciate your help:

              in a simple language:

              there is a function in JAVA and i want to call it to my php page, how could i do this???

              thank you again.
              best regards.
              Here's an example of how to access a Java class (and it's functions) out of PHP:
              [CODE=php]
              <?php
              // Create Instanz of the Java Class java.lang.Syste m in your PHP page
              $system = new Java('java.lang .System');

              // Access the functions
              print 'Java version='.$syst em->getProperty('j ava.version').' <br>';
              print 'Java vendor=' .$system->getProperty('j ava.vendor').' <br>';
              print 'OS='.$system->getProperty('o s.name').' '.
              $system->getProperty('o s.version').' on '.
              $system->getProperty('o s.arch').' <br>';

              // java.util.Date Example:
              $formatter = new Java('java.text .SimpleDateForm at',
              "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

              print $formatter->format(new Java('java.util .Date'));
              ?>

              [/CODE](Source)

              Comment

              Working...