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

Many emails are sent from PHP scripts on the server

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by PremF, Feb 11, 2010.

  1. PremF

    PremF Guest

    0
     
    There are a lot emails are sent from PHP scripts from my server.
    I really need to find what domain the script is running on.

    I have found this knowledge base, but it is for Qmail.
    http://kb.odin.com/en/1711

    As my server is using Plesk 9.3 with Postfix, not Qmail,
    anyone please suggest how can I adapt that resolution to Postfix?
    Or how should I do to find the script?

    Thank you.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,238
    Location:
    Novosibirsk, Russia
    But you can switch to Qmail, apply this solution and switch to Postfix back.
     
  3. kanada

    kanada Basic Pleskian

    25
    73%
    Joined:
    May 25, 2007
    Messages:
    67
    Likes Received:
    0
    You can always patch your php with header patch.
    On every message you will see script that send this message then.

    Regards,
    Alex
     
  4. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    We have backported the mail header and logging patch into PHP 5.2.12 from the atomic repo. This will either log which application is using the mail() function, or it will inject a header into each message sent indicating the application that was used to send the message. It can be controlled via ini settings, and implemented globally or on a per-domain basis. More info on how to upgrade is available here:

    http://www.atomicorp.com/wiki/index.php/PHP
     
  5. PremF

    PremF Guest

    0
     
    How to do that?
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,238
    Location:
    Novosibirsk, Russia
    Just run /usr/local/psa/admin/bin/autoinstaller and go to menu there.
     
Loading...