php.ini mail.log with php-fpm

  • I have a question using php-fpm. I have problems with some wordpress installations sending spam, so I want to activate mail.log in php.ini. I removed the comment ; at the beginning of the line and configured mail.log in php.ini like that

    Code
    1. mail.log = /var/log/phpmail.log


    in all 3 php.ini files (/etc/php5/cgi cli fpm) and restarted php-fpm - no success. My phpmail.log keeps empty.


    How can I activate this logging?