Spammers bypassing MX records direct to the server

Hi Team,
    One of my users is receiving a lot of spam and after analyzing the header i found that the email is getting delivered directly to my server and not through my MX records.

How can i stop spammers from submitting emails direct to my server.

We are running Exchange 2013.
Costas GeorgiouNetwork AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mal OsborneAlpha GeekCommented:

How can you tell from the logs how a spammer determined your IP address? Was the email delivered via an address you have listening on port 25 but not pointed to by an MX record?
Costas GeorgiouNetwork AdministratorAuthor Commented:
Correct: All my emails come trough trend micro and for spam emails i can see the email is delivered direct to My IP.

2 Samples below

Spam Email
Received:  by Server Name ( with Microsoft SMTP Server (TLS) id
 15.0.1130.7; Wed, 20 Jan 2016 10:47:27 +1100
Received: from (
 by MyServer.local ( with Microsoft SMTP Server id
 15.0.1130.7 via Frontend Transport; Wed, 20 Jan 2016 10:47:24 +1100

Non Spam Email:
Received: from ( by
 MyServer.local ( with Microsoft SMTP Server (TLS) id
 15.0.1130.7 via Frontend Transport; Wed, 20 Jan 2016 10:43:38 +1100
JohnBusiness Consultant (Owner)Commented:
Do you allow a direct connection to your server for employee and support access?  That is, direct instead of VPN?
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Costas GeorgiouNetwork AdministratorAuthor Commented:
Sorry John, i did not get your question.

With direct access do you mean Outlook anyware?
Outlook anyware : yes
JohnBusiness Consultant (Owner)Commented:
How do you access your servers from a remote location?
Mal OsborneAlpha GeekCommented:
Reconfigure your exchange server or front end firewall to only accept incoming email from Trends IPs, on  port 25.
Costas GeorgiouNetwork AdministratorAuthor Commented:
Malmensa: Thanks, i agree,, i am working on that now.
We have a Cisco router and no firewall.. Just trying  to figure that out..
Jeff GloverSr. Systems AdministratorCommented:
If you just have a Cisco router, then use an ACL to do what Malmensa recommended
Mal OsborneAlpha GeekCommented:
Yep, either an ACL on the router, or reconfig of Exchange should work just fine.
Costas GeorgiouNetwork AdministratorAuthor Commented:
@ Malmensa: could you please shed some light on the Exchange configuration if possible.
Costas GeorgiouNetwork AdministratorAuthor Commented:
Thanks guys for your help.

I removed the backup MX records and the spam has stopped all together now.

First of its kind as always.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Costas GeorgiouNetwork AdministratorAuthor Commented:
no one pointed out the solution of remove the backup MX records
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.