Advertisement

01.24.2006 at 08:42AM PST, ID: 21708292
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

NDR Attacks

Tags: ndr, exchange, attack
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...)
Start your free trial to view this solution
Question Stats
Zone: Networking
Question Asked By: mcnuttlaw
Solution Provided By: yuja
Participating Experts: 2
Solution Grade: A
Views: 195
Translate:
Loading Advertisement...
01.24.2006 at 09:39AM PST, ID: 15777851

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 09:41AM PST, ID: 15777877

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:08AM PST, ID: 15778145

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:13AM PST, ID: 15778197

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:17AM PST, ID: 15778238

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:19AM PST, ID: 15778256

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:29AM PST, ID: 15778369

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:32AM PST, ID: 15778399

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.24.2006 at 10:41AM PST, ID: 15778502

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.25.2006 at 08:27AM PST, ID: 15787580

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
01.24.2006 at 09:39AM PST, ID: 15777851

Rank: Master

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
Accepted Solution
 
01.24.2006 at 09:41AM PST, ID: 15777877

Rank: Master

more on SPF (tutorials, etc)  here: http://www.openspf.org/
 
01.24.2006 at 10:08AM PST, ID: 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.
 
01.24.2006 at 10:13AM PST, ID: 15778197

Rank: Master

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


 
01.24.2006 at 10:17AM PST, ID: 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?
 
01.24.2006 at 10:19AM PST, ID: 15778256

Rank: Master

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.

:)
 
01.24.2006 at 10:29AM PST, ID: 15778369

Rank: Master

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
Assisted Solution
 
01.24.2006 at 10:32AM PST, ID: 15778399

Rank: Master

"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
 
01.24.2006 at 10:41AM PST, ID: 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?
 
01.25.2006 at 08:27AM PST, ID: 15787580

Rank: Master

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).
 
 
20080236-EE-VQP-29