Hi guys,
I have followed the below instructions to try and track down spam sending scripts, but for some reason the phpmail.log is not getting anything written to it.
Does anyone else have any experience with this method and had similar issues?
Edit /usr/local/lib/php.ini and add below lines
mail.add_x_header = On
mail.log = /var/log/phpmail.log
And create a file called /var/log/phpmail.log , give full permission or exim user permission then restart Apache
touch /var/log/phpmail.log
chmod 777 /var/log/phpmail.log
service httpd restart
You can find the exact php script from "/var/log/phpmail.log", creating spam mails (it will also log all mails send using php mail function)
I have followed the below instructions to try and track down spam sending scripts, but for some reason the phpmail.log is not getting anything written to it.
Does anyone else have any experience with this method and had similar issues?
Edit /usr/local/lib/php.ini and add below lines
mail.add_x_header = On
mail.log = /var/log/phpmail.log
And create a file called /var/log/phpmail.log , give full permission or exim user permission then restart Apache
touch /var/log/phpmail.log
chmod 777 /var/log/phpmail.log
service httpd restart
You can find the exact php script from "/var/log/phpmail.log", creating spam mails (it will also log all mails send using php mail function)