locked
configure an Addresslist RRS feed

  • Question

  • hi,

    I want to configure an Addresslist which includes all recipients with a specified e-mailaddress. Therefor I configured an filter with this syntax

    RecipientFilter ((RecipientType -eq 'UserMailbox') -and (EmailAddresses -like '*test.de'))

    But the addresslist seems empty although the recipient is not hidden from the addresslist.

    Could you help me to configure an appropriate addresslist which only includes recipients with a specified emailaddress?


    regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com

    Sunday, February 26, 2012 7:50 PM

Answers

  • Try it this way

    -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Emailaddresses -like '*@test.de')}


    • Edited by Naser A. Ibdah Sunday, February 26, 2012 8:45 PM
    • Marked as answer by Peddy1st Tuesday, February 28, 2012 3:55 PM
    Sunday, February 26, 2012 8:42 PM

All replies

  • Try it this way

    -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Emailaddresses -like '*@test.de')}


    • Edited by Naser A. Ibdah Sunday, February 26, 2012 8:45 PM
    • Marked as answer by Peddy1st Tuesday, February 28, 2012 3:55 PM
    Sunday, February 26, 2012 8:42 PM
  • Hi

    It can be done by specifying a custom attribute to the all users who have the test.de domain name within their primary smtp address...

    Get-Mailbox | Where{$_.windowsemailaddress -match "test.de"} | Set-Mailbox -CustomAttribute10 "TestDomain"

    And create address list based on conditional custom attribute...

    New-AddressList -Name "TestDomain AddressList" -IncludedRecipientsAllRecipients-ConditionalCustomAttribute10 "TestDomain"

    From Here

    Kind Regards

    Sunday, February 26, 2012 9:58 PM
  • Hi,

    yes this works but why should I store an additionalproperty if this information is already stored in the emailaddresses property?

    So i would like to use this property in order to create an addresslist.


    regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com

    Monday, February 27, 2012 7:40 AM
  • Hi Peddy,

    I am only offering an alternative option when other options fail.

    Regards

    Monday, February 27, 2012 8:17 PM