Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: Filtering Active Directory LDAP users based on email domain

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG)

Question:

  • How do I import email addresses from LDAP for only one domain?

Procedure:

By default a MailMarshal SMTP LDAP connector imports all email addresses in the Mail and proxyAddresses attributes of records. 

You can create a customized LDAP connector that imports only addresses in a certain domain. The instructions below assume that the desired domain is not the primary email address entry for the user records.      

  1. Create a new LDAP connector.
  2. Edit the connector and navigate to the "User Attributes" tab (in some versions, this is found under LDAP Server | Advanced).
  3. In the Email address attributes section, delete the entry mail
  4. Edit the proxyAddresses entry:
    • Match: smtp:(.*)@domain-wanted.com
    • Value: $1@domain-wanted.com
    • (substitute the desired domain name for "domain-wanted.com")
  5. Apply the changes.

Any groups imported through this connector will only include entries which have a secondary ("proxy") SMTP address in the specified domain.

Notes:

  • If you need to include users' primary addresses, you can perform similar filtering on the mail attribute.
  • You can use more than one LDAP connector.

To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.