Granting the SendAs right to an SMTP user

To send emails from Sage CRM as any user, you must enable the SendAs right on Exchange using PowerShell.

PowerShell is installed on your client. You don't need to install the Exchange remote PowerShell tools.
  1. Allow all PowerShell scripts to run:
    Copy
    Set-ExecutionPolicy Unrestricted
  2. Run the following command:
    Copy
    $LiveCred = Get-Credential
  3. When prompted, enter the credentials for an Exchange administrator. The Exchange connection URL shown below (https://ps.outlook.com/powershell/) is for Exchange Online, but you can substitute your own Exchange CAS server, or an Exchange instance hosted by a third party.
    Copy
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential 
    $LiveCred -Authentication Basic -AllowRedirection Import-PSSession $Session Enable-OrganizationCustomization


    This command may take a few moments to complete.

  4. When you're connected to the Exchange instance, you can grant the SendAs right in one of the following ways:
    • Add the Exchange users to an Active Directory group or distribution group and grant the SendAs right to the group. This is a good option if you plan to do something else with these users. See Granting the SendAs right to an SMTP user.
    • Grant the SendAs right on all mailboxes. This approach is quick but applicable only for smaller organizations where all users use Sage CRM. See Granting the SendAs right to an SMTP user.
Use the pipe operator (|) to get an array of mailbox objects and send them to your command. This allows you to quickly grant the SendAs right over a large number of mailboxes, without selecting them all individually.