more on SPF (tutorials, etc) here: http://www.openspf.org/
Main Topics
Browse All TopicsMy 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.
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.
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.
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.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
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.
more on SPF (tutorials, etc) here: http://www.openspf.org/
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.
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
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.
:)
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
"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
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?
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).
Business Accounts
Answer for Membership
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/ pre venting_ex change_200 0_2003_fro m_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.
s/dns/ch9/ spf.html
om/?kbid=9 09005
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/book
To completely clean up the consequences of the incoming NDR attack, read this: http://support.microsoft.c
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