Answering to myself, but I located error. Our mail provider spam filter (?) modifies mail and X-OTRS- infos disappear.
 

Lähettäjä: otrs-bounces@otrs.org [otrs-bounces@otrs.org] käyttäjän Vesa Jylhä [vesa.jylha@evl.fi] puolesta
Lähetetty: 17. joulukuuta 2010 8:52
Vastaanottaja: otrs@otrs.org
Aihe: [otrs] Problem with X-OTRS headers in OTRS 2.4.9

Hi,
 
I have a web form which users use to send mail to helpdesk. Form inserts extra information (for example: X-OTRS-TicketValue1: info1 X-OTRS-Priority: 4 high) but for some reason I cannot use this information for categorizing messages.
 
PHP code that sends mail:
 
 mail(
    helpdesk@abc.de, //recipient
    "Subject", //subject
    $message,  //message
    "From: $email\r\nReply-To:$email\r\nX-OTRS-TicketValue1:$extrainfo\r\nX-OTRS-Priority: $priority", //Headers
    "-fsender@abc.de." ); //sendmail parameters
OTRS receives mail correctly, if I send that mail to my normal mailbox I can see those X-OTRS headers in mail header information. In OTRS I have defined PostMaster Mail Account that uses POP, marked it trusted.
 
I have defined PostMaster Filter:
 
Filter Name: Prioríty
Stop after match: No
 
Settings:
Header1: X-OTRS-Priority             Value: 4 high
 
Set:
Header1: X-OTRS-Priority             Value: 4 high
 
and second filter:
 
Filter Name: ExtraInfo
Stop after match: No
 
Settings:
Header1: X-OTRS-TicketValue1         Value: info1
 
Set:
Header1: X-OTRS-TicketValue1         Value: info1
 
For some reason filtering doesn't work. If I try use for example mail address for filtering it works fine. How could I increase log level so I could see whats happening and why. Or can someone try to help what could be the problem.
 
Thanks for your help.
 
-Vesa