Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Log emails

Discussion in 'E-mail Discussion' 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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice