Tuesday, December 25, 2007

530 5.7.1 Client was not authenticated



After successful installation of exchange 2007 following message, appears on the test mail. Technical details of permanent failure "PERM_FAILURE: SMTP Error (state 12): 530 5.7.1 Client was not authenticated"Basic Exchange 101, fire up command line and use telnet command on port 25 to the mail server within the network to see what is going on .

In CMD

Telnet 10.10.10.7 25

  • 220 exc07.smtp25.org Microsoft ESMTP MAIL Service ready at Tue, 25 Dec 2007 18:5
  • 1:08 -0500
  • helo
  • 250 exc07.smtp25.org Hello [10.10.10.7]
  • mail from:telnet25@gmail.com
  • 530 5.7.1 Client was not authenticated

We are getting "530 5.7.1 Client was not authenticated"

Cause:

The anonymous users do not have permission on the "Default receive connector."

  • Click on Server configuration
  • Click on Hub Transport, select default receive connector and go to properties
  • Click on Permission group
  • Tick the check box where is says "Anonymous users"

Now try the telnet on port 25 to your mail server, everything should work.

Now we will achieve the same results from exchange management shell. First mission is to figured out the name of the connector so, after opening management shell

[PS] C:\>Get-ReceiveConnector

Here is the output

EXC07\Default EXC07

EXC07\Client EXC07

Now I know the name of the receive connectors. (EXC07 is the name of my Exchange server)

I will use following command to achieve the same results from management shell.

[PS] C:\>Set-ReceiveConnector "default exc07" -PermissionGroups:c

The options are

  • ExchangeUsers
  • ExchangeServers
  • ExchangeLegacyServers
  • AnonymousUsers
  • Partners

Whichever you like, both will work.

Best,

Oz ozugurlu

17 comments:

Anonymous said...

550 5.7.1 Client does not have permissions to send as this sender

i amfacing this problem,while sending mail programatically.
previously i was facing, client was not aunthenticate error, then i set receiver connector to AnonymousUsers. then i got this problem.
Can u help me?

Anonymous said...

Nice thanks resolved my problem, why this isn't setup automatically though is beyond me. Thanks

Oz Casey, Dedeal said...

Good question, (- :
The new way of doing things in MICROSOFT, is to make everything secure by default in Exchange , so out the box everything is secure, you and me as an administrator must turn on things we need to get things going in such example.
I kind of like the idea, of getting a product secure out the box , Exchange 2007 is ROCK (-:

Cheers
Oz

Anonymous said...

This helped me..thanks a lot

Anonymous said...

Thanks for the info. You help me get a customers email working again.

Thanks
Mike

Matt said...

I've got the problem mentioned above, but even with Anonymous Users permissions set on the default connector, I get the same error!

Any ideas anyone?

Thanks in advance

Oz Casey, Dedeal said...

Matt,
There are two receive connectors under,
Server Configuration
Hub Transport server
Receive connectors

Fist---->Client
Second----> Default

make sure you are enbaling,"Anonymous users" access on this connector

if "yes" and still having problem, delete the connector and re-create to see what happens

good luck
oz

Anonymous said...

Hey, muchas gracias. :-)

Anonymous said...

Hi all
Im having the same issue with my smtp server on exchange 2007.
I have added the anonymous user on the permissions .
when this didnt work i deleted the connectors and recreated.
But still no success.

Any help will be appreciated..

Anonymous said...

Cool article as for me. It would be great to read something more concerning this topic. Thnx for posting that information.
Sexy Lady
Girls for companionship in London

Unknown said...

Excelente, gracias!!

Anonymous said...

awesome helped me out too thanks for the pointer!! had to enable it on both for it to work!

Anonymous said...

Hi, this worked for me.. THANK YOU!

Ian Dunstan said...

I love you. Sahem it took me hours to find this. The command didnt quite work. I had to put anonomususers instead of c on the end.

KARTHIK M said...

Thanks a lot,buddy.Cool..

Anonymous said...

great thanks for the solution, but i would like to know if there is any security thread by giving anonymous access on the default receiver connector

Anonymous said...

Muchas Gracias!
Fué de mucha ayuda