Creation and management of e-mail address policies in Exchange Server

Managing email addresses in an Exchange Server environment is an essential task for administrators. Email address policies play a central role in this, as they facilitate the automatic assignment of email addresses for users, contacts and groups. In this article, we will explore the creation and management of such policies using PowerShell.

What are e-mail address guidelines?

Email address policies in Exchange Server define the rules by which email addresses are generated for recipients in the organization. These policies are particularly useful in larger organizations where consistency and automation of email assignment are critical. For example, a policy can specify that all users must have an email address in the format vorname.nachname@beispiel.com received.

Create a new e-mail address policy

To create a new e-mail address policy, we use the PowerShell cmdlet New-EmailAddressPolicy . Here is a simple example:


New-EmailAddressPolicy -Name "StandardPolicy" -IncludedRecipients "AllRecipients" -Priority "1" -EnabledEmailAddressTemplates "SMTP:%g.%s@beispiel.com"

In this example:

  • -Name specifies the name of the directive.
  • -IncludedRecipients defines which recipients the policy applies to. "AllRecipients" means that all recipients are included.
  • -Priority determines the priority of the directive. A lower number means a higher priority.
  • -EnabledEmailAddressTemplates specifies the format of the e-mail address. %g stands for the first name and %s for the surname.

Changing an existing e-mail address policy

To change an existing e-mail address policy, we use the cmdlet Set-EmailAddressPolicy . Here is an example of how to change the email format of an existing policy:


Set-EmailAddressPolicy -Identity "StandardPolicy" -EnabledEmailAddressTemplates "SMTP:%s.%g@beispiel.com"

In this example, the format of the e-mail address of vorname.nachname@beispiel.com to nachname.vorname@beispiel.com changed.

Applying an e-mail address policy

After a policy has been created or changed, it must be applied to the recipients. This is done with the cmdlet Update-EmailAddressPolicy :


Update-EmailAddressPolicy -Identity "StandardPolicy"

This cmdlet ensures that the changes to the policy are applied to all affected recipients.

Check the e-mail address guidelines

To display all existing e-mail address policies in your organization, use the cmdlet Get-EmailAddressPolicy :


Get-EmailAddressPolicy | Format-Table Name,Priority,EnabledEmailAddressTemplates

This cmdlet lists all policies together with their names, priorities and e-mail address templates.

Example of a more complex directive

In some cases, you may want to create a policy that is only applied to certain recipients. Here is an example that is only applied to users in the "Sales" department:


New-EmailAddressPolicy -Name "SalesPolicy" -IncludedRecipients "MailboxUsers" -ConditionalDepartment "Sales" -Priority "2" -EnabledEmailAddressTemplates "SMTP:%g.%s@vertrieb.beispiel.com"

In this example:

  • -IncludedRecipients is restricted to "MailboxUsers", which means that only mailbox users are affected.
  • -ConditionalDepartment filters the recipients further according to the "Sales" department.

Best Practices

  • Make sure that the priorities of your policies are clearly defined to avoid conflicts.
  • Test new policies in a controlled environment before applying them across the organization.
  • Use descriptive names for your policies to clearly communicate their purpose.

Managing email address policies in Exchange Server is an important task for consistency and automation in your organization. With the PowerShell cmdlets mentioned above, you can efficiently create, modify and manage policies.

Note: This article was written by FranKian artificial intelligence (AI).

Rate this post: 1 star2 stars3 stars4 stars5 stars (12 Ratings, average: 2.67 from 5)

Loading...

5 thoughts on “Erstellung und Verwaltung von E-Mail Adressrichtlinien in Exchange Server”

  1. Hallo zusammen,

    ich hoffe, ich stell mich nicht ganz blöd an, aber ein Kollege und ich denken gerade darüber nach, wie Adressrichtlinien sich auf die AD-Attribute durchsetzen. Beim Erstellen eines neuen Postfachusers keine Frage, hier greifen die Richtlinien und dem User werden die entsprechenden Adressen verpasst. Was aber, wenn ich eine Richtlinie ändere – früher wurde das doch durch den RUS gemacht, wie funktioniert das heute? Und vor allem – das ist der eigentliche Kern der Frage: Wie passiert das, wenn ich Entra-Connect ohne lokalen Exchange, also nur mit Management-Tools nutze?
    In dem Fall läuft kein Exchange-Service, der (Änderungen an) Adressrichtlinien auf die AD-Objekte verarbeitet.
    Sollten die Richtlinien zu Exchange Online repliziert/synchronisiert werden (werden sie das?), mag es ja durchaus sein, dass ExO die Änderungen durchführt, wie aber kommen dann diese Änderungen zurück in die lokale AD?

    Wenn mich jemand erleuchten kann, wäre ich dankbar!

    LG
    Robert

    Reply
  2. Hallo Frank,
    hast Du den Artikel inhaltlich gegengeprüft? Oder die KI einfach machen lassen.
    Das wäre mir wichtig zu wissen, ist ja nicht mein Mail-Server den ich da u.U. verpfusche.
    Grüße
    Georg

    Reply
  3. Hallo,
    ich glaube die technische Unvollständigkeit wurde beim letzten Artikel schon bemängelt.
    Mir würde hier die Erwähnung der Möglichkeit zum Herauspicken von Buchstaben aus Vornamen, Nachnamen oder auch aus dem Alias fehlen (z.B. %1g.%s@example.com für j.doe@example.com).

    Insgesamt ergibt sich für mich daraus der Eindruck das hätte der neue Kollege gerade per Google ermittelt und hielte das für alles was man zu dem Thema wissen kann.

    Für mich fehlt da, abseits der technischen Mängel, auch etwas der „menschliche Touch“.
    Einen Artikel in der Qualität zu generieren, wie ihn ein erfahrener Techniker schreiben würde, ist aktuell vermutlich nicht oder zumindest nicht einfach möglich. Die Entscheidung, welche Aspekte aufgrund von … Microsoft-Eigenheiten hervorgehoben werden müssen oder welche vernachlässigt werden können, ist per KI vermutlich nur schwierig herbeizuführen.

    Reply
    • Hallo Peter,

      da würde ich komplett zustimmen. Vor allem fehlen auch die nutzbaren Variablen abseits von %g und %s (ein paar gibts ja doch). Genau wie keine Vor- Nachteilbetrachtung der ganzen Technik vorhanden ist. Gerade in „größeren“ Umgebungen arbeitet man meist eben nicht mit E-Mail-Adressrichtlinien, weils entsprechende Provisioning Tools gibt, die das deutlich flexibler gestalten können. Und zumindest würde ich (so wie Franky im Gegensatz zu FranKI das macht) erwarten, dass zumindest ein Link auf die MSKB zum Thema erfolgt.
      Bye
      Norbert

      Reply

Leave a Comment