Category Archives: Exchange

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 ...

External SMTP Relay with Exchange Server 2016 Using Anonymous Connections


Read More ...


Subscribe to my Newsletter

Please Donate To Bitcoin Address: [[address]]

Donation of [[value]] BTC Received. Thank You.

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.