I have three domain in my email server: domainA.com, domainB.com, domainC.com, default email domain is username@domainB.com, the others are alias name, users send email from username@domainA/domainB/domainC.com,I installed osTicket LDAP plugin, the AD domain is domainA.com. Users can send email from username@domainA.com, username@domainB.com and username@domainC.com to create tickets, but in osTicket system this will be think it's a different user.

So the question is how can I setup osTicket make system identify username@domainA.com, username@domainB.com and username@domainC.com are the same user?

Another question: how can I disable outside the organization users send email to create ticket? Or how can I create a white list just enable username@domainA.com, username@domainB.com and username@domainC.com email can create ticket?
Thank you so much.

    smallfish So the question is how can I setup osTicket make system identify [username@domainA.com](mailto:username@domainA.com), [username@domainB.com](mailto:username@domainB.com) and [username@domainC.com](mailto:username@domainC.com) are the same user?

    Currently you can't. Multiple emails are a unique value in osTicket currently.

    smallfish Another question: how can I disable outside the organization users send email to create ticket? Or how can I create a white list just enable [username@domainA.com](mailto:username@domainA.com), [username@domainB.com](mailto:username@domainB.com) and [username@domainC.com](mailto:username@domainC.com) email can create ticket?

    You would handle this at the mailserver level.

    If you can't do that, then you would create a Ticket Filter.
    Go to Admin panel -> Manage -> Filters
    Click Add New Filter
    On the Filter Rules tab
    Select User / Email Address
    Select Does Not Match Regex
    enter the email addresses I think like:
    (email@address1.com|email@address2.com|email@address3.com)
    note: you might have to play with the Regex, I'm mediocre at regex.
    Click on the Filter Actions tab
    Select if you want to reply, or just drop the ticket.

      ntozier Hi Ntozier,
      Thanks for your replied, I will have a try today.

      Thank you so much.

      ntozier Hi Ntozier,
      Just tested, it works!
      Filter Rules:
      User/Email address, Does Not Match Regex, email address: @domainA.com|@domainB.com|domainC.com
      Filter Actions:
      Reject Ticket.
      If sender not include these three domains, the ticket request will be reject.

      Thank you so much.

      Very welcome. 🙂 Thanks for letting me know that it worked.

      Write a Reply...