NewTicketReject for Cc field problem

Moderator: crythias

Locked
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

NewTicketReject for Cc field problem

Post by leo5nidas »

Hi

We are having an issue with the prefilters for incoming emails. We want that the incoming emails with a certain address value in the "To" or "Cc" fields be rejected. We have set the following configuration in PostMaster::PreFilterModule###3-NewTicketReject:

Match =>
To ayudicadesarrollo@unizar.es
Cc ayudicadesarrollo@unizar.es
Add entry
Set =>
X-OTRS-Ignore yes

However, that does not work and all the incoming emails are accepted.

If we set only the "To" line, the emails with "To" field = ayudicadesarrollo@unizar.es and remove the "CC" line, the filter works for the "To" case.

What are we doing wrong?

Thank you in advance.

Best regards
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: NewTicketReject for Cc field problem

Post by crythias »

Filter is and, not or
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
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: NewTicketReject for Cc field problem

Post by leo5nidas »

Thank you Crythias. That clarifies the issue. By the way, how can we achieve that every mail with the mail address specified in the "to" or the "cc" field be rejected?
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: NewTicketReject for Cc field problem

Post by crythias »

first, x-otrs-ignore is not reject (Semantic term. Reject means to tell the sender we don't want this. Ignore means the email disappears into the ether /dev/null).
second, if you need "or", use multiple filters.
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
bvlahos
Znuny newbie
Posts: 7
Joined: 04 Jun 2014, 23:58
Znuny Version: 3.3.4
Real Name: Bill Vlahos
Company: Zultys, Inc.

Re: NewTicketReject for Cc field problem

Post by bvlahos »

Is it possible to use an "OR" condition or is "AND" the only condition?

It clearly states it is "AND Condition" but I don't see how to change it to "OR".
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: NewTicketReject for Cc field problem

Post by crythias »

crythias wrote:if you need "or", use multiple filters
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
Momo
Znuny newbie
Posts: 7
Joined: 07 Feb 2013, 16:42
Znuny Version: 3.3.8
Real Name: Moritz Kohler
Company: Allianz Global Assistance Deutschland

Re: NewTicketReject for Cc field problem

Post by Momo »

Hey Everybody,

sorry to dig up such an old thread but I noticed the same issue in our environment. I got it that the NewTicketReject filter uses AND in its conditions and I have to set up multiple filters for that, but: How to set up multiple filters there?
Locked