PostMaster Filter not working on OTRS 4.0.1

Moderator: crythias

Post Reply
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

PostMaster Filter not working on OTRS 4.0.1

Post by jcgar »

Hi,

I'm new in OTRS, and I have installed it for first time (on Ubuntu 14.04). It seems that everything goes well, but I have a problem with PostMaster Filter. I need all mail from "Nagios" be saved in a particular queue (named "servidores") but not working.

The header of emails of "Nagios" is similar to:

Subject: ** PROBLEM Service Alert: xxxxxxxxx **
To: <x@x.com>
Message-Id: <20160606083011.0C80C600C87@SRNAGIOS>
Date: Mon, 6 Jun 2016 10:30:11 +0200 (CEST)
From: nagios@SRNAGIOS

and the bodies are similar to:

***** Nagios *****

Notification Type: PROBLEM

Service: C:\ Drive Space
Host: x
Address: 192.168.x.x
State: WARNING

Date/Time: Mon Jun 6 10:30:10 CEST 2016

Additional Info:

c:\ - total: 40.00 Gb - used: 36.28 Gb (91%) - free 3.72 Gb (9%)


I've tried with the following ways:

Edit PostMaster Filter:

Filter Condition:

- Name; Nagios
- Stop after match: No

- Chek email header: From
- Look for Value: SRNAGIOS

Set Email Headers:

- Set email header: X-OTRS-Queue
- Set value: Servidores


I have also tried other combinations but the problem persists. I did not work any filter.


Some help?.


Thank you very much in advance.
wurzel
Znuny guru
Posts: 3234
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: PostMaster Filter not working on OTRS 4.0.1

Post by wurzel »

Hi,

the postmaster filter is a regexp

search for the complete string nagios@SRNAGIOS
or a .* for any string before/after


Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: PostMaster Filter not working on OTRS 4.0.1

Post by jojo »

also pelase use latest patchlevel of your version or much better upgrade to OTRS5 (patchlevel 10)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

Re: PostMaster Filter not working on OTRS 4.0.1

Post by jcgar »

Thank you for answer quickly.

Finally, I have a new complete installation of OTRS 5.0.10. I'll try to see if the postmaster filter still fail and tell you the results.
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

Re: PostMaster Filter not working on OTRS 4.0.1

Post by jcgar »

The Postmaster filter still not working. I have the same problem.

Some help?
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: PostMaster Filter not working on OTRS 4.0.1

Post by EXG133 »

If your filter is triggered you should see a mention of it in the syslog. If you don't see this, your regex is not good.
Post Reply