Set-Mailbox Support –ForwardingSmtpAddress $null
Support = The mailbox that will no longer forwarding
Set-Mailbox Support –ForwardingSmtpAddress $null
Support = The mailbox that will no longer forwarding
Creating forwarding emails (Synchronization with Active Directory)
Connect powershell
1-)$LiveCred = Get-Credential
2-)$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
3-)Import-PSSession $Session
4-)Connect-MsolService
Command
Set-Mailbox Contato –ForwardingSmtpAddress [email protected]om –DeliverToMailboxAndForward $false
Contato = Mailbox that will receive forwarding to another email
[email protected] = E-mail address that will receive the forwarding mailbox contact
Synchronized objects in Active Directory, we can not make any changes in Exchange Online.
To add a user for secondary SMTP example:
[email protected] as primary SMTP and
[email protected] as secondary SMTP
Access:
Then select the object:
Right / Properties / Attributes
Locate ProxyAddress
add secondary SMTP:
SMTP: [email protected]
Ok in all screens can force synchronization or wait for the normal period synchronization of Exchange Online, it also serves to distribution groups.
Connection powershell
1-) $LiveCred = Get-Credential
2-) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
3-) Import-PSSession $Session
4-) Connect-MsolService
Get-Mailbox | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains contoso.com, xpto.com
Connection for powershell
1-) $LiveCred = Get-Credential
2-) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
3-) Import-PSSession $Session
4-) Connect-MsolService
After
Get-MsolUser -ReturnDeletedUsers | Remove-MsolUser -RemoveFromRecycleBin -force