]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-smtp: client: Avoid sending an XCLIENT command longer than 512 bytes.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 26 May 2018 12:49:01 +0000 (14:49 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 6 Feb 2019 08:08:20 +0000 (10:08 +0200)
commit5b7f38df2dbf91fb59b1df22f369c371ff824fc4
tree4d98b18f6f0536156c69c1173b50b2ea7beacac3
parenta51ee7b987b90b316e75326edb2d4485120ffbf6
lib-smtp: client: Avoid sending an XCLIENT command longer than 512 bytes.

Send several separate XCLIENT commands instead. This way, it complies with the
base SMTP line length limit and with Postfix' original specification for the
XCLIENT command.

With the XCLIENT fields that Dovecot currently uses, this is very unlikely to
happen. Still, this needs to be fixed to make things reliable.
src/lib-smtp/smtp-client-connection.c
src/lib-smtp/smtp-client-private.h