Postmaster Filter Condition (AND Condition) [Solved with workaround]

Moderator: crythias

Locked
VectorJames
Znuny newbie
Posts: 3
Joined: 13 Jan 2015, 16:54
Znuny Version: 3.3.10
Real Name: James

Postmaster Filter Condition (AND Condition) [Solved with workaround]

Post by VectorJames »

Hi,

I'm trying to put tickets in a queue based on two rules, which I understand must both be matched, but it's not the behaviour I'm experiencing. Either my regex is wrong, or it's working with OR logic, rather than AND, or I'm missing the point somewhere:

From .*@mydomain.com|.*@myotherdomain.com
To support@xxxxxx.com
---
Header 1: X-OTRS-Queue
Value 1: My new queue

Regardless of the domain from where the email has been sent from, it always ends up in 'My new queue'. I only want it to go into 'My new queue' if it's been sent to support@xxxxxx.com AND it's come from either someone@mydomain.com or someone@myotherdomain.com

Any assistance with this will be very much appreciated!

Thanks
James
Last edited by VectorJames on 13 Jan 2015, 17:53, edited 2 times in total.
I am using OTRS Version 3.3.10
I am using Debian (in the appliance)
I am using Postgres
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Postmaster Filter Condition (AND Condition)

Post by crythias »

Check your SysConfig default Queue.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
VectorJames
Znuny newbie
Posts: 3
Joined: 13 Jan 2015, 16:54
Znuny Version: 3.3.10
Real Name: James

Re: Postmaster Filter Condition (AND Condition)

Post by VectorJames »

Thanks crythias.

This is set to raw, but I don't understand the significance to the problem
I am using OTRS Version 3.3.10
I am using Debian (in the appliance)
I am using Postgres
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Postmaster Filter Condition (AND Condition)

Post by crythias »

VectorJames wrote: but I don't understand the significance to the problem
VectorJames wrote:Regardless of the domain from where the email has been sent from, it always ends up in 'My new queue'.
Default destination would be my first guess.
Also dispatch by To
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
VectorJames
Znuny newbie
Posts: 3
Joined: 13 Jan 2015, 16:54
Znuny Version: 3.3.10
Real Name: James

Re: Postmaster Filter Condition (AND Condition)

Post by VectorJames »

I've solved it with a work around instead... I'm not convinced the rules are AND. This is how I've worked around it:

1st filter (with stop processing on match):

From .*@mydomain.com|.*@myotherdomain.com (NEGATED)

Header 1: X-OTRS-Queue
Value 1: incoming email


2nd filter filter

To support@xxxxxx.com

Header 1: X-OTRS-Queue
Value 1: My new queue
I am using OTRS Version 3.3.10
I am using Debian (in the appliance)
I am using Postgres
Locked