Giter Site home page Giter Site logo

Duplicated HELO/EHLO about aiosmtpd HOT 7 CLOSED

aio-libs avatar aio-libs commented on August 28, 2024
Duplicated HELO/EHLO

from aiosmtpd.

Comments (7)

warsaw avatar warsaw commented on August 28, 2024

Do you mean specifically RFC 5321, $4.1.4? I would agree that to be compliant with this section, we should treat a second HELO/EHLO as semantically equivalent to a RSET followed by the HELO/EHLO.

from aiosmtpd.

Varbin avatar Varbin commented on August 28, 2024

Yes, I do mean RFC 5321, $4.1.4.

from aiosmtpd.

warsaw avatar warsaw commented on August 28, 2024

@Varbin Thanks for the response. I'd like to fix this, but as we're up against the Pycon deadline, I'm going to milestone this to post 1.0.

from aiosmtpd.

Varbin avatar Varbin commented on August 28, 2024

I fully understand that. Also the duplicated HELO / EHLO should probably never be a problem - does even one SMTP client send two HELO / EHLO commands in one session?

from aiosmtpd.

warsaw avatar warsaw commented on August 28, 2024

@Varbin I wouldn't expect it from a non-buggy client.

from aiosmtpd.

zvyn avatar zvyn commented on August 28, 2024

There is a patch for the stdlib implementation at http://bugs.python.org/issue21783, I might find some time to port it over later today.

In terms of relevance: Using HELO or EHLO to reset a session is permitted by the standard so I think we should support it.

I don't know about clients but I did use this when debugging SMTP servers manually before (test something, see what response you get, type EHLO and try something different). In that case it seems better to EHLO instead of RSET to explicitly start a new SMTP session while keeping the TCP connection.

from aiosmtpd.

Varbin avatar Varbin commented on August 28, 2024

A patch would be:

....

I just saw you made a pull request...

from aiosmtpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.