Re: Customer users based on email domain

Bene <[email protected]>
Newsgroups gmane.comp.otrs.user
Message-ID <[email protected]>
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
> [email protected] are assigned to Acme Co. Users from [email protected] 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
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.