From 17b36fa3dd0553cfe77841d01c2d088ceede557d Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Thu, 15 Feb 2024 18:21:07 +0100 Subject: [PATCH] [IMP] developer/reference/cli: --smtp-ssl [encryption] The `--smtp-ssl` flag can now work as a regular `--option value` option where the value can be any value from the `smtp_encryption` field of `ir.mail_server`. community: odoo/odoo#154077 task-2861790 --- content/developer/reference/cli.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 758f23c93..2bd4ccaee 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -314,9 +314,18 @@ Emails .. option:: --smtp-port -.. option:: --smtp-ssl +.. option:: --smtp-ssl [encryption] - If set, odoo should use SSL/STARTSSL SMTP connections + Connection encryption, accepted values are: + + * ``none``: regular TCP connection without encryption. Default when the flag is ommited. + * ``starttls``: regular TCP connection upgraded to TLS if the server supports the STARTTLS SMTP + command. The peer certificate is not verified. Default when the flag is present without value. + * ``starttls_strict``: same as ``starttls`` but with certificate verification. + * ``ssl``: immediate TLS connection. The peer certificate is not verified. + * ``ssl_strict``: same as ``ssl`` but with certificate verification. + + Note: ``--smtp-ssl=encryption`` is not supported. .. option:: --smtp-user