Comments (3)
Thanks for the bug report and for all the details! Some questions:
- What do the chasquid logs say? That should help determine what the server is seeing.
- What is the error from the Python code?
- 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.
smtpObj = smtplib.SMTP() smtpObj.connect(mail_host, 465)
You seem to confuse two ways to use TLS with client-server SMTP (aka Submission).
-
Implicit TLS
The connection is initially protected using TLS. This is what is used on the standard port 465. -
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.
@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)
- TLS Certificate reloading HOT 5
- docker container won't restart due to dublicate hostname option in chasquid.conf HOT 5
- Hooks seem to be ignored HOT 8
- `chasquid-util aliases-resolve` does not take hooks into account HOT 1
- Error while installing chasquid-1.6-1 on Arch Linux HOT 18
- Docker pull error when pulling `latest` tag HOT 3
- Add support for specifying outbound source IP address (i.e. for multi-homed servers) HOT 3
- Question about catch-all aliases HOT 10
- When set to "", some config options use the default value instead HOT 3
- Question about symlinking the certbot pem files... HOT 5
- JMAP support HOT 2
- t-11-dovecot fails due to permission errors HOT 2
- docker: setfacl step fails when using user-provided certificates HOT 4
- Send-only server without dovecot? HOT 3
- SpamAssassin integration in Ubuntu 16.04 needs adjustment HOT 5
- Send-only server: `Destination address is unknown` when sending to local domain HOT 2
- Do not `chown` files (unless the new file has a different UID/GID) HOT 1
- [smtp-check]: Some MTA do reject client connections unless the local name looks like an fqdn HOT 2
- Extend how-to guide to include how to actually send email HOT 5
- Surprising interaction of drop_characters with aliases HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chasquid.