Jump to content


This topic is now archived and is closed to further replies.


Detecting malware in script which generate spam.

Recommended Posts



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 = On


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 ?






Share this post

Link to post
Share on other sites

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.


Share this post

Link to post
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.