One comment on “Create transport rules

  1. The below code works in powershell to block gmail and btinternet from helpdesk, but i want them to go to helpdesk and block all other mail.

    New-TransportRule -Name ‘SupportL’ -Comments ” -Priority ‘0’ -Enabled $true -AnyOfToHeader ‘Support@xxxx.co.uk’ -RedirectMessageTo ‘helpdesk@xxxx.co.uk’ -ExceptIfFromAddressContainsWords ‘gmail’,’btinternet’

    Thanks

    Jeff

Leave a Reply

Your email address will not be published. Required fields are marked *

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