mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 06:35:55 +03:00
[GH-ISSUE #84] Can't send emails from Gmail address #59
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmichalski on GitHub (Apr 27, 2024).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/84
I'm Running Opentrashmail 1.4.6. Unfortunately trying to send an email to Opentrashmail results in the following log output:
2024-04-27 11:53:51,904 - __main__ - DEBUG - Message addressed from: xxx@gmail.com 2024-04-27 11:53:51,904 - __main__ - DEBUG - Message addressed to: ['something@mydomain.com'] ('209.85.214.176', 47330) SMTP session exception Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/aiosmtpd/smtp.py", line 753, in _handle_client await method(arg) File "/usr/lib/python3.11/site-packages/aiosmtpd/smtp.py", line 1516, in smtp_DATA status = await self._call_handler_hook('DATA') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/aiosmtpd/smtp.py", line 473, in _call_handler_hook status = await hook(self, self.session, self.envelope, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/opentrashmail/python/mailserver3.py", line 76, in handle_DATA html += part.get_payload().get_payload(decode=True).decode('utf-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'get_payload'I can manually Telnet the SMTP server and successfully send an email. I just have port 25 exposed and no valid TLS certificate installed yet. Any ideas?
@dmichalski commented on GitHub (Apr 27, 2024):
Ok, this is not a Gmail problem. I can reproduce the issue by using the testmail.txt from the repo. I think the problem can be boiled down to the parsing of Content Type text/html. The testmail is accepted unless I add the html part from the txt. Even the SVG is working.
@baloo2 commented on GitHub (May 27, 2024):
I have the same problem with Apple iCloud emails. Here is the response from Opentrashmail SMTP server:
@geek-at commented on GitHub (May 27, 2024):
confirmed and producable, working on a fix