1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Incoming Email pipe to a PHP script

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by MarjuneA, Jul 11, 2011.

  1. MarjuneA

    MarjuneA Guest

    0
     
    Hi,
    I'm running Plesk 10.x with its default services. In regards to its email service, I want an incoming emails to be piped to a php script. How to I do this?

    Thank you.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  3. MarjuneA

    MarjuneA Guest

    0
     
    Thank you for the link.

    Another thing is, it seems that Plesk doesn't have email filtering, is there another way to filter deferred emails?

    It is like this, using the fifth parameters on PHP mail() I set the 'return-path' into '<identifier>-bounce@domain.com'. Whenever the email is marked as 'deferred', it would be filtered so that I can determine which email it is and pipe it to a php script to handle it. How would to do this on Plesk 10.x?

    The same method was implemented on CPanel and it works. But since we migrated on Plesk, and I'm new to it.

    Thank you.
     
  4. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    oSticket email piping with qmail

    Here is a little tip... If you are getting errors in the maillog saying it is unable to open the file try this:

    Check if you are running php as fastcgi...if you are, then make sure you use /user/bin/php-cgi instead of /user/bin/php.

    This will resolve the permission issues with email piping from oSTicket.
     
Loading...