Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for POP3 SASL Plain #301

Closed
wolftobias opened this issue Mar 31, 2020 · 0 comments
Closed

Support for POP3 SASL Plain #301

wolftobias opened this issue Mar 31, 2020 · 0 comments
Assignees
Milestone

Comments

@wolftobias
Copy link

wolftobias commented Mar 31, 2020

Currently the greenmail server doesn`t support the pop3 sasl auth plain command.
Similar like SMTP protocol, the pop3 variant of AUTH PLAIN has also a one line and a two steps mechanism.

  1. CAPA must reply with "SASL PLAIN".
  2. The POP3 server must understand a client send "AUTH PLAIN" command.
    2a. AUTH PLAIN <base64: username, authid, password>
    2b. AUTH PLAIN, S: +space, C: <base64: username, authid, password>
https://tools.ietf.org/html/rfc5034

6.  Examples

   Here is an example of a client attempting AUTH PLAIN (see [RFC4616])
   under TLS and making use of the initial client response:

        S: +OK pop.example.com BlurdyBlurp POP3 server ready
        C: CAPA
        S: +OK List of capabilities follows
        S: SASL DIGEST-MD5 GSSAPI ANONYMOUS
        S: STLS
        S: IMPLEMENTATION BlurdyBlurp POP3 server
        S: .
        C: STLS
        S: +OK Begin TLS negotiation now
            (TLS negotiation proceeds, further commands protected by TLS
            layer)
        C: CAPA
        S: +OK List of capabilities follows
        S: SASL PLAIN DIGEST-MD5 GSSAPI ANONYMOUS
        S: IMPLEMENTATION BlurdyBlurp POP3 server
        S: .
        C: AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q=
        S: +OK Maildrop locked and ready

   Here is another client that is attempting AUTH PLAIN under a TLS
   layer, this time without the initial response.  Parts of the
   negotiation before the TLS layer was established have been omitted:

            (TLS negotiation proceeds, further commands protected by TLS
            layer)
        C: CAPA
        S: +OK List of capabilities follows
        S: SASL PLAIN DIGEST-MD5 GSSAPI ANONYMOUS
        S: IMPLEMENTATION BlurdyBlurp POP3 server
        S: .
        C: AUTH PLAIN
            (note that there is a space following the '+' on the
            following line)
        S: +
        C: dGVzdAB0ZXN0AHRlc3Q=
        S: +OK Maildrop locked and ready
@marcelmay marcelmay self-assigned this Mar 31, 2020
@marcelmay marcelmay added this to the 1.5.12 milestone Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants