locked
Email Address Policy format - Replace characters RRS feed

  • Question

  • Hi,

    We have an Email address policy that lowercase all characters and skipped the dash:

    New-emailaddresspolicy -Name "My Policy" Recipients 'MailboxUsers' -EnabledEmailAddressTemplates "SMTP:%r--%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%
    rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz%1g%s@mydomain.com"...

    So that John DOE-WHO will have: jdoewho@mydomain.com as an internet address.
    That works fine.

    But, for external people we have to add a suffix containing a dash. If John DOE-WHO is external, is internet address should be: jdoewho-ext@mydomain.com

    But since I have the %r-- that skipped all dash, I didn't find a way to achieve that.

    If someone can help me, that will be greatly appreciated.

    Wednesday, July 11, 2012 2:09 PM

All replies

  • Hi

    You could create a second email address policy and scope it to the external users that does not contain the %r.

    Cheers, Steve

    Wednesday, July 11, 2012 2:18 PM
  • Hi

    You could create a second email address policy and scope it to the external users that does not contain the %r.

    Cheers, Steve

    I did, but I still want to skip the dash contains in the last name.


    Wednesday, July 11, 2012 2:32 PM
  • Hi,

    Then you may try to use

    "SMTP:%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%
    rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz%1g%r--%s@mydomain.com"...


    Xiu Zhang

    TechNet Community Support


    • Edited by Xiu Zhang Friday, July 13, 2012 3:15 AM typo
    Thursday, July 12, 2012 8:19 AM
  • Hi,

    Then you may try to use

    "SMTP:%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%
    rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz%1g%r-%s@mydomain.com"...


    Xiu Zhang

    TechNet Community Support


    Hi, that just put an 's' instead of his last name and I don't have my suffix "-ext".
    Thursday, July 12, 2012 12:28 PM
  • Hi,

    Then you may try to use

    "SMTP:%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%
    rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz%1g%r-%s@mydomain.com"...


    Xiu Zhang

    TechNet Community Support


    Hi, that just put an 's' instead of his last name and I don't have my suffix "-ext".

    Sorry, it is a typo.

    It should be %1g%r--%s


    Xiu Zhang

    TechNet Community Support

    Friday, July 13, 2012 3:15 AM
  • Thanks, but with that I still can't put my suffix -ext at the end of the leftpart.
    Tuesday, July 17, 2012 3:28 PM