O365 – DKIM signing

how to sign O365-Mails using DKIM Set-ExecutionPolicy RemoteSigned [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-PackageProvider -Name NuGet Install-Module -Name ExchangeOnlineManagement Update-Module -Name ExchangeOnlineManagement Import-Module ExchangeOnlineManagement $o365Cred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $o365Cred -Authentication Basic -AllowRedirection Set-ExecutionPolicy RemoteSigned Import-PSSession $Session Enable-OrganizationCustomization New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management" Remove-PSSession $session Disconnect-ExchangeOnline # DKIM...
general mail

exchange – cleanup import/export

Get-MailboxExportRequest | where {​​​​$_.status -eq "Completed"}​​​​ | Remove-MailboxExportRequestGet-MailboxImportRequest | where {​​​​​​​$_.status -eq "Completed"}​​​​​​​ | Remove-MailboxImportRequest
general mail

O365 – 5.7.520 permit forwarding to external domain

5.7.520 Access denied, Your organization does not allow external forwarding.Please contact your administrator for further assistance. AS(7555) https://protection.office.com/antispam Click the down arrow next to Outbound spam filter policy ‎(always ON) and click the Edit policy button. Click the down arrow next to Automatic forwarding, then choose On – Forwarding is enabled from the dropdown. Click...
general mail

exchange – get mailbox size

Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{​​​​​​​​​Name="TotalItemSizeMB";Expression={​​​​​​​​​$_.TotalItemSize.Value.ToMB()}​​​​​​​​​}​​​​​​​​​, ItemCount
general mail

exchange – get mailbox rules

$UserInboxRule = ForEach ($i in (Get-Mailbox -ResultSize Unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | Where-Object { $_.ForwardTo } | fl MailboxOwnerID,Name,ForwardTo,Description}$UserInboxRule | Out-File C:\TEMP\User_inbox_Forwarding_rule.txt -Encoding UTF8
general mail

exchange – server updates

Determine which .NET Framework versions are installed https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed The Release REG_DWORD value in the registry represents the version of .NET Framework installed. reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Exchange Server build numbers and release dates https://docs.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates?view=exchserver-2019 Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion MSFAQ https://www.msxfaq.de/exchange/update/servicepack2016.htm#exchange_2016_cu7 Exchange Server-Support-Marix https://docs.microsoft.com/de-at/Exchange/plan-and-deploy/supportability-matrix?view=exchserver-2016#microsoft-net-framework -> Compare Exchange-Version to supported .NET-Version Upgrade Paths for CU’s &...
general mail