We do something similar on our 3.1.2 install.

Not sure how I got this one figured out (or even if it’s entirely correct), but here’s a good site to test: http://regexpal.com/

(and I’m sure some regexp guru can do this 6 characters or less ;-) )

 

(.*\@topdomain|.*\@subdomain|.*\@subdomain\.topdomain|.*\@split\-sub\-domain|.*\@split\-sub\-domain\.topdomain)\.com

 

This should match:

anyone@topdomain.com

anyone@subdomain.com

anyone@subdomain.topdomain.com

anyone@split-sub-domain.com

anyone@split-sub-domain.topdomain.com

 

The at sign may not be necessary to escape, but I read somewhere that perl sometimes expects the @ to be seomthing else.

 

--

/Sune T.

 

 

From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Muhammad El-Sergani
Sent: 27. november 2012 15:20
To: User questions and discussions about OTRS.
Subject: [otrs] Problem with Postmaster filters (?)

 

Hi all,

 

I'm not sure if this is a bug or misconfiguration. We're using OTRS 3.1.11 and we noticed that emails are not dispatched to their right Queues using Postmaster filters.

 

We're using IMAPs, Trusted account, Dispatching by select Queue (previously by To: field) and tried the following syntaxes in our filters:

 

Filter condition (one of the following per test):

From == @domain

From == @domain.*

From == .*@domain

From == .*@domain.*

 

Set Email Header:

X-OTRS-Queue == Queue_name

 

Please let me know your thoughts, it's very frustrating and used to work OK on our earlier installation, 3.0.1.

 

Thanks

//M