I would like to set the OTRS queue from outside by specifying it the X-OTRS-Queue header in the mail. It is the same with DynamicFields. I sent an email with X-OTRS-Queue: testqueue but it always lands in the Raw Queue. The Queue "testqueue" does exist.
Is there a hidden switch or something for allowing to pass the X-OTRS headers?
My OTRS installation version is 5.0.18.
[Solved] X-Otrs Headers from outside not recognized
Moderator: crythias
[Solved] X-Otrs Headers from outside not recognized
You do not have the required permissions to view the files attached to this post.
Last edited by SUns86 on 25 Apr 2017, 20:27, edited 1 time in total.
Re: X-Otrs Headers from outside not recognized
the header is misspelled (take care of capitalization)
"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
-
- Administrator
- Posts: 3963
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: X-Otrs Headers from outside not recognized
OTRS changes the capitalization on e-mails while reading them.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: X-Otrs Headers from outside not recognized
Thank you for your fast reply. I double checked the headers and indeed there was a difference. Thunderbird converted them also to camel-case. So I tried it on the shell. Inside the mailbox (where OTRS fetches the mails) the headers are now exactly as I sent them. But it still is not recognized by OTRS. Is it possible, that it is an OTRS bug. Does it work in your installation?
Shell:
Shell:
Code: Select all
(
echo "To: otrs2@example.com"
echo "From: www@example.com"
echo "X-OTRS-Queue: testqueue"
echo "X-OTRS-DynamicField-ServerId: 1"
echo "Content-Type: text/plain;"
echo "Subject: a test"
echo
echo this is a test
) | sendmail -t
Re: X-Otrs Headers from outside not recognized
Ok, I got it. The trusted flag was not set at "Mail Account Management".
File: Kernel/System/PostMaster.pm
Sometimes it can be so simple
File: Kernel/System/PostMaster.pm
Code: Select all
sub GetEmailParams {
[...]
# do not scan x-otrs headers if mailbox is not marked as trusted
next HEADER if ( !$Self->{Trusted} && $Param =~ /^x-otrs/i );
[...]
You do not have the required permissions to view the files attached to this post.