question

Regreener-9174 avatar image
0 Votes"
Regreener-9174 asked imamitsingh edited

Exchange Dkim problem

Hello
i want to enable Dkim on exchange throught powershell but when i try to connect to exchangeonline i get this error :
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0ff1-ce00-000000000000'.
How can i solve it ? thank you

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered

Hi @Regreener-9174,

It's also suggested to check the instructions in the document below and make sure the cmdlets you used to connect to Exchange Online powershell are proper:
Connect to Exchange Online PowerShell using modern authentication with or without MFA

Especially ensure that you are using Connect-ExchangeOnline rather than Get-Credential to pass the account's credential, as the Get-Credential cmdlet doesn’t support MFA enabled accounts and may lead to the error you encountered according to the article below:
Connect to Exchange Online PowerShell without Basic Authentication
(Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)*
109975-1.png


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



1.png (68.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid avatar image
1 Vote"
AndyDavid answered Regreener-9174 commented

Your account is enabled for MFA, have you configured it?

https://aka.ms/mfasetup

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i already have a double authentification with phone and email that's why i don't understand the issue? is there another configuration to make ?

0 Votes 0 ·

MFA doesn't have Email authentication :)

If you check the Azure Sign In Logs, you will be able to see what is going on.

Does it work if you go the ADmin Console and try to enable it?

https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/use-dkim-to-validate-outbound-email?view=o365-worldwide#steps-to-enable-dkim-signing-for-your-custom-domain

0 Votes 0 ·
imamitsingh avatar image
1 Vote"
imamitsingh answered imamitsingh edited

Recommend you to follow the following steps:

  1. login as a tenant admin to https://portal.azure.com

  2. Open the registration for your app in the

  3. Go to Settings then Required Permissions

  4. Press the Grant Permissions button

Note: If you are not a tenant admin, you cannot give admin consent

You may try the solutions provided in a similar GitHub issue.

If this answer was helpful, click “Mark as Answer” or Up-Vote.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.