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.

Barracuda Email Security Gateway

How can I have the Barracuda Spam Firewall look for just the username portion of an email address on my LDAP server?

  • Type: Knowledgebase
  • Date changed: 2 years ago
Solution #00001701

Scope:
Applies to Barracuda Spam Firewall models 300 and higher that are using LDAP for recipient verification, all firmware versions.

Answer:
There is a special LDAP search filter variable, ${recipient_local_part}, that refers to only the username portion of a recipient email address. In other words, if the recipient address is jsmith@domain.com, this variable wil contain jsmith.

If you want the Barracuda Spam Firewall to just look up users and validate based on the uid attribute, you could use the following LDAP search filter:

(|(uid=${recipient_local_part}))

Or, if you wanted the Barracuda to always look up the user using specific, possibly different domain for the email address, you could enter the desired domain directly into your LDAP search filter:

(|(mail=${recipient_local_part}@differentdomain.com))

The LDAP Search Filter field can be found on the Domains > Edit Domain page for each configured domain.

Additional Notes:
For more information on writing custom LDAP filters, see Solution #00001802.

Link to This Page:
https://campus.barracuda.com/solution/50160000000GThMAAW