Skip to content

Proxy can not handle common SMTP EHLO responses #427

Description

@felixauringer

I wanted to use the proxy to enable services (e.g. nextcloud) to send emails with our new James SMTP service which does only support XOAUTH2 / OAUTHBEARER.

James sends the following EHLO response:

250-<my domain> Hello <client hello> [<ip>])
250-AUTH OAUTHBEARER XOAUTH2
250-AUTH=OAUTHBEARER XOAUTH2
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 8BITMIME

The proxy inserts the additional authentication mechanisms which transforms the response above to the following:

250-<my domain> Hello <client hello> [<ip>])
250-AUTH PLAIN LOGIN
250-AUTH=OAUTHBEARER XOAUTH2
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 8BITMIME

The James response that sends the authentication mechanisms twice (one with equal sign and once with space) does not seem to comply with RFC 5321.
I sent an email to their mailing list asking for the reason for this behavior.
However, James is not the only email server behaving like this and postfix (at least some instances of it) behave the same.
We tested maybe a dozen email servers on the internet and maybe half of them behaved like James does.

As postfix is a very common email server, it would be nice if this proxy would support this kind of EHLO responses.
If this is something you would like, I could open a PR :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions