Jump to content

Detecting malware in script which generate spam.


donkerg

Recommended Posts

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 = On
mail.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 ?

 

 

 

 

 

Link to comment
Share on other sites

  • 8 months later...

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.