none
Allow to send as email from external email addresses

All replies

  • You have to add AnonymousUsers to your receive-connector. Try this:

     

    Set-ReceiveConnector -PermissionGroups 'AnonymousUsers, ExchangeUsers, ExchangeServers, ExchangeLegacyServers' -Identity 'Server\Default Server'

     

    You put in the name of the connector where I wrote 'Server\Default Server'.

    Wednesday, November 02, 2011 2:35 PM
  • Hi,

    You cannot send email from secondary email address in outlook or owa (except if you configure your outlook profile using pop for secondary email address).

    In your case you can create a MailContact object in exchange, with external email address as "john.doe@gmail.com" and then add send as permission on this contact object for user john.doe@firm.com like this:

    Get-MailContact john.doe@gmail.com | dd-ADPermission -User John.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as"

    and then you would be able to SendAs john.doe@gmail.com.

    As gmail.com is is a proprietary domain for google, I m not sure, whether you would be able to use it in real world to use in SendAs feature, but in my LAB it does work.

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    Wednesday, November 02, 2011 2:46 PM
  • Hi Laeeq Qazi and thank you for answer!

    This was a good advice and just what I mean but unfortunately it is not work.

    I have a MailContact:

    Get-MailContact -organization firm.com john.doe@gmail.com

    Name                      Alias                                       RecipientType
    ----                          -----                                       -------------
    John Doe Gmail        john.doe@gmail.com               MailContact

     

    And this this error:


    Get-MailContact -organization firm.com john.doe@gmail.com | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as"
    Domain/Microsoft Exchange Hosted Organizations/firm.com/John Doe Gmail wasn't found. Please make sure you've typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 702092C4,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    Any help?

     

    Regards, Susanna

    Thursday, November 03, 2011 6:49 AM
  • Hi Laeeq Qazi and thank you for answer!

    This was a good advice and just what I mean but unfortunately it is not work.

    I have a MailContact:

    Get-MailContact -organization firm.com john.doe@gmail.com

    Name                      Alias                                       RecipientType
    ----                          -----                                       -------------
    John Doe Gmail        john.doe@gmail.com               MailContact

     

    And this this error:


    Get-MailContact -organization firm.com john.doe@gmail.com | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as"
    Domain/Microsoft Exchange Hosted Organizations/firm.com/John Doe Gmail wasn't found. Please make sure you've typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 702092C4,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    Any help?

     

    Regards, Susanna

    This error often occurs on Hosted Exchange, bcoz in some commands, identity is not simply putting email address, we have to specify identity as orgName\emailAddress like this:

    Get-MailContact firm.com\john.doe@gmail.com | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as"
    

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    Thursday, November 03, 2011 11:16 AM
  • Hi Laeeq,

    I have tried to with orgname\alias, with distinguishedname, indentity...with many different variations and there is always same error. I can add send as permission manually in ADUC, but I still want to do in management shell. Have you any idea why this way doesn't work in my environment?

    -Susanna

    Thursday, November 03, 2011 11:54 AM
  • Although configuring a gmail account as secondary successfully, it is possible that many mail relays reject your message when check the MX and SPF records, and mail never reach destination.

    Thursday, November 03, 2011 3:18 PM
  • Hi Laeeq,

    I have tried to with orgname\alias, with distinguishedname, indentity...with many different variations and there is always same error. I can add send as permission manually in ADUC, but I still want to do in management shell. Have you any idea why this way doesn't work in my environment?

    -Susanna

    Hi,

    Its strange. Once you get the object using get command then in next command it should exist.

    I have run this command locally on both generic Exchange and Hosted Exchange 2010, and at places command is running fine.

    Are you able to get the mail contact object using get-MailContact like this:

     

    get-MailContact distinguishedname
    
    Or
    
    get-MailContact orgname\alias 
    
    Or
    
    Get-MailContact  "firm.com\john.doe@gmail.com"
    

     IF so then its really strange. Also try by adding a -DomainController parameter to command like this 

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "YourDCNameHere" | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "YourDCNameHere"
    

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    Thursday, November 03, 2011 4:26 PM
  • Hi!

    This is really strange. I get any object successfully using get-mailcontact.

    get-MailContact "CN=John Doe,OU=firm.com,OU=Microsoft Exchange Hosted Organizations,DC=SUBDOMAIN,DC=DOMAIN,DC=COM" -domaincontroller srvdc00

    Name                      Alias                                          RecipientType
    ----                      -----                                          -------------
    John Doe                  JohnDoe                                        MailContact

    get-MailContact "CN=John Doe,OU=firm.com,OU=Microsoft Exchange Hosted Organizations,DC=SUBDOMAIN,DC=DOMAIN,DC=COM" -domaincontroller srvdc00 | add-ADPermission -User john.doe@vtoasp.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "srvdc00"


    SUBDOMAIN.DOMAIN.COM/Microsoft Exchange Hosted Organizations/firm.com/John Doe wasn't found. Please make sure you've
    typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 69D116FE,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    Also:

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "srvdc00"

    Name                      Alias                                          RecipientType
    ----                      -----                                          -------------
    John Doe                  JohnDoe                                        MailContact

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "srvdc00" | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "srvdc00"

    SUBDOMAIN.DOMAIN.COM/Microsoft Exchange Hosted Organizations/firm.com/John Doe wasn't found. Please make sure you've
    typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 69D116FE,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    I get bad feelings about this. It must be wrong with the whole system...

    -Susanna

    Friday, November 04, 2011 7:28 AM
  • Hi!

    This is really strange. I get any object successfully using get-mailcontact.

    get-MailContact "CN=John Doe,OU=firm.com,OU=Microsoft Exchange Hosted Organizations,DC=SUBDOMAIN,DC=DOMAIN,DC=COM" -domaincontroller srvdc00

    Name                      Alias                                          RecipientType
    ----                      -----                                          -------------
    John Doe                  JohnDoe                                        MailContact

    get-MailContact "CN=John Doe,OU=firm.com,OU=Microsoft Exchange Hosted Organizations,DC=SUBDOMAIN,DC=DOMAIN,DC=COM" -domaincontroller srvdc00 | add-ADPermission -User john.doe@vtoasp.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "srvdc00"


    SUBDOMAIN.DOMAIN.COM/Microsoft Exchange Hosted Organizations/firm.com/John Doe wasn't found. Please make sure you've
    typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 69D116FE,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    Also:

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "srvdc00"

    Name                      Alias                                          RecipientType
    ----                      -----                                          -------------
    John Doe                  JohnDoe                                        MailContact

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "srvdc00" | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "srvdc00"

    SUBDOMAIN.DOMAIN.COM/Microsoft Exchange Hosted Organizations/firm.com/John Doe wasn't found. Please make sure you've
    typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 69D116FE,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    I get bad feelings about this. It must be wrong with the whole system...

    -Susanna


    USE EMC.
    Sharique 'W@rbuG' Ahmed. 2 b or not 2 b
    Thursday, November 10, 2011 12:18 AM
  • Hi!

    This is really strange. I get any object successfully using get-mailcontact.

    get-MailContact "CN=John Doe,OU=firm.com,OU=Microsoft Exchange Hosted Organizations,DC=SUBDOMAIN,DC=DOMAIN,DC=COM" -domaincontroller srvdc00

    Name                      Alias                                          RecipientType
    ----                      -----                                          -------------
    John Doe                  JohnDoe                                        MailContact

    get-MailContact "CN=John Doe,OU=firm.com,OU=Microsoft Exchange Hosted Organizations,DC=SUBDOMAIN,DC=DOMAIN,DC=COM" -domaincontroller srvdc00 | add-ADPermission -User john.doe@vtoasp.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "srvdc00"


    SUBDOMAIN.DOMAIN.COM/Microsoft Exchange Hosted Organizations/firm.com/John Doe wasn't found. Please make sure you've
    typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 69D116FE,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    Also:

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "srvdc00"

    Name                      Alias                                          RecipientType
    ----                      -----                                          -------------
    John Doe                  JohnDoe                                        MailContact

    Get-MailContact  "firm.com\john.doe@gmail.com" -DomainController "srvdc00" | add-ADPermission -User john.doe@firm.com -AccessRights ExtendedRight -ExtendedRights "send as" -DomainController "srvdc00"

    SUBDOMAIN.DOMAIN.COM/Microsoft Exchange Hosted Organizations/firm.com/John Doe wasn't found. Please make sure you've
    typed it correctly.
        + CategoryInfo          : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 69D116FE,Microsoft.Exchange.Management.RecipientTasks.AddADPermission

    I get bad feelings about this. It must be wrong with the whole system...

    -Susanna


    USE EMC.
    Sharique 'W@rbuG' Ahmed. 2 b or not 2 b

    Unfortunately it seems that you dont have experience with Hosted Exchange 2010, which dont have EMC :(

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    Thursday, November 10, 2011 10:01 AM
  • Did you find a solution to this? 

    I have almost the same problem in our hosting solution (SP1 /hosted)

    The difference is that Im trying to add a sec group (universal) with 'send as' rights to a shared mailbox.

    I do however get the same error "mailbox wasn't found etc..."

    Thursday, February 09, 2012 12:24 PM
  • http://technet.microsoft.com/en-us/library/ff935839.aspx

    Use the Add-RecipientPermission cmdlet to add SendAs permission to users in a cloud-based or hosted organization.

     


    Thursday, March 01, 2012 9:34 AM
  • Add-RecipientPermission is the way to go when using Ex2010 sp1 /hosted

    Thanks to Dmitry who provided the solution for me on a problem Ive been having for a long time!

    I think the technet article is "wrong" tho; "Applies to: Exchange Server 2010 SP2" Our solution is SP1, and Add-RecipientPermission works! :)

    Friday, March 09, 2012 11:19 AM