SMTP authentication with Exchange 2010

Hi,

I've got a config issue with Exchange 2010 : our server is NOT open relay, but accept sending mail from internal domain users (@ourdomain.com) without authentication. For exemple, sending a mail using Telnet will work as long as the sender (MAIL FROM) is @ourdomain.com

How configure the Exchange server to prevent this, and require authentication even if the sender is an internal user ?

Thanks
Frédéric
Christian KAZADIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
You need to look at ALL your Receive Connector permissions groups and make sure that none of them have Anonymous selected. If you have specific receive connectors that require sending out email anonymously (like an applicaiton server) you need to lock these does using IP addresses.

Will.
0
Christian KAZADIAuthor Commented:
Thanks Will, but if I remove "anonymous" from the allowed groups on my default Receive connector I cannot receive mail from the outside anymore.
Mail are rejected with SMTP error 530 5.7.1 Client was not authenticated

(I've got 2 receive connectors, one on port 465 which doesn't allow anonymous connexions, and one on 25 port which allow it ; if I remove anonymous on port 25, no more incoming mails...)

Regards,

Frédéric
0
Simon Butler (Sembee)ConsultantCommented:
That is the expected behaviour.

The only way to stop it is to block your internal IP address range from accessing the connector that has anonymous enabled on it. If you disable anonymous on all receive connectors then you will not receive any email from the outside world at all!

Simon.
0
Christian KAZADIAuthor Commented:
OK, I think there is a little misunderstanding here... My mistake.
I want to prevent an external user to send mail using an internal domain address to an internal domain address without be authenticate (mainly for avoiding fishing)

Look at this example (the internal domain is internal.com), i think it will be more clear :

# Telnet mail.internal.com 25

220 mail.internal.com
EHLO
250-mail.internal.com Hello [192.x.x.x]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH NTLM LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
MAIL FROM:frederic@internal.com
250 2.1.0 Sender OK
RCPT TO:test@gmail.com
550 5.7.1 Unable to relay  <------------- OK that' what I want to
RCPT TO:frederic@internal.com
250 2.1.5 Recipient OK <----------------- IF destination domain is internal, I don't need authentication ! That's what I want to prevent.
DATA
354 Start mail input; end with <CRLF>.<CRLF>
test
.
250 2.6.0 <fd939a34-4074-41ab-943f-18f9798c3946@SVRCAS1.biac.lan> [InternalId=10063873] Queued mail for delivery
0
Simon Butler (Sembee)ConsultantCommented:
Spoofing is the most common form of spam sending, and what you are trying to do is one of, if not the favourite spammer's trick.
 
Exchange cannot stop that on its own - you need to use third party spam filtering software to do that for you. SPF records and the like can help as well, but without additional third party support it cannot be stopped.

Delivery is only controlled by the recipient, not the sender. The sender can be anything.
Even if you could stop it, the way that email is setup means the spammer could put something else in the actual header of the email to look like the message is coming from elsewhere.

This isn't an Exchange problem - all SMTP servers have the issue, and that is simply because of the way SMTP is written.

Simon.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.