Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Locating Spam Sending Scripts

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Lavenblade
Posts: 1
Joined: Thu Nov 03, 2016 2:10 am

Locating Spam Sending Scripts
  • Quote

Post by Lavenblade » Wed Nov 30, 2016 10:29 pm

My server recently started sending mass spam emails. How do I go about finding the location of the problem? I'm running Debian 8.
Top

DarthVader
Posts: 31
Joined: Wed Jul 13, 2016 1:35 pm

Re: Locating Spam Sending Scripts
  • Quote

Post by DarthVader » Tue Dec 13, 2016 9:02 pm

ADHOC

You can try add mail() function to disable_functions in php.ini
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Locating Spam Sending Scripts
  • Quote

Post by mehargags » Wed Dec 14, 2016 6:40 am

Lavenblade wrote:My server recently started sending mass spam emails. How do I go about finding the location of the problem? I'm running Debian 8.
Its a long and tedious process freind.. their is no quick remedy I'm afraid.

>. read mail header from the queue, using exim -Mvh <mailqID> see which script is firing mail.

also
>. Make sure all domains are hosted under separate individual VestaCP users
>. Use eximstats -nr -html -byemaildomain -bydomain /var/log/exim4/mainlog | less > report.html
and read which domain is sending domains.

>. maldet your server to know which script files are not good
Top

misterpat
Posts: 16
Joined: Wed Jun 15, 2016 12:25 am

Os: CentOS 6x
Web: apache
Re: Locating Spam Sending Scripts
  • Quote

Post by misterpat » Sun Jan 15, 2017 1:58 pm

I'm sure you have it fixed by now, but for anyone that finds this thread, this is a great tool.

In your php.ini file add this code. Modify the log path to your liking.

Code: Select all

mail.add_x_header = On
mail.log = /var/log/phpmail.log
Keep an eye on your log file for the spam scripts.

More information here:

https://blog.rimuhosting.com/2012/09/20 ... ur-server/
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password