Sometimes users complain that they have not received a certain e-mail. There can be many reasons for this. Occasionally, junk mail rules configured by the user are the reason. Fortunately, in addition to the Mailbox rules You can also manage the junk mail rules from the Management Shell. The following command is sufficient to display the rules for a mailbox:
Get-MailboxJunkEmailConfiguration -Identity frank
As you can see in this example, the user Frank has not configured any junk mail rules. To add an e-mail address to the blocked senders via shell, the following command is sufficient:
Set-MailboxJunkEmailConfiguration -Identity frank -BlockedSendersAndDomains spam1@spam.com,spam2@spam.com
The command adds the addresses spam1@spam.com and spam2@spam.com to the list of blocked senders.
Of course, the blocked sender also appears in Outlook:
This command can be used to delete all blocked senders:
Set-MailboxJunkEmailConfiguration -Identity frank -BlockedSendersAndDomains $NULL
Senders or domains can also be added to the safe senders list in the same way:
Set-MailboxJunkEmailConfiguration -Identity frank -TrustedSendersAndDomains keinespamdomain.de,nospam@noxpam.com
Of course, this can also be done for all mailboxes; in this example, the list of safe and blocked senders is deleted for all mailboxes:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains $NULL -TrustedSendersAndDomains $NULL
And in very stubborn cases, the junk mail filter can also be switched off:
Set-MailboxJunkEmailConfiguration -Identity frank -Enabled $false
Hallo,
ist es auch möglich am Exchange alles Postfächer nach Blockierten Absendern der Nutzer zu fragen und diese direkt in die Absenderfilterung des Servers zu übernehmen (somit also quasi für alle Nutzer zu übernehmen)?
Vielen Dank,
Gruß
Tom
Hi,
oder man verwendet diesen Befehl:
Set-MailboxJunkEmailConfiguration -Identity xname -BlockedSendersAndDomains @{Add=“spam2@spam.de“}
Dann werden die neuen Adressen angefügt.
Hi Franky,
kleine aber wichtige Anmerkung: leider werden die Adressen hier nicht dazugefügt, sondern die vorhandenen ersetzt:
Set-MailboxJunkEmailConfiguration -Identity frank -TrustedSendersAndDomains keinespamdomain.de,nospam@noxpam.com
Damit ist alles, was vorher da war, jetzt weg!
Siehe auch: http://technet.microsoft.com/de-de/library/dd979780%28v=exchg.141%29.aspx
Hi,
korrekt, der Befehl setzt die Werte und fügt keine Werte hinzu. Wenn du Werte zur bestehenden Liste hinzufügen möchtest, musst du vorher die Liste der TrustedSenders auslesen und in einer Variablen speichern, zu der Variable, kannst du dann deine zusätzlichen Werte hinzufügen und wieder setzen lassen.
Gruss, Frank