Question

Exchange 2007 Spamming

Asked by: The_R0CK

We are having major problems sending email from our Exchange 2007 Server. Our server is appearing on blacklists and our outbound email is being refused. Upon inspection of the Outbound SMTP Queue, I have found literally hundreds of outbound emails, all have "From: <>" and "To:" random email domains. Its clear to me that something is using our Exchange server to send spam, most likely an internal MAPI client, however I am unsure/unable to locate the source of the problem.

Our setup is Exchange 2007 server which also is running Trendmicro Scanmail 8. The exchange server is behind a firewall and has a public IP nat'd to it on port 25. All outbound port 25 traffic is blocked expect from the Exchange IP.

This is a major problem and is effecting our business, therefore I am awarding 500 points to whoever can help me resolve this issue quickly...

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
2007-10-18 at 00:36:09ID22901057
Tags

exchange

,

2007

Topics

Spam Black Holes

,

Exchange Email Server

,

Email Servers

Participating Experts
4
Points
500
Comments
22

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. Spam, Spam, Spam, Spam!
    No, not a call for a Monty Python reunion......... We are a small (40-50 mailboxes) company running a single Exchange 2000 server. Lately our spam has shot through the roof. I am just beginning to look for a blocking solution and would appreciate pointers about what has wo...
  2. Spamming???
    I have turned up the logging on my SMTP Service and i see a lot of this... This is an SMTP protocol error log for virtual server ID 1, connection #45560. The remote host "216.159.242.70", responded to the SMTP command "rcpt" with "550 5.1.1 User unkn...
  3. Spam
    I just installed Exchange Server 2003 at my office. Now everytime someone sends an e-mail from our office to outside people the outside people receive our e-mail has spam. How can I stop that?
  4. Deliverability issues, Spam filters, and Blacklists... H…
    I'm having a major problem with email deliverability... It's really bad. Email from my domain is filtered into spam and junk folders at all major providers, except for AOL which just returns our email outright. We moved our email to a new server/hosting provider last week ...
  5. Spam, Spam, Everywhere
    Hey Everyone, My entire company, with the exception of myself, receives a ton of spam email. Sometimes they receive over 50 spam mails a day. One guy actually got a spam message from himself, at least it appears that way. We are using Exchange 2003 with a POP3 through a c...

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: The_R0CKPosted on 2007-10-18 at 00:59:52ID: 20099277

Also I have actually assumed that our server is appearing on Blacklists. Upon further inspection I have actually found that we only appear on one: dnsbl-3.uceprotect.net LISTED!. However this site states that it is our ISP which is listed and not our IP directly. Unfortunately in our area we only have one ISP! therefore I do not have the luxary of choice....

 

by: grbladesPosted on 2007-10-18 at 01:03:52ID: 20099283

You could install a network analyser such as ethereal (http://www.ethereal.com/) and see who the top senders of email are by IP address. Any compromised machine is likely to be at the top.

Sembee also has a lot of very good guides on his website for exchange - http://www.amset.info/exchange/

 

by: grbladesPosted on 2007-10-18 at 01:06:02ID: 20099287

I would check to make sure you are rejecting amil to unknown users. See sembees article at http://www.amset.info/exchange/filter-unknown.asp.

You can send me a test email at test@cdlive.co.uk (post here when you have sent it) and I can see if you are on any other RBLs or there are any other problems with your mail configuration.

 

by: The_R0CKPosted on 2007-10-18 at 01:13:39ID: 20099315

Thanks for the posts. I will look into these suggestions...

A specific problem I face is sending email to hotmail.com. I get the following message:

bay0-mc7-f7.bay0.hotmail.com #550 Your e-mail was rejected for policy reasons on this gateway. Reasons for rejection may be related to content with spam-like characteristics or IP/domain reputation problems. If you are not an e-mail/network admin please contact your E-mail/Internet Service Provider for help. For e-mail delivery information, please go to http://postmaster.live.com ##

I havent been able to figure out how Hotmail block email and how to get us off there list.... Obviously I need to resolve the spamming issue first to prevent us from being put back on....

 

by: The_R0CKPosted on 2007-10-18 at 01:24:38ID: 20099353

Another issue I am facing is most of the information I can find about securing exchange is all based on the 2003 version.... such as Sembee's pages provided above. Its difficult to find feature for feature setting in 2007. Can anyone help me with specific settings in exchange 2007? I.E. how to ensure internal email senders are authenicated etc?

 

by: The_R0CKPosted on 2007-10-18 at 01:26:03ID: 20099356

grblades: I sent that test email....

 

by: grbladesPosted on 2007-10-18 at 01:26:53ID: 20099359

Hotmail are a major problem. They will accept and delete email without notifying anyone and if you ask they wont give you a reason why the emails are being deleted.

I believe hotmail have a paid service where they are more likely to accept your mail.

 

by: The_R0CKPosted on 2007-10-18 at 01:29:16ID: 20099368

It may be that all the messages in my outbound queues were NDR's??
Do outbound NDR's show "From: <>"??

I have now disabled "Allow NDR's" to be sent using the Outbound SMTP connector (Hub Transport), lets see if that helps...

 

by: The_R0CKPosted on 2007-10-18 at 01:38:15ID: 20099403

Only thing is with Hotmail, we were able to send email there, until 2 days ago when this problem started... I still cant find our domain on any blacklists.... strange indeed. However its not only Hotmail refusing our email, several of our customers and partners are blocking us.... most embarassing.

 

by: grbladesPosted on 2007-10-18 at 01:40:05ID: 20099411

I expect Sembee will post in here when he comes online. I would leave it 12 hours or so and if he does not post you can send him an email on his website.

> Received:  from mail.biosme.com (unknown [83.111.160.230])
It looks like you dont have  a PTR record for your IP address. You should contact your ISP and ask then to add a PTR record for 83.111.160.230 pointing to mail.biosme.com.

The only RBL I found was the UCEPROTECT one you mentioned. You say that there is no alternative ISP for you to use.
There is a way around this. You could reant a server from a hosting company and have it configured to only accept mail from your IP address and for that IP address to be trusted. You could then configure your exchange to send all outgoing mail to that server as a 'smart host'. It will then be the IP address of the rented server which matters in RBL terms so you will bypass the problem.

 

by: The_R0CKPosted on 2007-10-18 at 02:07:30ID: 20099509

Hmmm.... Strange this is when I look at our domain on www.dnsreport.com it show that we have a PTR (reverse DNS entry)?? Whats up with that?

 

by: grbladesPosted on 2007-10-18 at 02:20:36ID: 20099540

Its a different IP address. Your MX entry points to a mail server with IP address 83.111.184.160. The mails you are sending are coming from 83.111.160.230 and it is that IP address which does not have a PTR (reverse dns entry) record.

 

by: The_R0CKPosted on 2007-10-18 at 02:25:14ID: 20099550

I have checked with the ISP, they have confirmed that our PTR record is inplace as follows:
160.184.111.83.in-addr.arpa mail.biosme.com

DNSReport also backs up this statement.... Strange that our domain is showing up as "mail.biosme.com (unknown [83.111.160.230])". Any ideas on this?

It could indeed be that our email is being blocked due to reverse-dns lookup failure...

 

by: grbladesPosted on 2007-10-18 at 02:34:46ID: 20099568

Your mail server is saying it is mail.biosme.com and the IP address which sent the mail to us was 83.111.160.230. That IP address cannot be forged. Looking up the IP address it appears to be located in Dubai, UAE which I guess is your location.

 

by: The_R0CKPosted on 2007-10-18 at 02:35:14ID: 20099570

Ok yes.. you are absolutely right!!

The reverse DNS IP is not actually our email server.... damn how did I miss that? Just shows a second pair of eyes really helps at times.

I will now request the ISP to correct the PTR record, probably take 24 hours and I will update. Thanks for the assistance....!

Also, it seems that by disabling sending of NDR to outside, has stopped the emails building up in my outbound queue. Perhaps someone was hamering our smtp with fake domains, and our server couldnt send out the NDR's??? not sure really...

 

by: grbladesPosted on 2007-10-18 at 02:41:52ID: 20099584

It may be related to my 2nd post I made about making sure exchange is configured to reject mail to non existing users. If you dont then you end up sending out non delivery reports to the (faked) senders email address. This in itself can get you on a RBL (http://www.backscatterer.org/ in particular).

 

by: SembeePosted on 2007-10-18 at 11:44:53ID: 20103509

The messages that you are seeing in the queues are NDRs. It looks like you are facing NDR spam. Recipient filtering is available on Exchange 2007, I haven't written the article on it yet though. It is in the list of things to do.

Are you running a single server? If so then you will need to install the antispam agents first.

In powershell, change to the following directory (presuming default locations)
C:\Program Files\Microsoft\Exchange Server\Scripts

Then use tab to select install-AntispamAgents.ps1
Run that and restart Exchange 2007 EMC.

Then go to Organisation Configuration, Hub Transport and select the Anti-spam option.
Disable every option (as they are enabled by default) except for recipient filtering. Go in to the properties of recipient filtering and enable the option "Block messages sent to recipients not in the global address list" on the Blocked Recipients list.
Apply/OK out.

To get the change to take, restart the Microsoft Exchange Transport Service.
No need to enable tarpit, as that is enabled by default anyway.

To clean the queues, I don't have a good method yet (again because I haven't had time to sit and work one out) so the quick and dirty method will have to do.
In Server configuration, right click on the Server and choose properties. Click on the tab limits. Make a note of the defaults and then change each timeout to 1 minutes. Do NOT change the retry setting unless prompted to. Again apply/OK out and restart the Exchange Transport Service.
That will flush out the queues.

I would suggest that you change the NDR setting back to the default.

Simon.

--
If your question has been answered, please remember to accept the answer and close the question.

 

by: The_R0CKPosted on 2007-10-24 at 06:13:11ID: 20138494

Hi Simon,

Thanks for that info, actually quite impressive the antispam feature! All seems to be good now, reverse DNS issue resolved (thanks for helping find that grblades!), and queues are clear (thanks Simon)!

 

by: hiyusufPosted on 2008-01-30 at 04:47:23ID: 20776530

HI Sembee
Well i am facing the same problem of messages in queue viewer from unwanted domains ,i think they are junk or may be spam and also it creates a dns connecters and always retry and rety i would like to now is it coming from some internal machines or are the spammers are hitting my exchange 2007 server or what is the exact issue and whats the solution for it.Kindly help me

 

by: SembeePosted on 2008-01-30 at 06:43:21ID: 20777324

hiyusuf - this is an old question. Unlike a forum it is not possible to "bump" questions back up the list. The only people who will see your post are those that have already participated. Instead you should post your question as a new question in the Exchange Server Zone which will allow other experts the chance to see the question and respond.

Simon
Exchange Server Zone Advisor.

 

by: hdejonghPosted on 2008-02-04 at 11:53:52ID: 20817365

Sembee,

I have tried your solutions, but for some strange reason "anti-spam" doenst block anything.
After installing the script i searched the eventlogs and got this error:
Anti-spam agents are enabled, but the list of internal SMTP servers is empty. If there are any MTAs between this server and the Internet, populate this list by using the Set-TransportConfig cmdlet in the Exchange Management Shell.

But there is no other mailservers in this domain...
so i gave this commmand: set-transportconfig -internalsmtpservers 192.168.10.100
that is the ip of my exchange server.
But still it wont work...

 

by: SembeePosted on 2008-02-04 at 12:10:24ID: 20817505

hdejongh - as I have already stated - this is an old question. I would suggest that you post your query as a new question so that other experts get the opportunity to respond to it.

Simon
Exchange Server Zone Advisor.

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...