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
NewTicketReject for Cc field problem
Moderator: crythias
-
- 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
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
-
- 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
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
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
-
- 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
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
-
- 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
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.
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
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
-
- 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
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".
It clearly states it is "AND Condition" but I don't see how to change it to "OR".
-
- 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
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
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
-
- 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
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?
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?