We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.

Restrict Inbound Mail to the Barracuda Email Security Service IP Range

  • Last updated on

For a list of Essentials options and setup instructions, see Step 1 - Set Up Essentials for Office 365.

Select the PowerShell script to restrict inbound mail to the Barracuda Email Security Service IP range based on the region selected when setting up the your service.

 

Important: After updating your MX records, allow 24 hours before completing the steps in this section to allow the records to propagate.

PowerShell Script (US Region)
 

If your Barracuda Essentials instance is located in the US region, use the following PowerShell script to restrict inbound mail to the Barracuda Email Security Service IP address range.

Run the following PowerShell script from your local system:

# Set-ExecutionPolicy unrestricted 
# $UserCredential = Get-Credential
# $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection 
# Import-PSSession $Session
# New-InboundConnector -Name "Barracuda Inbound Connector" -RequireTls $true -SenderDomains * -SenderIPAddresses 64.235.144.0/24,64.235.145.0/24,64.235.146.0/24,64.235.147.0/24,64.235.148.0/24,64.235.149.0/24,64.235.150.0/24,64.235.151.0/24,64.235.152.0/24,64.235.153.0/24,64.235.154.0/24,64.235.155.0/24,64.235.156.0/24,64.235.157.0/24,64.235.158.0/24,64.235.159.0/24,209.222.80.0/24,209.222.81.0/24,209.222.82.0/24,209.222.83.0/24,209.222.84.0/24,209.222.85.0/24,209.222.86.0/24,209.222.87.0/24 -RestrictDomainstoIPAddresses $true
PowerShell Script (German Region)
 

If your Barracuda Essentials instance is located in the German region, use the following PowerShell script to restrict inbound mail to the Barracuda Email Security Service IP address range.

Run the following PowerShell script from your local system:

# Set-ExecutionPolicy unrestricted
# $UserCredential = Get-Credential
# $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
# Import-PSSession $Session
New-InboundConnector -Name "Barracuda Inbound Connector" -RequireTls $true -SenderDomains * -SenderIPAddresses 35.157.190.225,35.157.190.226,35.157.190.227,35.157.190.228,35.157.190.229,35.157.190.230,35.157.190.231,35.157.190.232,35.157.190.233,35.157.190.234,35.157.190.235,35.157.190.236,35.157.190.237,35.157.190.238,35.157.190.239,35.157.190.240,35.157.190.241,35.157.190.242,35.157.190.243,35.157.190.244,35.157.190.245,35.157.190.246,35.157.190.247,35.157.190.248,35.157.190.249,35.157.190.250,35.157.190.251,35.157.190.252,35.157.190.253,35.157.190.254,35.157.190.255 -RestrictDomainstoIPAddresses $true
PowerShell Script (UK Region)
 

If your Barracuda Essentials instance is located in the UK region, use the following PowerShell script to restrict inbound mail to the Barracuda Email Security Service IP address range.

 Run the following PowerShell script from your local system:

# Set-ExecutionPolicy unrestricted
# $UserCredential = Get-Credential
# $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
# Import-PSSession $Session
New-InboundConnector -Name "Barracuda Inbound Connector" -RequireTls $true -SenderDomains * -SenderIPAddresses 35.176.92.96,35.176.92.97,35.176.92.98,35.176.92.99,35.176.92.100,35.176.92.101,35.176.92.102,35.176.92.103,35.176.92.104,35.176.92.105,35.176.92.106,35.176.92.107,35.176.92.108,35.176.92.109,35.176.92.110,35.176.92.111,35.176.92.112,35.176.92.113,35.176.92.114,35.176.92.115,35.176.92.116,35.176.92.117,35.176.92.118,35.176.92.119,35.176.92.120,35.176.92.121,35.176.92.122,35.176.92.123,35.176.92.124,35.176.92.125,35.176.92.126,35.176.92.127 -RestrictDomainstoIPAddresses $true
Last updated on