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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: admin
Date:  
À: exim-dev
Sujet: [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.