
On 11/07/2017 11:40, Pedro Lobo wrote:
Hi all,
I'd like to know if it's possible, and if so, how would I do the following:
We're setting up OTRS for our internal use and to provide IT support to a few customers. All communication will be done via email, both creating and replying to tickets and therefore, we have no real need of customers accessing the customer portal. I would however like to associate each new user email with a customer id. So, users that create a ticket from me@acme.co are assigned to Acme Co. Users from me@evil.corp are assigned to Evil Copr. etc.
Is this possible of to I have to manually create a customer user and associate it with a customer ID for Acme and Evil Corp.?
Cheers, Pedro
Hi, to set the customer based on the domain of the e-mail, you need to set-up an e-mail filter. Go to Admin, Postmaster filters, create a new filter. To take you example of evil.corp: Fill in the name and wether you want to stop after the match. Filter condition: Check e-mail header: From As a value you could add for instance: (.*@evil.corp) Set e-mail headers: Set e-mail header: X-OTRS-CustomerNo, Set value: "Evil Corp" Evil Corp should exist as customer company. Regards, Benedict