Create Transport rule with one Pshell Liner

Task: using pshell, create transport rule to block phishing attack email using some unique words in the subject or body, then redirect the phishing emails to a generic mailbox called canary10
New-TransportRule -Name ‘Phishing attack’ -Comments ’email account upgrade’ -Priority ‘0’ -Enabled $true -SubjectOrBodyContainsWords ‘some DGTX virus ‘,’Technical Mail Admin.’ -RedirectMessageTo ‘’

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: