How to configure Firewall to allow HES to connect to LDAP server.
In order to get our Hosted Email Security (HES) to work with On-prem Firewall solutions, these are the necessary firewall settings that need to be configured to allow HES to work and block other traffic from using our services. Please also reference SonicWall Hosted Email Security FAQ. As it will show more details regarding HOsted Email Security configurations. Also reference How To Configure LDAP And Enable DHA On HES
Create the following in order of appearance

Creating Address Objects
Address Objects

Add the Address Objects to an Address Group

Nat Policies(for LDAP traffic  )

Access Rules
Allow Rule
Deny Rule
TIP:Â Please make sure the Allow Rule has higher priority that Deny Rules.

This should configure the firewall to allow hosted to work.Â