donkerg Posted August 1, 2014 Share Posted August 1, 2014 Hi, I`m currently generating spam via my own mailserver, its not much, but some of my clients receive messages that the messages they send could not be delivered. ( They are probably not snding them, but some script on one of the many websites is). Problem is that i`m currently unable to figure out which one of the websites is generating this spam. There are about 150 websites on this server. Some have old wordpress versions on them because the clients don`t ever update them. I`ve looked into adding a line in php.ini which should log all mails. mail.add_x_header = Onmail.log="E:\logs\phpmail\php-mail-errors.log" However this file keeps on being 0 bytes . Also if i generate a mail via a contact form which i made but the log is not showing it. The mail gets picked up by the mail servers, so the script does work. I`ve also checked that the php version is 5.0 or higher because otherwise the lines i added to the php.in would not be accepted by a earlier version then 5.0. The last I`ve done is changed the rights to the log file to writetable for the iis user, perhaps thats whats needed for the lines inh php to work. Has anyone any experiende with this issue ? Quote Link to comment Share on other sites More sharing options...
jeffreyappel Posted April 11, 2015 Share Posted April 11, 2015 In the php.ini (you can find this under "c:\program files (x86)\php\{PHP Version}") change these settings: log_errors = On Then set error_log to syslog for the windows event log: error_log = syslog Or specify a location on disk such as: error_log = C:\Windows\temp\php_errors.log Make sure that the error_log or log_error values aren't being set elsewhere in the file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.