Postfix and PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yuki sama
    New Member
    • Jul 2011
    • 1

    #1

    Postfix and PHP

    First please forgive me if this is not the right location for my
    question, and if it is indeed not the right place, please give me the
    right direction.

    My name is retisa, I'm college student in Indonesia. I want to ask
    about Postfix and PHP, because one of my assigment is build the mail
    server using Postfix and filter using PHP.

    So the scenario is:

    incoming mail-->postfix-->php filter-->postfix-->destination address.

    Postfix will receive incoming mail, then inject it to port, for
    example port 10033, then script php will receive and filter it, after
    that, script php will inject it back to other port (e.g port
    10034).Postfix will receive it, then send it to destination address.

    So:
    1. how do i configure postfix to inject incoming mail to a port
    (10033) and filter it using php script then receive it back in other
    port (10034), and
    2. how do i configure php script so that it will be able to receive
    incoming mail from port 10033 then inject it back to port 10034 after
    filtering?

    Actually the main question is how do I configure the two of them
    (Postfix and PHP) to work together.

    Would you like to give some tutorial about connecting postfix and php,
    especially about the problem above (i will be very grateful if you
    also give the example of the script,for example simple script for
    phrasing or etc).

    really really many thanks for your answer.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    The postfix-specific stuff should be asked on a forum with experts in the subject. I'm unsure of any lurking here at bytes.com.

    PHP can be used for network-programming (listening to ports, etc.). Specifically, you will find information in the documentation.

    Comment

    Working...