Postmaster Filters for Custom X-Headers.
Moderator: crythias
-
- Znuny newbie
- Posts: 24
- Joined: 05 Aug 2014, 13:51
- Znuny Version: 3.3.8
- Real Name: Kiran Kotkar
- Company: Systems Plus
Postmaster Filters for Custom X-Headers.
Hi Everyone!!
I have running 3.3.9 OTRS setup on centos with 64 bit architecture, also I have configured PostMaster IMAPS email accounts in my setup.
But the thing is I am looking to filter emails on basis of Custom email Headers (let say “X-Headers-Location: US”) which we have configured on our mail server already also the same has add in incoming emails too.
Now I have challenges to filter Custom email headers in OTRS, I am not sure which headers I required to use or if will have to create filter condition header which may not listed in default drop-down list.
would you have any suggestion to fix this problem or please share if any reference source present.
Kind regards
Kiran
I have running 3.3.9 OTRS setup on centos with 64 bit architecture, also I have configured PostMaster IMAPS email accounts in my setup.
But the thing is I am looking to filter emails on basis of Custom email Headers (let say “X-Headers-Location: US”) which we have configured on our mail server already also the same has add in incoming emails too.
Now I have challenges to filter Custom email headers in OTRS, I am not sure which headers I required to use or if will have to create filter condition header which may not listed in default drop-down list.
would you have any suggestion to fix this problem or please share if any reference source present.
Kind regards
Kiran
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Postmaster Filters for Custom X-Headers.
List of available PMF headers available to be edited within SysConfig.
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: 24
- Joined: 05 Aug 2014, 13:51
- Znuny Version: 3.3.8
- Real Name: Kiran Kotkar
- Company: Systems Plus
Re: Postmaster Filters for Custom X-Headers.
crythias wrote:List of available PMF headers available to be edited within SysConfig.
Thanks for assist Crythias, I have created NEW Headers in "Core::PostMaster::PostmasterX-Header: under SysConfig and using the same custom header I have created Postmaster Filters rule in OTRS but unfortunately incoming mail not getting filtered.
Do I require to change any backend .pl file or any more setting in SysConfig!!
Kind regards,
Kiran
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Postmaster Filters for Custom X-Headers.
If it's not getting filtered, it's not matching, for whatever reason.
Screenshots of PMF configuration, raw headers would be helpful (you can test with an eml or box file parsed through bin/otrs.PostMaster.pl). There is an example email file at the bottom of this post
Screenshots of PMF configuration, raw headers would be helpful (you can test with an eml or box file parsed through bin/otrs.PostMaster.pl). There is an example email file at the bottom of this post
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: 24
- Joined: 05 Aug 2014, 13:51
- Znuny Version: 3.3.8
- Real Name: Kiran Kotkar
- Company: Systems Plus
Re: Postmaster Filters for Custom X-Headers.
Hi Crythias,crythias wrote:If it's not getting filtered, it's not matching, for whatever reason.
Screenshots of PMF configuration, raw headers would be helpful (you can test with an eml or box file parsed through bin/otrs.PostMaster.pl). There is an example email file at the bottom of this post
No, seems I am missing some configuration steps, well I attached raw headers .txt file and PMF configuration snap herewith.
mail headers: PMS configuration snap:
You do not have the required permissions to view the files attached to this post.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Postmaster Filters for Custom X-Headers.
Any messages in the logs?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 24
- Joined: 05 Aug 2014, 13:51
- Znuny Version: 3.3.8
- Real Name: Kiran Kotkar
- Company: Systems Plus
Re: Postmaster Filters for Custom X-Headers.
Hi Crythias,
I have few additional information..
As suggested I parsed the eml file through bin/otrs.PostMaster.pl and noticed PMF work only when customized header (x-dynamicfield-region: EMEA) is between line number 1-13 in eml file.
Would you have any ideas, what thinks I am mission!!
kind regards,
Kiran
I have few additional information..
As suggested I parsed the eml file through bin/otrs.PostMaster.pl and noticed PMF work only when customized header (x-dynamicfield-region: EMEA) is between line number 1-13 in eml file.
Would you have any ideas, what thinks I am mission!!
kind regards,
Kiran
-
- Znuny newbie
- Posts: 24
- Joined: 05 Aug 2014, 13:51
- Znuny Version: 3.3.8
- Real Name: Kiran Kotkar
- Company: Systems Plus
Re: Postmaster Filters for Custom X-Headers.
Hi Reneeb,reneeb wrote:Any messages in the logs?
Thanks for response.
Yes, There is messages in the logs but no error logs.
Messages:
Dec 22 17:08:21 otrs OTRS-CGI-01[10657]: [Info][Kernel::System::Ticket::TicketCreate] New Ticket [2014122201000061/custome mail he] created (TicketID=527,Queue=ScanGroup,Priority=3 normal,State=new)
Dec 22 17:08:21 otrs OTRS-CGI-01[10657]: [Info][Kernel::System::Ticket::Article::ArticleSend] Sent email to 'Floyd <user1@example.com >' from 'Helpdesk <helpdesk@example.com>'. HistoryType => SendAutoReply, Subject => [Ticket#2014122201000061] RE: custome mail header;
Dec 22 17:08:21 otrs OTRS-CGI-01[10657]: [Info][Kernel::System::Ticket::Article::SendAutoResponse] Sent auto response (SendAutoReply) for Ticket [2014122201000061] (TicketID=527, ArticleID=2505) to Floyd <user1@example.com >.
Kind regards,
Kiran
-
- Znuny newbie
- Posts: 24
- Joined: 05 Aug 2014, 13:51
- Znuny Version: 3.3.8
- Real Name: Kiran Kotkar
- Company: Systems Plus
Re: Postmaster Filters for Custom X-Headers.
Hi Crythias/Reneeb,
"PMF" filtration for customized email headers still not functioning for me.
Today I configured "PostMaster::PreFilterModule###4-CMD" and noticed the incoming email getting filtered through body only. But still the email is not getting filtered through customized email headers which is (x-dynamicfield-region: EMEA).
"PostMaster::PreFilterModule###4-CMD" configuration.
I did testing with " PostMaster::PreFilterModule###1-Match" too but no luck!! waiting for your expertise advice.
Kind regards,
Kiran
"PMF" filtration for customized email headers still not functioning for me.
Today I configured "PostMaster::PreFilterModule###4-CMD" and noticed the incoming email getting filtered through body only. But still the email is not getting filtered through customized email headers which is (x-dynamicfield-region: EMEA).
"PostMaster::PreFilterModule###4-CMD" configuration.
I did testing with " PostMaster::PreFilterModule###1-Match" too but no luck!! waiting for your expertise advice.
Kind regards,
Kiran
You do not have the required permissions to view the files attached to this post.