The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Log emails

Discussion in 'E-mail Discussions' started by NixTree, Jun 2, 2011.

  1. NixTree

    NixTree Well-Known Member

    Aug 19, 2010
    Likes Received:
    Trophy Points:
    Gods Own Country
    cPanel Access Level:
    Root Administrator

    Is there any way to log all emails send using "mail()" PHP function; I have PHP run as SuPHP. I have tried to put the below lines into php.ini, but that doesn't seems to work fine :(

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = On

    ; Log all mail() calls including the full path of the script, line #, to address and headers
    mail.log = “/var/log/phpheader.log”

    I have exim-4.69-29_cpanel_maildir and it isn't works with 11.28 stable and 11.30 release.

    Please somebody helps!

    Thank you.

Share This Page