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 ‘user@domain.com’
Advertisement

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: