[
https://issues.apache.org/jira/browse/JAMES-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18117918#comment-18117918
]
Felix Auringer commented on JAMES-4232:
---------------------------------------
Simon Robinson made me aware
(https://github.com/simonrob/email-oauth2-proxy/issues/427) that Postfix has a
setting to enable the same behavior James currently exhibits:
https://www.postfix.org/postconf.5.html#broken_sasl_auth_clients
Apparently, there are some clients that do not properly implement the standard
but the examples given in the Postfix docs (MicroSoft Outlook Express version 4
and MicroSoft Exchange version 5.0) are so old that I would be okay with
dropping this behavior altogether.
> James sends invalid SMTP AUTH ehlo line
> ---------------------------------------
>
> Key: JAMES-4232
> URL: https://issues.apache.org/jira/browse/JAMES-4232
> Project: James Server
> Issue Type: Bug
> Components: SMTPServer
> Reporter: Felix Auringer
> Assignee: Felix Auringer
> Priority: Minor
>
> From the mailing list:
>
> I noticed that James sends its authentication mechanisms for SMTP twice, once
> with a space and once with an equal sign:
> 220 Hello from <my domain>
> ehlo example.internal
> 250-<my domain> Hello example.internal [84.186.194.95])
> 250-AUTH OAUTHBEARER XOAUTH2
> 250-AUTH=OAUTHBEARER XOAUTH2
> 250-PIPELINING
> 250-ENHANCEDSTATUSCODES
> 250 8BITMIME
> ```
> As far as I understand, this is not compliant with the RFC
> ([https://www.rfc-editor.org/info/rfc5321/#section-4.1.1.1]):
> ehlo-ok-rsp = ( "250" SP Domain [ SP ehlo-greet ] CRLF )
> / ( "250-" Domain [ SP ehlo-greet ] CRLF
> *( "250-" ehlo-line CRLF )
> "250" SP ehlo-line CRLF )
> ehlo-line = ehlo-keyword *( SP ehlo-param )
> The only character allowed to follow directly after the ehlo keyword (AUTH)
> is a space.
> I am also not entirely sure whether sending the same ehlo keyword twice is
> allowed.
> We use one client that can not handle the line with the equal sign:
> [https://github.com/simonrob/email-oauth2-proxy/blob/6599460ef7ea99a0ca9515d2457d1666cccb965a/emailproxy.py#L2334]
> (admittedly, this is an unusual one).
> But other large email servers like Google or Microsoft only announce their
> authentication mechanisms once and without the equal sign.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]