Exchange Sunucularında Mail Arama ve Silme

Mutkus Blog

Bazen kurumunuza istenmeyen e-posta gelebilmektedir. Bu bir oltalama maili veya yanlış atılan bir e-postada olabilir. Bu tip durumlarda exchange sistemlerinizde bulunan e-postaları hızlıca tarayıp, silmeniz gerekebilmektedir. Bu tip durumlarda Exchange Management Shell ile aşağıdaki komutları çalıştırmak gerekmektedir.

İlk senaryomuz exchange sunucunuzda ki [email protected] adresi içerisinde [email protected] adresinden gelen maili bulma ve silmeyi yapacağız;

Get-Mailbox -Identity “[email protected]” | Search-Mailbox -SearchQuery subject:”Deneme”,from:”[email protected]” -DeleteContent

Eğer Exchange yapınızdaki tüm posta kutularında [email protected]’dan gelen e-postaları arama ve silme işlemi yapmak isterseniz;

Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery subject:”Deneme”,from:”[email protected]” -DeleteContent

Bir Cevap Yazın

This site uses Akismet to reduce spam. Learn how your comment data is processed.