Skip to main content

Block Users Sending to Specific Domains with Exchange Server 2007


In some scenarios an organization will want to prevent email users from sending messages to certain external domain names.  This can be achieved with Exchange Server 2007 using a Transport Rule.
Open the Exchange Management Console and navigate to Organization Config/Hub Transport.
Start a New Transport Rule.
Give the rule an appropriate name and description.
Choose conditions of “From users inside the organization” and “When a message header contains specific words“.  Click on “message header” and change it to “To” (without the quotes), and then click on “specific words” and add the domain name, for example “@fabrikam” (again without quotes).
Click Next and choose actions of “Send bounce message to sender…” and “Silently drop the message“.
You can modify the bounce message that is sent to the sender so that they or the IT admins can easily tell why the email was rejected.
Complete the Transport Rule wizard and test the new rule by trying to send an email to that domain name.
You should now receive a bounce message from the Exchange server with the text that you configured.

Comments

Popular posts from this blog

Installing Nagios 4 on Ubuntu 14 04 LTS

AD-Powershell for Active Directory Administrators

http://social.technet.microsoft.com/wiki/contents/articles/5819.ad-powershell-for-active-directory-administrators.aspx Computer object commands List all computer accounts in a domain Get-ADComputer –Filter {Name –Like "*"} View all computers that are logged in for 90 days to the Active Directory Search-ADaccount -AccountInactive -Timespan 90 -ComputersOnly OR $lastLogon = (get-date).adddays(-90).ToFileTime() Get-ADComputer -filter {lastLogonTimestamp -gt $lastLogon}  Find and delete all disabled Computer accounts in Active Directory Search-ADAccount -AccountDisabled -ComputersOnly | Sort-Object | Remove-ADComputer Find and delete disabled computer accounts from a specific OU Search-ADAccount -AccountDisabled -Searchbase "OU=IT,DC=Contoso,DC=Com" -ComputersOnly | Sort-Object | Remove-ADComputer Find and delete all computer accounts that no longer have signed up since 11/20/2011 to the Active Directory Search-ADAccount -AccountInactive -DateTime "20.11.2011...