Home > Ask the Microsoft Exchange Experts > Richard Luckett: Spam and Security Questions & Answers > Stop relaying and enable outgoing SMTP authentication
Ask The Exchange Expert: Questions & Answers
EMAIL THIS

Stop relaying and enable outgoing SMTP authentication

Richard Luckett EXPERT RESPONSE FROM: Richard Luckett

Pose a Question
Other Exchange Categories
Meet all Exchange Experts
Become an Expert for this site


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 09 January 2006
We have an Exchange 2003 server with SP1. I read your expert response Relay prevention on the Exchange server.

I would like to know:

  1. How can we stop relaying on an Exchange 2003 server? Only Active Directory users should be able to send and receive mail -- i.e., POP3 clients. I need step-by-step settings, if possible.

  2. How can we enable outgoing SMTP authentication on the Exchange 2003 server? Whenever a domain user is sending an e-mail, he should be prompted for a password.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Richard Luckett: Spam and Security
How effective is tracking the IP address of an email hacker?
Why can't I grant users permissions to an Exchange public folder?
How can I configure Exchange IMF to allow an IP address or DNS?
Tool helps identify inbound Exchange Server email flow issues
Configure SMTP relay restrictions in Exchange Server 2003 to stop spam
How to lock down an SMTP relay to prevent spam in Exchange Server 2003
Connecting an Apple iPhone to Exchange Server on Windows SBS 2003
Why does a security alert pop up when accessing Outlook Web Access?
Exchange email sent to a domain using SPF authentication is returned
Selectively set email permissions for Exchange groups

Microsoft Exchange Server 2003
Changing email address formats in Exchange Server 2003
Should you remove .STM files from Exchange Server 2003?
Troubleshoot 'System Attendant' error messages in OWA
Configuring the default recipient policy in an Exchange 2003 environment
Removing old disclaimers from Exchange Server 2003
ExMerge gotchas to watch for when migrating Exchange 2003 mailboxes
Recovering deleted items after an Exchange 2003 migration
Linking two Exchange 2003 servers in different forests
Microsoft Exchange Server virtualization tutorial
Installing Exchange Server 2003 and a domain controller on the same hardware
Microsoft Exchange Server 2003 Research

Antispam Software and Spam Filtering
Problems with email spoofing on SBS 2003
Exchange Insider e-zine
Securing your Exchange Server 2007 journaling archives
Microsoft Exchange Server security dos and don'ts
Troubleshooting Microsoft Exchange Server Event ID error 6009
How can I configure Exchange IMF to allow an IP address or DNS?
Tool helps identify inbound Exchange Server email flow issues
Configure SMTP relay restrictions in Exchange Server 2003 to stop spam
Exchange email sent to a domain using SPF authentication is returned
Secure Edge Transport servers using the Security Configuration Wizard
Antispam Software and Spam Filtering Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
greylist  (SearchExchange.com)
hash buster  (SearchExchange.com)
image spam  (SearchExchange.com)
KnujOn  (SearchExchange.com)
Sender ID  (SearchExchange.com)
spam confidence level  (SearchExchange.com)
spamblock  (SearchExchange.com)
spim  (SearchExchange.com)
tarpitting  (SearchExchange.com)
teergrube  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


VIEW MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A.

In answer to your first question, there is nothing that you need to do on an Exchange Server 2003 to stop spammers from relaying. Exchange Server 2003 is a closed relay. The response you referenced was pointing out that in order to support POP and IMAP clients, relaying must be allowed. Then anyone that can authenticate against the domain/forest can send mail using SMTP. Relaying has taken on a very negative connotation because of SPAM but people forget that relaying is what SMTP was built to do.

Now, regarding your second question, you bring up a very good point. All users must authenticate when sending e-mail. And retrieving e-mail for that matter. Again, there is good news for you here. Integrated Windows Authentication (NTLM V2 or KERB) is utilized by default in Exchange. So your POP/IMAP users may not be prompted for a username and password, as Exchange can derive the user's credentials from the user's security context. So, just because they are not prompted doesn't mean they are not being authenticated.

If the user's mail client doesn't support NTLM or KERB, then it is most likely going to try to use Basic authentication (clear text). This is also supported by default on the SMTP virtual server for Exchange Server 2003. In this case, the user will be prompted unless the client is manually configured to store the username and password for future use. In which case, again, you will not be prompted for a username and password.


MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A:

I am using Exchange 2003 on a Small Business Server (SBS). My company's Web site is SunBeam Generator. Some domain e-mail gets returned, like the following one:

Your message did not reach some or all of the intended recipients.

      Subject:     PO Monarc 052
      Sent:          4/18/2006 10:55 AM

The following recipient(s) could not be reached:

      'monarch@blr.vsnl.net.in' on 4/18/2006 3:12 PM
            You do not have permission to send to this recipient. For assistance, contact your
                  system administrator.
            <sunbeampower.com #5.7.1 smtp;530 5.7.1 http://dsbl.org/listing?219.64.179.119:
                  monarch@blr.vsnl.net.in>

What do I have to do and how do I authenticate SMTP?
—Arun S.

******************************************

The reason your server did not send to the specific address in your example is that the recipient's domain is blocked by DSBL.ORG. Your e-mail server or gateway filter is probably configured to check this list prior to sending e-mail. The NDR states this:
"http://dsbl.org/listing?219.64.179.119: monarch@blr.vsnl.net.in'

There are other reasons why this error could be generated but, in this case, I think it is most likely a blocked domain. For more information on this error, you should read Dave Sengupta's discussion thread related to firewalls causing the error.

In addition to the suggestions in that discussion thread, spam filters not allowing the country code DNS domain ".in" (and other country codes) could cause this error. If you find that all or most of the recipients that are being bounced back have e-mail addresses with two-digit country code domains, then that is a very likely culprit.

I have also seen remote systems generate these non-delivery reports (NDRs) when they don't like certain attachments coming through, so pay close attention to the system generating the NDR.
—Richard Luckett, Spam and Security Expert


Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchExchange.com:

  • Tip: Cross-Forest SMTP Authentication
  • Tip: Many ISPs now blocking port 25
  • Resource Center: SMTP tips and resources



  • Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    Outlook Web Access (OWA) Tips and Advice
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts