Commit e747ce38 authored by hesstobi's avatar hesstobi Committed by Jan Provaznik

Update doc/administration/incoming_email.md

parent ba14ce92
...@@ -531,19 +531,20 @@ enabled by default, and must be enabled through PowerShell. ...@@ -531,19 +531,20 @@ enabled by default, and must be enabled through PowerShell.
This series of PowerShell commands enables [sub-addressing](#email-sub-addressing) This series of PowerShell commands enables [sub-addressing](#email-sub-addressing)
at the organization level in Office 365. This allows all mailboxes in the organization at the organization level in Office 365. This allows all mailboxes in the organization
to receive sub-addressed mail: to receive sub-addressed mail.
```powershell To enable sub-addressing:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
$UserCredential = Get-Credential 1. Download and install the `ExchangeOnlineManagement` module from the [PowerShell gallery](https://www.powershellgallery.com/packages/ExchangeOnlineManagement/).
1. In PowerShell, run the following commands:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection ```powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Import-PSSession $Session -DisableNameChecking Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
Set-OrganizationConfig -AllowPlusAddressInRecipients $true Set-OrganizationConfig -AllowPlusAddressInRecipients $true
``` Disconnect-ExchangeOnline
```
This example for Omnibus GitLab assumes the mailbox `incoming@office365.example.com`: This example for Omnibus GitLab assumes the mailbox `incoming@office365.example.com`:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment