I'm trying to put incoming e-mails into the right queue using PostMaster PreFilterModule (manually editing Config.pm).
For example I would like to put all incoming e-mails that contain "[hr]" in subject to "hrvatski" queue. And, I would like to put all incoming e-mails that contain ".de" in sender address to "njemacki" queue. But almost all messages end in "ruski" queue.
I guess the problem is in regular expression and the fact I don't know how to use StopAfterMatch command.
Can someone help me with my configuration or send some examples that includes escape character and StopAfterMatch.
Thank you in advance and best regards.
$Self->{'PostMaster::PreFilterModule'}->{'001-Match'} = {
Module => 'Kernel::System::PostMaster::Filter::Match',
Match => {
Subject => '[hr]',
},
Set => {
'X-OTRS-Queue' => 'hrvatski',
},
StopAfterMatch => 1
};
$Self->{'PostMaster::PreFilterModule'}->{'61-Match'} = {
Module => 'Kernel::System::PostMaster::Filter::Match',
Match => {
From => '.de',
},
Set => {
'X-OTRS-Queue' => 'njemacki',
},
};
$Self->{'PostMaster::PreFilterModule'}->{'90-Match'} = {
Module => 'Kernel::System::PostMaster::Filter::Match',
Match => {
Subject => '[ru]',
},
Set => {
'X-OTRS-Queue' => 'ruski',
},
};
PostMaster PreFilterModule
Moderator: crythias
-
- Znuny newbie
- Posts: 6
- Joined: 10 Mar 2016, 14:28
- Znuny Version: 5.0.5
- Real Name: Tomislav Parčina
- Company: Adriatic.hr d. o. o.
- Location: Split, Croatia
- Contact:
PostMaster PreFilterModule
--
Tomislav Parcina
Tomislav Parcina
-
- Znuny newbie
- Posts: 6
- Joined: 10 Mar 2016, 14:28
- Znuny Version: 5.0.5
- Real Name: Tomislav Parčina
- Company: Adriatic.hr d. o. o.
- Location: Split, Croatia
- Contact:
[SOLVED] PostMaster PreFilterModule
OK, I have gave up from configuring PostMaster PreFilter in config file. Then I have tried to put incoming e-mails to the right queue using PostMaster Filter Management from web interface. Again I head problems, the mails just didn't go to the right queue. At the end I have found that in /opt/otrs/Kernel/Config/Files/ZZZAuto.pm I head 2 rules that ware matched first. Now I have commented those 2 rules and it seams that now everything works just fine.
I don't remember that I have ever configured ZZZAuto.pm from console, and I can't find where I can configure it from web interface.
Is there any log that I can use to see what rule was matched and why the mail ended in specific queue?
Best regards.
I don't remember that I have ever configured ZZZAuto.pm from console, and I can't find where I can configure it from web interface.
Is there any log that I can use to see what rule was matched and why the mail ended in specific queue?
Best regards.
--
Tomislav Parcina
Tomislav Parcina
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: PostMaster PreFilterModule
The ZZZ. file is auto-generated by OTRS. You probably have a rule in:
- The webinterface
- The Config.pm
- The Default.pm
Could you check there ?
- The webinterface
- The Config.pm
- The Default.pm
Could you check there ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 6
- Joined: 10 Mar 2016, 14:28
- Znuny Version: 5.0.5
- Real Name: Tomislav Parčina
- Company: Adriatic.hr d. o. o.
- Location: Split, Croatia
- Contact:
Re: PostMaster PreFilterModule
I do not have anything related in Config.pm. I do not have Default.pm. In webinterface I can't find where it is configured. Can you give me a hint where should I search for those rules?RStraub wrote:The ZZZ. file is auto-generated by OTRS. You probably have a rule in:
- The webinterface
- The Config.pm
- The Default.pm
Could you check there ?
Best regards.
--
Tomislav Parcina
Tomislav Parcina
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: PostMaster PreFilterModule
Interesting. If it's neither of those places, I have no idea how they got into your zzz file.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: PostMaster PreFilterModule
the ZZZAuto.pm is created by Sysconfig
ZZZAAuto.pm is created by the Default settings (including the xml files)
ZZZAAuto.pm is created by the Default settings (including the xml files)
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com