Category Archives: Exchange

Office 365 can not send emails through smtp

After move one domain to office 365 we try to send emails through smtp but not working,

we disable multifactor authentication for the user and domain:

the problem can be identified and demostrated with powershell:

execute from internet explorer:

  1. $credential = Get-Credential  ( enter user id and passwod of one account with outlook license)
  2. Send-MailMessage -From -To -Subject “test” -SmtpServer -Credential $credential -UseSsl -Port 587
  3. this error appear :  5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [MR2P264CA0054.FRAP264.PROD.OUTLOOK.COM]

to solve it go to powershell session and chech this:

  • Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
  • if was true, change it to false : Set-TransportConfig -SmtpClientAuthenticationDisabled $false

Read More ...

Useful Exchange commands

View log for send messages 24 hours :

Get-MessageTrackingLog -EventId Send -ResultSize Unlimited -Start (Get-Date).AddHours(-24)| select Timestamp,@{l=”Recipients”;e={$_.Recipients -join ” “}},Sender,Messagesubject |Export-Csv c:\x\log.csv



Read More ...

Exchange 2003/2016/2019 how to disable RTF format for all outgoing emails

Sometimes, when you send a message to some contacts in outlook, this message  appears on the recipient, as an attached file named winmail.dat  this is because the properties of the contact or the mail are set to RTF format:

To correct this generaly you can disable TNEF on the exchange server doing the commnad:

Set-RemoteDomain -Identity * -TNEFEnabled $false


Read More ...

Exchange 2013 Forwarding mail to external SMTP address

If you try to forward to an external smtp address trough emc , is not possible


1. Create a contact in the Exchange 2013 “Admin Center”.
2. If you want keep and forward, From Exchange Management Shell: Set-Mailbox -Identity “Allen” -DeliverToMailboxandforward $True -ForwardingSMTPAddress “” -ForwardingAddress “”
2a. 2. If you want to forward only, From Exchange Management Shell: Set-Mailbox -Identity “Allen” -DeliverToMailboxandforward $False -ForwardingSMTPAddress “” -ForwardingAddress “”

If you go back into the Admin Center and look at the properties of the Mail Flow, Forwarding, you will see your Contact listed.


Read More ...

SMTP 554 5.1.0 Sender Denied

Sometimes an exchange mailbox not accept messages from one specific email, and show this message: “smtp 554 5.1.0 Sender Denied”

to see why the sender is not allowed , you can use this ps commands:




Read More ...


Subscribe to my Newsletter

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.