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

mail server sending out thousands of spam mails

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
sander815
Posts: 1
Joined: Fri Mar 29, 2019 7:14 am

Os: Debian 8x
Web: apache + nginx
mail server sending out thousands of spam mails
  • Quote

Post by sander815 » Fri Mar 29, 2019 7:27 am

i have no idea why this happens, but apperently my smtp server is open?
I have 800.000 unsend mails in my queue, and rising.

I already removed them yesterday, blocked all access to port 25, but this morning there are again 500.000 mails.
What can i do?

i tested for a open relay on https://mxtoolbox.com/, but its closed.
There are no scripts, at least that i know
So, what is going on?

i have this in my conf:
dc_eximconfig_configtype='local'
dc_other_hostnames='vps2.sanderkerkhoff.com'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

do i need to enter 127.0.0.1 in: dc_relay_nets=' ' ?
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: mail server sending out thousands of spam mails
  • Quote

Post by dreiggy » Fri Apr 05, 2019 6:08 pm

Have you checked who is generating mails?

Check queue: exim -bp
Read mail header: exim -Mvh mail_ID
Read body: exim -Mvb mail_ID

Additionally try read exim log: /var/log/exim/main.log
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: mail server sending out thousands of spam mails
  • Quote

Post by grayfolk » Fri Apr 05, 2019 6:27 pm

Check your php scripts, wordpress first - they 100% contains malicious code.
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: mail server sending out thousands of spam mails
  • Quote

Post by mehargags » Sun Apr 07, 2019 7:14 pm

Your sites are infected and your server may be compromised. Disable your sites one by one and watch your exim queue using

Code: Select all

exim -bpc
. then find the problem site and fix it.
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: mail server sending out thousands of spam mails
  • Quote

Post by dreiggy » Sun Apr 07, 2019 8:09 pm

mehargags wrote: ↑
Sun Apr 07, 2019 7:14 pm
Your sites are infected and your server may be compromised. Disable your sites one by one and watch your exim queue using

Code: Select all

exim -bpc
. then find the problem site and fix it.
Or user may install maldet and scan all websites :)
Top


Post Reply
  • Print view

5 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
 

 

Login  •  Register

I forgot my password