[exim-dev] [Bug 1687] Option to limit the length of a physic…

Pàgina inicial
Delete this message
Reply to this message
Autor: admin
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 1687] Option to limit the length of a physical (header?) line
https://bugs.exim.org/show_bug.cgi?id=1687

--- Comment #1 from Heiko Schlittermann <hs@???> ---
To reject messages with overlong physical header lines some data ACL condition
could help:

MAX_PHYSICAL_HEADER_LENGTH = \
        ${reduce\
                {<\n${map{<\n$message_headers_raw}{${strlen:$item}}}}\
                {0}\
                {${if >{$item}{$value}{$item}{$value}}}\
        }
PHYSICAL_HEADER_LENGTH_LIMIT = 998


begin acl
...

  deny
        message = overlong physical header line
        condition = ${if

>{MAX_PHYSICAL_HEADER_LENGTH}{PHYSICAL_HEADER_LENGTH_LIMIT}}


--
You are receiving this mail because:
You are on the CC list for the bug.