Git Product home page Git Product logo

Comments (3)

albertito avatar albertito commented on May 18, 2024

Thanks for the bug report and for all the details! Some questions:

  1. What do the chasquid logs say? That should help determine what the server is seeing.
  2. What is the error from the Python code?
  3. Can you re-run the smtp-check? The ip address of your server seems to have changed, so maybe it was a matter of DNS propagation?

from chasquid.

foxcpp avatar foxcpp commented on May 18, 2024
   smtpObj = smtplib.SMTP() 
   smtpObj.connect(mail_host, 465)

You seem to confuse two ways to use TLS with client-server SMTP (aka Submission).

  1. Implicit TLS
    The connection is initially protected using TLS. This is what is used on the standard port 465.

  2. STARTTLS
    The connection is initially established in plaintext but after ESMTP negotiation TLS is activated using STARTTLS command. This is what is used on the standard port 587.

For 1, use smtplib.SMTP_SSL(). For 2, use smtplib.SMTP() and then call smtplib.starttls().

Your error is caused by an attempt to use plaintext SMTP on port with Implicit TLS. That is, server expects client to initiate TLS but it instead sends SMTP EHLO.

Note: Just using above is not sufficient to make connection secure (sigh Python sigh). https://stackoverflow.com/questions/33857698/sending-email-from-python-using-starttls

from chasquid.

albertito avatar albertito commented on May 18, 2024

@hyahm, I'm going to close this for now as it's been 3 months and we need more information to understand better what's going on, as explained in the last two comments.

If you have more information, please reopen so we can follow up. Thanks!

from chasquid.

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.