Question

NDR Attacks

Asked by: mcnuttlaw

My Exchange 2000 server is being hit with 3,000-5,000 NDR type of emails every day.  By reading the various yet excelent posts here at EE, I have implemented the following steps:

- Relaying is turned off and has been verified using telnet, ehlo, mail from, rcpt to etc.  The checkbox to "allow all authenticated computers to relay" is NOT checked.

- The number of connections to the SMTP server is limited to five connections with a 10-minute timeout.

- In Exchange System Manager, the ability to send NDR reports is disabled (not checked).  This is still enabling NDR to our internal users as expected.

- The badmail directory is emptied nightly with a cleanup script.


As a result of implementing the above steps, two things have happened:

- The SMPT Queues have gone way way way down which is resulting in a lower CPU usage.

- The badmail directory is not getting as full.  Instead of 4,000 badmails per day, only a few hundred are appearing in the directory.


So I have a few questions:

1) Are the above steps satisfactory to prevent relaying?  Is five connections too little?

2) Since I can't stop the incoming NDRs into Exchange 2000 (unless I had an appliance), I can definitely stop the NDRs from leaving Exchange.  Are the above steps satisfactory in achieving this?

3) And perhaps the most important question.  If the NDRs that continue to come in are "bad mail", why is my badmail directory not filling up at the same rate BEFORE disabling the NDR features?


(heavy points due to some insightful advice sure to follow...)

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-01-24 at 08:42:02ID21708292
Tags

ndr

,

exchange

,

attack

Topic

Exchange Email Server

Participating Experts
2
Points
500
Comments
10

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Reverse NDR Attacks affect Linux???
    Hello all. I have a network of about 30 users which we run exchange 5.5 on a windows 2000 server. Anyway, middle of last week we started getting hit as an open relay and then this new reverse ndr attack where the spammer sends it to a fake address with the senders address be...
  2. Postmaster NDR Attack
    Hi, In recent weeks our Exchange Server has experienced what I believe a NDR attack. We have subsequently followed the advice written in Microsoft Knowledge Base articles 886208 and 842851 but we still seem to be getting a lot of messages in our smtp queues. Does anybody ...
  3. After exchange NDR Attack
    Hi Experts We have recently been the victim of an NDR attack on our exchange server (2003) on server (2003) and followed all the instructions found on this site to rectify the problem including recipient filtering, turning of NDR's, tarpitting and cleaning out the bad mail a...
  4. NDR Spam Attack
    Hi We have increasingly been bombarded with NDR spam email through 2 of our user email addresses on our domain. We run Windows Server 2003 for SBS and also the Trend Micro Worry free Business Security sever/client software. Our email is directly sent to our server and I have ...
  5. Intermittent NDRs
    I have been round and round with ATT about this.. I thought it was a routing issue out because I see the email in the queue and it leave the server, but then we get an NDR (examples below). If we do the send again/send from the NDR the email then gets to the recipient. NDR ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: yujaPosted on 2006-01-24 at 09:39:02ID: 15777851

1) yes, if you have followed the steps (as outlined here: http://www.petri.co.il/preventing_exchange_2000_2003_from_relaying.htm), you are fine. making telnet checks assures you that you can't relay. be also aware that if you were an open relay before, and somebody has exploited it, your server can be put in a list of open relays (http://www.ordb.org/) which will make certain domains, who check against this database, to reject your messages. you will need to contact the database admins and request removal from the list.

As for 5 connections, you might want to bring it up. Even in a small company environment with around 50-60 users, there are times when 5 connections is not enough for legitimate users.

2) You can't stop, but you can minimize incoming NDRs. The NDRs are sent to your server in two cases: either your server is used as an open relay - which you said you have closed; - or if the sender's address is forged as if it were sent from your server. You cannot prevent the second case, but you can do one step to minimize it: implement SPF. by adding a single DNS record to your dns servers, you can list all the servers who are allowed to send emails on your domain's behalf. Now this is not panacea, because it requires both you putting the record in your dns, and email recipient's server checking that dns record. But nowadays, more and more administrators implement SPF checks, and this number will increase in the future, plus most of the major free email services (which are the best target for spammers/trojan senders/etc) implement spf. To read more about SPF records, see this article: http://www.zytrax.com/books/dns/ch9/spf.html

To completely clean up the consequences of the incoming NDR attack, read this: http://support.microsoft.com/?kbid=909005

As for outgoing NDRs, yes, the checkbox to disable outgoing NDRs will suffice. Check yourself by loggin on to your free webmail (like hotmail) and sending an email to a nonexistent user in your domain. If nothing comes back, you're fine.

3) I have not completely understood your question. The rate of NDRs has decreased because you stopped the open relay, and whoever was sending messages from your server cannot do so anymore. What NDR features are you talking about anyway?


And the last, but the most important: get some 3d-party software to alleviate this. I would recommend GFI MailEssentials on the server (to stop spam) and GFI MailSecurity on the gateway virtual server (to stop NDRs, emails to nonexistent users and many other types of attacks). And they are very cheap - both of them you'll get under $1000 (depending on the size of your company, of course). you can get them at http://www.gfi.com

 

by: yujaPosted on 2006-01-24 at 09:41:08ID: 15777877

more on SPF (tutorials, etc)  here: http://www.openspf.org/

 

by: mcnuttlawPosted on 2006-01-24 at 10:08:06ID: 15778145

yuja,

My server was always set to not allow relaying; therefore, we are not on any open relay lists.

1) I'll increase the connection count.  You brought up a good point.

2) I have not heard of SPF so I will read up on that.

3) The NDR feature I was referring to was disabling (unchecking the box) the ability to send out NDRs (Exchange Manager, Internet Mail Delivery, Properties).  

To clarify your confusion.  Since open relay has always been disabled in my SMTP, I am taking the NDR attacks (all with fake email addresses) one step further by disabling the NDR sending.  I'll let them come in but won't let them go out.  Tests from my Hotmail account are successful in that it does not receive a NDR.

Since the time I unchecked the box, the amount of bad mail in the Badmail directory has dropped to less than a few hundred per day yet the amount of NDRs coming in have remained the same at a few thousand per day.  Is this normal behavior of disabling NDRs?  If not, then where would you suggest I further check in my environment?

I like the GFI products.  Is MailEssentials installed on the Exchange server or on a gateway server?  I do not have a gateway server since we are a small firm.

 

by: kshaysPosted on 2006-01-24 at 10:13:39ID: 15778197

GFI Mail essentials has been good for us.  I use MailEssentials and MailSecurity.  Both are installed on the exchange server itself with active directory integration.  
In the system manager/message delivery properties (sender filtering) do you have filter messages with blank sender and drop connection if address matches filter checked?  (receipient filtering)-check filter receipients who are not in active directory?

Just some basic stuff that helps, but like others have said GFI Mail Essentials are pretty good.

kshays


 

by: mcnuttlawPosted on 2006-01-24 at 10:17:39ID: 15778238

kshays,

We have E2k which I believe does not have recipient filtering.

So to make up for this shortfal, will Mail Essentials handle the NDR attacks?

 

by: kshaysPosted on 2006-01-24 at 10:19:31ID: 15778256

Dangit, sorry, i overlooked the 2000 and thought it was 2003.

My bad.

kshays

PS:  have you went to www.gfi.com and looked through their product documentation yet.  Some like GFI and some don't, but I find it very useful though.

:)

 

by: kshaysPosted on 2006-01-24 at 10:29:44ID: 15778369

Here is a quick overview of Mailessentials for the anti-spam node.
sender policy framework
whitelist
directory harvesting
custom blacklist
bayesian analysis
dns blacklist
spam URI realtime blacklist
header checking
keyword checking
new senders

Email Management:
list server
disclaimers
mail archiving
mail monitoring
auto-replies
reporting

 

by: yujaPosted on 2006-01-24 at 10:32:51ID: 15778399

"So to make up for this shortfal, will Mail Essentials handle the NDR attacks?"

MailEssentials is an antispam product. If you include the NDR keywords in it  - it will block those messages (or discard them or whatever you want to do with them)

MailSecurity, on the other hand, does have massive email defense system - including NDRs

 

by: mcnuttlawPosted on 2006-01-24 at 10:41:15ID: 15778502

Got it,

We already have an antispam product in place with 98% success rate so it looks like I will be looking at MailSecurity since my focus is to prevent NDRs from coming into Exchange.  If the user doesn't exist in Active Directory, then block it from even entering Exchange.

Question: some users have multiple email addresses and different domain names.  For example, user1@domain1.com and user2@domain2.com.  Will MailSecurity handle multiple alias filtering?

 

by: yujaPosted on 2006-01-25 at 08:27:03ID: 15787580

Actually, if user doesn't exist in Active Directory, MailEssentials (rather than MailSecurity) will take care of it, as it is tightly integrated with Active Directory and the Exchange engine itself (this type of attack is called Directory Harvesting). And yes, it will work fine with two - or more - differend domains and multiple aliases.

98% is good, but we have achieved phenomenal percentage rate with MailSecurity + MailEssentials (99.7%). 90 percent is taken care of by checking against various live open relay databases (you can add your own, but there are a bunch of them there as it is) - not only for the originating mail server, but also for LINKS inside emails (if links point to a "bad" server which has been listed as a spam server, the email will get blocked as well). The rest is either picked up by Directory Harvesting module or Bayesian module (Bayesian basically blocks emails based on certain words, and it "teaches" itself as it goes). The rest is killed by the SPF check, Headers check and Keyword check. Our organization has 75% of incoming mail being spam, and out of thousands of emails of spam we receive each day, only about 10 make it through (for all the users in the organization).

Yes, all these checks do slow down things a little bit (your incoming email will be delayed for 4-5 seconds each), but the blocking rate is just tremendous.

You will need to add certain keywords to block most of the phishing (Paypal+suspended, eBay+suspended, account+suspended, Paypal+stolen, eBay+stolen, account+stolen seems to eliminate 99% of them) while MailSecurity completely protects against viruses in attachments, various exploits, blocks (or lets through) attachment of the specified type, tell you if the attachment extension does not match the file's mime type (for example, an exe file renamed to txt file).

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...